Function at 0x40cb90
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x47fdac
mov eax, dword fs:[0]
push eax
sub esp, 0xeb0
mov eax, dword [0x4a97e0]
xor eax, esp
mov dword [esp + 0xea8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a97e0]
xor eax, esp
push eax
lea eax, [esp + 0xec4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xed4]
push ebp
mov ecx, 0x140
lea esi, [esp + 0xedc]
lea edi, [esp + 0x1f0]
push str.SetHotspotStaticIP__s_
rep movsd dword es:[edi], dword [esi]
call fcn.00421450
mov edi, eax
call fcn.00421970
add esp, 8
lea esi, [esp + 0x14]
call fcn.00402120
push ebp
mov eax, esi
xor ebx, ebx
push eax
mov dword [esp + 0xed4], ebx
call fcn.00404070
test eax, eax
jne 0x40cc80
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push ebp
lea ecx, [esp + 0x18]
push ecx
call fcn.00404070
test eax, eax
jne 0x40cc80
push 0x2710
call edi
mov ecx, ebp
call fcn.00422320
test eax, eax
jne 0x40cc4c
add esi, 1
cmp esi, 0x12
jl 0x40cc23
mov dword [esp + 0xecc], 0xffffffff
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40cc6a
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40cc6a
push ecx
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40cc79
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x40ced3
push 0x7cf
lea edx, [esp + 0x6f1]
push ebx
push edx
mov byte [esp + 0x6f8], bl
call fcn.00461780
mov esi, 0xf
add esp, 0xc
mov dword [esp + 0x160], esi
mov dword [esp + 0x15c], ebx
mov byte [esp + 0x14c], bl
mov byte [esp + 0xecc], 1
push 0x18
push str._DevMgmt_IOConfigDyn.xml
lea ecx, [esp + 0x118]
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
call fcn.00401960
mov byte [esp + 0xecc], 2
push 0x26e
push str._iocfgdyn2:IOConfigDyn__r_n_dd:Version__r_n_dd:Revision_1.0__dd:Revision__r_n__dd:Version__r_n_dd3:IOAdaptorConfig__r_n_dd3:NetworkAdaptorConfig__r_n_dd3:IPVersionConfig__r_n_dd3:IPConfig__r_n_dd:DefaultGateway__s__dd:DefaultGateway__r_n_dd:DNSConfig__r_n_dd:DNSServerIPAddress__s__dd:DNSServerIPAddress__r_n__dd:DNSConfig__r_n_dd:DNSConfig__r_n_dd:DNSServerIPAddress__s__dd:DNSServerIPAddress__r_n__dd:DNSConfig__r_n_dd:IPAddress__s__dd:IPAddress__r_n_dd:IPConfigMethod_MANUAL__dd:IPConfigMethod__r_n_dd:SubnetMask__s__dd:SubnetMask__r_n__dd3:IPConfig__r_n__dd3:IPVersionConfig__r_n__dd3:NetworkAdaptorConfig__r_n__dd3:IOAdaptorConfig__r_n__iocfgdyn2:IOConfigDyn__r_n
lea ecx, [esp + 0x134]
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
call fcn.00401960
mov byte [esp + 0xecc], 3
mov eax, dword [esp + 0x130]
mov esi, 0x10
cmp dword [esp + 0x144], esi
jae 0x40cd3e
lea eax, [esp + 0x130]
lea ecx, [esp + 0x2ec]
push ecx
lea edx, [esp + 0x1f0]
push edx
lea ecx, [esp + 0x5f4]
push ecx
lea edx, [esp + 0x4f8]
push edx
lea ecx, [esp + 0x3fc]
push ecx
push eax
lea edx, [esp + 0x704]
push 0x7d0
push edx
call fcn.0045ecdb
lea eax, [esp + 0x70c]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40cd86
sub eax, edx
push eax
lea eax, [esp + 0x6f0]
push eax
lea ecx, [esp + 0x150]
call fcn.00401960
cmp dword [esp + 0x128], esi
mov esi, dword [esp + 0x114]
jae 0x40cdbd
lea esi, [esp + 0x114]
mov edi, dword [esp + 0x1c]
cmp edi, ebx
mov ebp, dword [esp + 0x18]
je 0x40ce17
mov eax, dword [esp + 0x64]
cmp eax, ebx
jne 0x40ce03
cmp ebp, ebx
je 0x40cdf6
push str.PutPage
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esp + 0x64], eax
jne 0x40ce03
push str.EWSIntf::put_page:_Function_not_found_in_DLL:_PutPage_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40ce17
push str.EWSIntf::put_page:_Attempting_to_lookup_PutPage_with_no_DLL_handle_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40ce17
lea ecx, [esp + 0x164]
push ecx
lea edx, [esp + 0x6f0]
push edx
push esi
push edi
call eax
cmp dword [esp + 0x144], 0x10
jb 0x40ce31
mov eax, dword [esp + 0x130]
push eax
call fcn.0044204a
add esp, 4
cmp dword [esp + 0x128], 0x10
mov esi, 0xf
mov dword [esp + 0x144], esi
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
jb 0x40ce65
mov ecx, dword [esp + 0x114]
push ecx
call fcn.0044204a
add esp, 4
cmp dword [esp + 0x160], 0x10
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
jb 0x40ce94
mov edx, dword [esp + 0x14c]
push edx
call fcn.0044204a
add esp, 4
cmp edi, ebx
mov dword [esp + 0x160], esi
mov dword [esp + 0x15c], ebx
mov byte [esp + 0x14c], bl
mov dword [esp + 0xecc], 0xffffffff
je 0x40cec3
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40cec3
push edi
call eax
cmp ebp, ebx
je 0x40cece
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov ecx, dword [esp + 0xec4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xea8]
xor ecx, esp
call fcn.0045e88c
add esp, 0xebc
ret 0x504