Function at 0x406b90
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x447070
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x45b680]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45b680]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa0]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, ecx
xor ebx, ebx
push str.in_CheckGateway
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ebx
call edi
push 0x288
call fcn.0042eae2
add esp, 4
lea ecx, [esp + 0x1c]
mov ebp, eax
push ecx
push ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x406c2d
push ebp
call fcn.0042e988
mov edx, dword [esp + 0x20]
push edx
call fcn.0042eae2
add esp, 8
mov dword [esp + 0x14], eax
mov ebp, eax
push str.m_strDeviceName:
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xd0]
push eax
call edi
mov eax, dword [esi + 0xd0]
cmp dword [eax - 0xc], ebx
jle 0x406c5f
lea ecx, [esp + 0x1c]
push ecx
push ebp
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, ebx
jne 0x406c5f
cmp ebp, ebx
jne 0x406c93
push ebp
call fcn.0042e988
add esp, 4
xor al, al
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0042de55
add esp, 0x88
ret 4
xor ebx, ebx
lea esi, [ebp + 0x10c]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
lea edi, [eax + 1]
jmp 0x406cc0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406cc0
sub eax, edi
push eax
push esi
lea ecx, [esp + 0x74]
call fcn.004039d0
mov edi, vtable.CStlStringA.0
mov dword [esp + 0x68], edi
mov dword [esp + 0x88], 0x400
lea esi, [ebp + 8]
push esi
mov dword [esp + 0x9c], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x406d10
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x50]
call fcn.004039d0
mov dword [esp + 0x44], edi
mov dword [esp + 0x64], 0x400
lea edx, [esp + 0x68]
push edx
lea edi, [esp + 0x2c]
mov byte [esp + 0x9c], 1
call fcn.00411430
mov edx, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0xd0]
mov eax, ecx
lea edi, [eax + 2]
mov si, word [eax]
add eax, 2
cmp si, bx
jne 0x406d57
sub eax, edi
sar eax, 1
mov ebx, eax
push ecx
xor eax, eax
call fcn.0040ae40
cmp eax, 0xffffffff
setne bl
cmp dword [esp + 0x40], 8
jb 0x406d8a
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00411e4d
add esp, 4
test bl, bl
je 0x406dc5
lea esi, [ebp + 0x1d8]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.0040b2b0
mov edx, dword [esi]
cmp dword [edx - 0xc], 0
jle 0x406dc5
push str.0.0.0.0
push esi
call fcn.004029c0
add esp, 8
test al, al
jne 0x406f02
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0xd4]
cmp dword [eax - 0xc], 0
je 0x406e17
lea ecx, [esp + 0x44]
push ecx
lea edi, [esp + 0x2c]
call fcn.00411430
mov esi, dword [esi + 0xd4]
or dword [esp + 0x18], 1
mov edx, eax
mov eax, esi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406df5
sub eax, edi
sar eax, 1
mov ebx, eax
push esi
xor eax, eax
call fcn.0040ae40
cmp eax, 0xffffffff
je 0x406e17
mov bl, 1
jmp 0x406e19
xor bl, bl
test byte [esp + 0x18], 1
je 0x406e50
and dword [esp + 0x18], 0xfffffffe
cmp dword [esp + 0x40], 8
jb 0x406e39
mov edx, dword [esp + 0x2c]
push edx
call fcn.00411e4d
add esp, 4
xor edi, edi
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], ax
jmp 0x406e52
xor edi, edi
test bl, bl
je 0x406e8c
lea esi, [ebp + 0x1d8]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.0040b2b0
mov ecx, dword [esi]
cmp dword [ecx - 0xc], edi
jle 0x406e8c
push str.0.0.0.0
push esi
call fcn.004029c0
add esp, 8
test al, al
jne 0x406f33
mov ebp, dword [ebp]
mov esi, 0x10
mov ebx, vtable.CStlStringA.0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x64], edi
cmp dword [esp + 0x60], esi
jb 0x406eb4
mov edx, dword [esp + 0x4c]
push edx
call fcn.00411e4d
add esp, 4
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], edi
mov byte [esp + 0x4c], 0
mov dword [esp + 0x68], ebx
mov dword [esp + 0x88], edi
cmp dword [esp + 0x84], esi
jb 0x406ef1
mov eax, dword [esp + 0x70]
push eax
call fcn.00411e4d
add esp, 4
cmp ebp, edi
jne 0x406c91
mov ebp, dword [esp + 0x14]
jmp 0x406c5f
push str.CheckNDISPort::Get_IP_OK
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0042e988
add esp, 4
lea ecx, [esp + 0x44]
call fcn.00411360
lea ecx, [esp + 0x68]
call fcn.00411360
mov al, 1
jmp 0x406c6a
push str.CheckNDISPort::Get_IP_OK
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [esp + 0x14]
push edx
jmp 0x406f12