Function at 0x40cf00
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x47fd4c
mov eax, dword fs:[0]
push eax
sub esp, 0x5d8
mov eax, dword [0x4a97e0]
xor eax, esp
mov dword [esp + 0x5d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a97e0]
xor eax, esp
push eax
lea eax, [esp + 0x5ec]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5fc]
push ebp
mov ecx, 0x80
lea esi, [esp + 0x604]
lea edi, [esp + 0x1f0]
push str.SetHotspotPPOE__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 + 0x5fc], ebx
call fcn.00404070
test eax, eax
jne 0x40cff0
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 0x40cff0
push 0x2710
call edi
mov ecx, ebp
call fcn.00422320
test eax, eax
jne 0x40cfbc
add esi, 1
cmp esi, 0x12
jl 0x40cf93
mov dword [esp + 0x5f4], 0xffffffff
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40cfda
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40cfda
push ecx
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40cfe9
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x40d22d
push 0x1f3
lea edx, [esp + 0x3f1]
push ebx
push edx
mov byte [esp + 0x3f8], 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 + 0x5f4], 1
push 0x26
push str._IoMgmt_Adapters_wifi1_Profiles_Active
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 + 0x5f4], 2
push 0xcc
push str._io:Profile__r_n_io:AdapterProfile__r_n_io:WifiBaseStation__r_n_io:PPPOE__r_n_dd:UserName__s__dd:UserName__r_n_dd:Password__s__dd:Password__r_n__io:PPPOE__r_n__io:WifiBaseStation__r_n__io:AdapterProfile__r_n__io:Profile__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 + 0x5f4], 3
mov eax, dword [esp + 0x130]
mov esi, 0x10
cmp dword [esp + 0x144], esi
jae 0x40d0ae
lea eax, [esp + 0x130]
lea ecx, [esp + 0x2ec]
push ecx
lea edx, [esp + 0x1f0]
push edx
push eax
lea eax, [esp + 0x3f8]
push 0x1f4
push eax
call fcn.0045ecdb
lea eax, [esp + 0x400]
add esp, 0x14
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40d0e0
sub eax, edx
push eax
lea ecx, [esp + 0x3f0]
push ecx
lea ecx, [esp + 0x150]
call fcn.00401960
cmp dword [esp + 0x128], esi
mov esi, dword [esp + 0x114]
jae 0x40d117
lea esi, [esp + 0x114]
mov edi, dword [esp + 0x1c]
cmp edi, ebx
mov ebp, dword [esp + 0x18]
je 0x40d171
mov eax, dword [esp + 0x64]
cmp eax, ebx
jne 0x40d15d
cmp ebp, ebx
je 0x40d150
push str.PutPage
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esp + 0x64], eax
jne 0x40d15d
push str.EWSIntf::put_page:_Function_not_found_in_DLL:_PutPage_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40d171
push str.EWSIntf::put_page:_Attempting_to_lookup_PutPage_with_no_DLL_handle_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40d171
lea edx, [esp + 0x164]
push edx
lea ecx, [esp + 0x3f0]
push ecx
push esi
push edi
call eax
cmp dword [esp + 0x144], 0x10
jb 0x40d18b
mov edx, dword [esp + 0x130]
push edx
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 0x40d1bf
mov eax, dword [esp + 0x114]
push eax
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 0x40d1ee
mov ecx, dword [esp + 0x14c]
push ecx
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 + 0x5f4], 0xffffffff
je 0x40d21d
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40d21d
push edi
call eax
cmp ebp, ebx
je 0x40d228
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov ecx, dword [esp + 0x5ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5d0]
xor ecx, esp
call fcn.0045e88c
add esp, 0x5e4
ret 0x204