Function at 0x40d260
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x47fe9c
mov eax, dword fs:[0]
push eax
sub esp, 0x3d4
mov eax, dword [0x4a97e0]
xor eax, esp
mov dword [esp + 0x3d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a97e0]
xor eax, esp
push eax
lea eax, [esp + 0x3e8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3f8]
push ebp
push str.EnableHotspotPPOE__s_
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 + 0x3f8], ebx
call fcn.00404070
test eax, eax
jne 0x40d33d
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov edi, edi
push ebp
lea ecx, [esp + 0x18]
push ecx
call fcn.00404070
test eax, eax
jne 0x40d33d
push 0x2710
call edi
mov ecx, ebp
call fcn.00422320
test eax, eax
jne 0x40d309
add esi, 1
cmp esi, 0x12
jl 0x40d2e0
mov dword [esp + 0x3f0], 0xffffffff
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40d327
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40d327
push ecx
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40d336
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x40d57d
push 0x1f3
lea edx, [esp + 0x1f1]
push ebx
push edx
mov byte [esp + 0x1f8], 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 + 0x3f0], 1
push 0x17
push 0x48d83c
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 + 0x3f0], 2
push 0x70
push str.__xml_version_1.0__encoding_UTF_8____r_n_nadyn:NetAppsDyn__r_n_nadyn:PPPOE__s__nadyn:PPPOE__r_n__nadyn:NetAppsDyn__r_n
lea ecx, [esp + 0x134]
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
call fcn.00401960
cmp dword [esp + 0x3fc], ebx
mov byte [esp + 0x3f0], 3
mov ecx, str.enabled
jne 0x40d3ef
mov ecx, str.disabled
mov eax, dword [esp + 0x130]
mov esi, 0x10
cmp dword [esp + 0x144], esi
jae 0x40d40b
lea eax, [esp + 0x130]
push ecx
push eax
lea eax, [esp + 0x1f4]
push 0x1f4
push eax
call fcn.0045ecdb
lea eax, [esp + 0x1fc]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40d430
sub eax, edx
push eax
lea ecx, [esp + 0x1f0]
push ecx
lea ecx, [esp + 0x150]
call fcn.00401960
cmp dword [esp + 0x128], esi
mov esi, dword [esp + 0x114]
jae 0x40d467
lea esi, [esp + 0x114]
mov edi, dword [esp + 0x1c]
cmp edi, ebx
mov ebp, dword [esp + 0x18]
je 0x40d4c1
mov eax, dword [esp + 0x64]
cmp eax, ebx
jne 0x40d4ad
cmp ebp, ebx
je 0x40d4a0
push str.PutPage
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esp + 0x64], eax
jne 0x40d4ad
push str.EWSIntf::put_page:_Function_not_found_in_DLL:_PutPage_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40d4c1
push str.EWSIntf::put_page:_Attempting_to_lookup_PutPage_with_no_DLL_handle_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40d4c1
lea edx, [esp + 0x164]
push edx
lea ecx, [esp + 0x1f0]
push ecx
push esi
push edi
call eax
cmp dword [esp + 0x144], 0x10
jb 0x40d4db
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 0x40d50f
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 0x40d53e
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 + 0x3f0], 0xffffffff
je 0x40d56d
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40d56d
push edi
call eax
cmp ebp, ebx
je 0x40d578
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov ecx, dword [esp + 0x3e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3d0]
xor ecx, esp
call fcn.0045e88c
add esp, 0x3e0
ret 8