Function at 0x10040313
Capabilities:
Read .ini file

Disassembly:
push 0x144
mov eax, 0x100bf816
call fcn.10092f63
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x138], ecx
push str.EapConfigBlob
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 2
call fcn.1000aaa5
test eax, eax
jne 0x10040420
lea ecx, [ebp - 0x150]
call fcn.10073039
push 0
push 0x40
push dword [ebp + 8]
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 3
call fcn.1007360b
test eax, eax
je 0x1004040c
lea ecx, [ebp - 0x150]
call fcn.10072f2c
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.1006d89f
mov ebx, eax
lea eax, [edi + 1]
push eax
push 0
push ebx
call fcn.1008ef90
add esp, 0x10
push edi
push ebx
lea ecx, [ebp - 0x150]
call fcn.10072d47
push ebx
lea ecx, [ebp - 0x138]
call fcn.10007f0d
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.1000abd4
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx - 0xc]
cmp eax, 0xffffffff
je 0x100403e8
sub edi, eax
dec edi
cmp edi, dword [ebp + 0x18]
jl 0x100403e8
push dword [ebp + 0x18]
inc eax
add eax, ebx
push eax
push dword [esi]
call fcn.1008ebc0
add esp, 0xc
test ebx, ebx
je 0x100403f3
push ebx
call fcn.1006d8a4
pop ecx
lea ecx, [ebp - 0x150]
call fcn.10072fd7
mov ecx, dword [ebp - 0x138]
add ecx, 0xfffffff0
call fcn.10001210
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 2
call fcn.10073218
jmp 0x1004057b
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push dword [esi]
push 0x100cdb5f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call ebx
mov edi, pe_nt_image_headers32
push edi
lea eax, [ebp - 0x134]
push 0
push eax
call fcn.1008ef90
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x134]
push edi
push eax
push 0x100cdb5f
push str.SSID_inHex
push dword [ebp + 0xc]
call ebx
push 0x100ce4d0
lea ecx, [ebp + 0x10]
call fcn.1000aaa5
test eax, eax
jne 0x10040494
lea eax, [ebp - 0x134]
push 0x100ce2bc
push eax
call fcn.1008eb30
test eax, eax
pop ecx
pop ecx
je 0x100404a5
push str.DiagnosticSSID
lea ecx, [ebp + 0x10]
call fcn.1000aaa5
test eax, eax
jne 0x100404f2
push 0x21
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.1008ef90
push dword [esi]
call fcn.1008f010
and eax, 0xfffffffe
add esp, 0x10
cmp eax, 0x40
ja 0x100404d0
push dword [esi]
call fcn.1008f010
pop ecx
shr eax, 1
jmp 0x100404d3
push 0x20
pop eax
mov ecx, dword [ebp - 0x138]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call fcn.1003fc60
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call fcn.1008e4f0
pop ecx
pop ecx
push dword [esi]
lea ecx, [ebp - 0x140]
call fcn.10007f0d
xor ebx, ebx
cmp dword [0x10112870], ebx
mov byte [ebp - 4], 5
jbe 0x1004056d
push dword [ebx*4 + 0x10112844]
lea ecx, [ebp + 0x10]
call fcn.1000aaa5
test eax, eax
je 0x1004052b
inc ebx
cmp ebx, dword [0x10112870]
jb 0x1004050d
jmp 0x1004056d
push ecx
lea eax, [ebp - 0x140]
mov dword [ebp - 0x13c], esp
mov ecx, esp
push eax
call fcn.1000ab53
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x13c]
push eax
call fcn.10040171
push dword [eax]
push edi
push dword [esi]
call fcn.1008ef25
mov ecx, dword [ebp - 0x13c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.10001210
mov ecx, dword [ebp - 0x140]
add ecx, 0xfffffff0
call fcn.10001210
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10001210
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10001210
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.10001210
call fcn.10092fe6
ret 0x14