Function at 0x10001829
Capabilities:
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x10016040]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
push ebx
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x10013cb0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x24], eax
cmp eax, ebx
jne 0x100018a0
mov dword [esp + 0x10], 2
jmp 0x10001d12
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WlanOpenHandle
push eax
call esi
mov dword [esp + 0x30], eax
cmp eax, ebx
je 0x10001940
push str.WlanEnumInterfaces
push dword [esp + 0x28]
call esi
mov dword [esp + 0x38], eax
cmp eax, ebx
je 0x10001940
push str.WlanGetProfileList
push dword [esp + 0x28]
call esi
mov dword [esp + 0x50], eax
cmp eax, ebx
je 0x10001940
push str.WlanGetProfile
push dword [esp + 0x28]
call esi
mov dword [esp + 0x5c], eax
cmp eax, ebx
je 0x10001940
push str.WlanFreeMemory
push dword [esp + 0x28]
call esi
mov dword [esp + 0x3c], eax
cmp eax, ebx
je 0x10001940
push str.WlanCloseHandle
push dword [esp + 0x28]
call esi
mov dword [esp + 0x44], eax
cmp eax, ebx
je 0x10001940
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x5c]
push eax
push ebx
push 1
call dword [esp + 0x40]
test eax, eax
jne 0x10001940
lea eax, [esp + 0x1c]
push eax
push ebx
push dword [esp + 0x34]
call dword [esp + 0x44]
test eax, eax
je 0x1000194d
mov dword [esp + 0x10], 0x261
jmp 0x10001d12
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], ebx
cmp dword [eax], ebx
jbe 0x10001d12
mov dword [esp + 0x34], ebx
mov esi, dword [esp + 0x34]
lea eax, [esi + eax + 0x18]
push eax
push 0x10013d28
call fcn.100031ad
pop ecx
pop ecx
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x20]
push ebx
lea eax, [esi + eax + 8]
push eax
push dword [esp + 0x38]
call dword [esp + 0x60]
test eax, eax
jne 0x10001cf6
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], ebx
cmp dword [eax], ebx
jbe 0x10001ced
mov dword [esp + 0x48], ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x54]
lea eax, [ecx + eax + 8]
mov ecx, dword [esp + 0x40]
push ebx
push eax
mov eax, dword [esp + 0x30]
lea eax, [ecx + eax + 8]
push eax
push dword [esp + 0x44]
call dword [esp + 0x78]
test eax, eax
jne 0x10001cd1
push dword [esp + 0x18]
push 0x10013d28
call fcn.100031ad
pop ecx
xor eax, eax
pop ecx
lea esi, [edi + 0x100c]
mov word [esi], ax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x18], 0x10013c90
mov dword [esp + 0x34], ebx
call fcn.10001d6c
test eax, eax
jne 0x10001cbf
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
lea eax, [ecx + eax + 0x18]
push eax
lea eax, [edi + 0xc]
push 0x400
push eax
call fcn.10002f0d
add esp, 0xc
push dword [esp + 0x18]
push edi
call fcn.1000269e
push dword [esp + 0x18]
call fcn.10001feb
mov dword [edi + 0x1814], eax
mov dword [edi + 0x1810], ebx
mov dword [edi + 0x180c], ebx
mov dword [edi + 0x1818], ebx
cmp eax, 4
je 0x10001a7d
cmp eax, 8
je 0x10001a7d
cmp eax, 0x10
je 0x10001a7d
mov dword [edi + 0x181c], 1
jmp 0x10001a8c
push dword [esp + 0x18]
call fcn.10002208
mov dword [edi + 0x181c], eax
push dword [esp + 0x18]
call fcn.100023ca
mov dword [esp + 0x14], eax
cmp dword [esp + 0x28], ebx
jne 0x10001ac0
cmp dword [esp + 0xc], ebx
je 0x10001cb6
push dword [esp + 0xc]
push 0x400
push esi
call fcn.10002f0d
add esp, 0xc
jmp 0x10001cb6
cmp dword [esp + 0xc], ebx
je 0x10001cb6
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x58]
push dword [esp + 0x14]
push edi
call fcn.10002ad3
test eax, eax
jne 0x10001cb6
mov eax, dword [edi + 0x1814]
sub eax, 4
je 0x10001bcd
sub eax, 4
je 0x10001bcd
sub eax, 8
je 0x10001bcd
sub eax, 0x10
je 0x10001b19
sub eax, 0x20
je 0x10001b19
sub eax, 0x40
jne 0x10001cb6
cmp dword [esp + 0x14], ebx
jne 0x10001bbd
cmp dword [esp + 0x20], 0x20
jne 0x10001bbd
push 0x20
lea eax, [esp + 0xa4]
push esi
push eax
call fcn.100031d0
add esp, 0xc
push 0x800
push ebx
push esi
call fcn.10002fb0
add esp, 0xc
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebx
add edi, 0x100e
mov eax, dword [esp + 0x14]
mov ecx, 0x200
sub ecx, eax
lea esi, [esp + eax + 0xa0]
push 0x10
add ecx, ecx
push ecx
lea eax, [edi - 2]
push eax
movzx eax, byte [esi]
shr eax, 4
push eax
call fcn.1000362b
mov eax, 0x3ff
sub eax, dword [esp + 0x1c]
push 0x10
push eax
movzx eax, byte [esi]
and eax, 0xf
push edi
push eax
call fcn.1000362b
add dword [esp + 0x2c], 2
add esp, 0x20
inc dword [esp + 0x14]
add edi, 4
cmp dword [esp + 0xc], 0x40
jb 0x10001b5e
mov edi, dword [esp + 0x4c]
jmp 0x10001cb6
cmp dword [esp + 0x20], ebx
je 0x10001cb6
push dword [esp + 0x20]
jmp 0x10001be4
mov eax, dword [esp + 0x20]
cmp eax, 5
je 0x10001c21
cmp eax, 0xd
je 0x10001c21
cmp eax, ebx
je 0x10001cb6
push eax
lea eax, [esp + 0xa4]
push esi
push eax
call fcn.100031d0
add esp, 0xc
push 0x800
push ebx
push esi
call fcn.10002fb0
add esp, 0xc
push 0x400
push esi
push 0xffffffffffffffff
lea eax, [esp + 0xac]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x10001cb6
push eax
lea eax, [esp + 0x64]
push esi
push eax
call fcn.100031d0
add esp, 0xc
push 0x800
push ebx
push esi
call fcn.10002fb0
add esp, 0xc
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x20], ebx
jbe 0x10001cb6
lea eax, [edi + 0x100e]
mov dword [esp + 0x28], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
lea esi, [esp + eax + 0x60]
mov ecx, 0x200
sub ecx, eax
mov eax, dword [esp + 0xc]
push 0x10
add ecx, ecx
add eax, 0xfffffffe
push ecx
push eax
movzx eax, byte [esi]
shr eax, 4
push eax
call fcn.1000362b
mov eax, 0x3ff
sub eax, dword [esp + 0x38]
push 0x10
push eax
movzx eax, byte [esi]
push dword [esp + 0x24]
and eax, 0xf
push eax
call fcn.1000362b
add dword [esp + 0x48], 2
add dword [esp + 0x2c], 4
add esp, 0x20
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x20]
jb 0x10001c57
call fcn.100025ab
mov edi, dword [esp + 0x4c]
cmp dword [esp + 0x18], ebx
je 0x10001cd1
push dword [esp + 0x18]
call dword [esp + 0x40]
mov dword [esp + 0x18], ebx
inc dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
add dword [esp + 0x48], 0x204
cmp ecx, dword [eax]
jb 0x100019a9
push eax
call dword [esp + 0x40]
mov dword [esp + 0x40], ebx
inc dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
add dword [esp + 0x34], 0x214
cmp ecx, dword [eax]
jb 0x10001961
cmp dword [esp + 0x1c], ebx
je 0x10001d26
cmp dword [esp + 0x3c], ebx
je 0x10001d26
push dword [esp + 0x1c]
call dword [esp + 0x40]
cmp dword [esp + 0x2c], ebx
je 0x10001d3b
cmp dword [esp + 0x44], ebx
je 0x10001d3b
push ebx
push dword [esp + 0x30]
call dword [esp + 0x4c]
cmp dword [esp + 0x24], ebx
je 0x10001d4b
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x1a4]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10002efe
mov esp, ebp
pop ebp
ret 4