void FUN_0041d664(undefined4 param_1,int param_2)
{
int iVar1;
undefined4 *puVar2;
int iVar3;
int iVar4;
uint uVar5;
int unaff_s3;
undefined1 *puVar6;
char *pcVar7;
undefined1 auStack_58 [40];
int local_30;
FUN_00483cc0(auStack_58,0,0x21);
FUN_00483c90(auStack_58,*(undefined4 *)(param_2 + 0x11),*(undefined2 *)(param_2 + 0xb));
local_30 = *(int *)(param_2 + 0x60);
pcVar7 = *(char **)(param_2 + 0x49);
puVar6 = *(undefined1 **)(param_2 + 0x3c);
/* try { // try from 0041d708 to 0041daff has its CatchHandler @ 0041db08 */
FUN_004804f0("=====================================================");
FUN_00480710("\tSSID : %s\n",auStack_58);
FUN_00480710("\tAuthentication Type : 0x%04x\n",*(undefined2 *)(param_2 + 0x1e));
FUN_00480710("\tEncryption Type : 0x%04x\n",*(undefined2 *)(param_2 + 0x28));
iVar1 = FUN_00401798(*(undefined4 *)(param_2 + 0x2c));
if ((iVar1 == 0) || (unaff_s3 = FUN_00401798(*(undefined4 *)(param_2 + 0x30)), unaff_s3 == 0)) {
puVar2 = (undefined4 *)FUN_0047082c(4);
*puVar2 = "ListItrCreate() return error!";
FUN_00472734(puVar2,&PTR_PTR_FUN_004af2b0,0);
}
else {
/* try { // try from 0041dc38 to 0041dc3f has its CatchHandler @ 0041db08 */
iVar3 = FUN_00400f00(*(undefined4 *)(param_2 + 0x2c));
if (iVar3 != 0) {
while (iVar3 = FUN_00400dd8(iVar1), iVar3 != 0) {
iVar4 = FUN_00400dd8(unaff_s3);
if (iVar4 == 0) {
puVar2 = (undefined4 *)FUN_0047082c(4);
*puVar2 = "ListItrGetNext() return error!";
FUN_00472734(puVar2,&PTR_PTR_FUN_004af2b0,0);
}
FUN_00480710("\tNetwork Key Index : %d\n",*(undefined1 *)(iVar3 + 8));
iVar3 = FUN_00471eb0(*(ushort *)(iVar4 + 2) + 1);
FUN_00483c90(iVar3,*(undefined4 *)(iVar4 + 8),*(undefined2 *)(iVar4 + 2));
*(undefined1 *)(iVar3 + (uint)*(ushort *)(iVar4 + 2)) = 0;
FUN_00480710("\tNetwork Key : [%s]\n",iVar3);
if (iVar3 != 0) {
thunk_FUN_00471d20(iVar3);
}
}
goto LAB_0041d9f8;
}
}
iVar3 = FUN_00400dd8(unaff_s3);
iVar1 = iVar3;
if (iVar3 == 0) {
puVar2 = (undefined4 *)FUN_0047082c(4);
*puVar2 = "ListItrGetNext() return error!";
iVar1 = FUN_00472734(puVar2,&PTR_PTR_FUN_004af2b0,0);
}
iVar1 = FUN_00471eb0(*(ushort *)(iVar1 + 2) + 1);
FUN_00483c90(iVar1,*(undefined4 *)(iVar3 + 8),*(undefined2 *)(iVar3 + 2));
*(undefined1 *)(iVar1 + (uint)*(ushort *)(iVar3 + 2)) = 0;
FUN_00480710("\tNetwork Key : [%s]\n",iVar1);
if (iVar1 != 0) {
thunk_FUN_00471d20(iVar1);
}
LAB_0041d9f8:
FUN_00480710("\tMAC Address : %02x:%02x:%02x:%02x:%02x:%02x\n",*puVar6,puVar6[1],puVar6[2]
,puVar6[3],puVar6[4],puVar6[5]);
if (pcVar7 == (char *)0x0) {
pcVar7 = "(N/A)";
}
FUN_00480710("\tNew Password : %s\n",pcVar7);
FUN_00480710("\tDevice Password ID : 0x%04x\n",*(undefined2 *)(param_2 + 0x56));
FUN_00480710("\tKey Wrap Auth : %d bytes, ",*(undefined2 *)(param_2 + 0x5a));
for (uVar5 = 0; uVar5 < *(ushort *)(param_2 + 0x5a); uVar5 = uVar5 + 1 & 0xffff) {
FUN_00480710("%02X ",*(undefined1 *)(local_30 + uVar5));
}
FUN_004830e0(10);
FUN_004804f0("=====================================================");
return;
}