Function at 0x407630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44992a
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x45e680]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e680]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb4]
mov esi, ecx
xor ebp, ebp
push str.in_CheckGateway
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], ebp
call fcn.00404a10
lea ecx, [esp + 0x14]
mov dword [esp + 0xac], ebp
call fcn.00409a70
mov dword [esp + 0xac], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x288
call fcn.0043051f
add esp, 4
lea ecx, [esp + 0x24]
mov edi, eax
push ecx
push edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40770f
push edi
call fcn.004303c5
mov edx, dword [esp + 0x28]
push edx
call fcn.0043051f
add esp, 8
mov dword [esp + 0x14], eax
mov edi, eax
add esi, 0xd0
mov ecx, esi
call fcn.00409a70
mov eax, dword [esi]
cmp dword [eax - 0xc], ebp
jle 0x40773a
lea ecx, [esp + 0x24]
push ecx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, ebp
jne 0x40773a
mov dword [esp + 0x20], edi
cmp edi, ebp
jne 0x407776
push edi
call fcn.004303c5
add esp, 4
xor al, al
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0042f892
add esp, 0x9c
ret 4
mov edi, dword [esp + 0x20]
xor ebp, ebp
lea edx, [esp + 0x30]
lea esi, [edi + 0x10c]
push edx
mov ecx, esi
call fcn.0040c150
lea ecx, [esp + 0x30]
mov dword [esp + 0xac], 1
call fcn.00409850
mov dword [esp + 0xac], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4077c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x94], ebp
mov byte [esp + 0x84], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4077e6
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x88]
call fcn.00403a80
mov dword [esp + 0x7c], vtable.CStlStringA.0
mov dword [esp + 0x9c], 0x400
lea ecx, [esp + 0x2c]
lea esi, [edi + 8]
push ecx
mov ebx, 2
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.0040c150
lea ecx, [esp + 0x2c]
mov byte [esp + 0xac], 3
call fcn.00409850
mov byte [esp + 0xac], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407863
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebp
mov byte [esp + 0x60], 0
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407880
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x64]
call fcn.00403a80
mov dword [esp + 0x58], vtable.CStlStringA.0
mov dword [esp + 0x78], 0x400
lea ecx, [esp + 0x7c]
push ecx
lea edi, [esp + 0x40]
mov byte [esp + 0xb0], 4
call fcn.00412e30
mov edx, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0xd0]
add eax, 0xd0
mov eax, ecx
lea edi, [eax + 2]
mov si, word [eax]
add eax, ebx
cmp si, bp
jne 0x4078d0
sub eax, edi
sar eax, 1
mov ebx, eax
push ecx
xor eax, eax
call fcn.0040c330
cmp eax, 0xffffffff
setne bl
cmp dword [esp + 0x54], 8
jb 0x407902
mov edx, dword [esp + 0x40]
push edx
call fcn.00413858
add esp, 4
test bl, bl
je 0x4079f1
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x28]
add esi, 0x1d8
push eax
mov ecx, esi
call fcn.0040c150
lea ecx, [esp + 0x28]
mov byte [esp + 0xac], 5
call fcn.00409850
mov byte [esp + 0xac], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407959
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x38]
push esi
mov ecx, ebp
call fcn.0040cad0
mov ecx, dword [ebp]
cmp dword [ecx - 0xc], 0
jle 0x4079f5
push str.0.0.0.0
push ebp
call fcn.00402a50
add esp, 8
test al, al
je 0x4079f5
push str.CheckNDISPort::Get_IP_OK
lea ecx, [esp + 0x1c]
call fcn.00404a10
mov byte [esp + 0xac], 6
lea ecx, [esp + 0x18]
call fcn.00409a70
mov byte [esp + 0xac], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4079cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004303c5
add esp, 4
lea ecx, [esp + 0x58]
call fcn.00412d60
lea ecx, [esp + 0x7c]
call fcn.00412d60
mov al, 1
jmp 0x407745
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov edx, dword [esi + 0xd4]
cmp dword [edx - 0xc], 0
je 0x407a47
lea eax, [esp + 0x58]
push eax
lea edi, [esp + 0x40]
call fcn.00412e30
mov esi, dword [esi + 0xd4]
or dword [esp + 0x1c], 1
mov edx, eax
mov eax, esi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407a25
sub eax, edi
sar eax, 1
mov ebx, eax
push esi
xor eax, eax
call fcn.0040c330
cmp eax, 0xffffffff
je 0x407a47
mov bl, 1
jmp 0x407a49
xor bl, bl
test byte [esp + 0x1c], 1
je 0x407a69
and dword [esp + 0x1c], 0xfffffffe
cmp dword [esp + 0x54], 8
jb 0x407a69
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00413858
add esp, 4
test bl, bl
je 0x407ae3
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x18]
add esi, 0x1d8
push edx
mov ecx, esi
call fcn.0040c150
lea ecx, [esp + 0x18]
mov byte [esp + 0xac], 7
call fcn.00409850
mov byte [esp + 0xac], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407abc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
mov ecx, ebp
call fcn.0040cad0
mov ecx, dword [ebp]
cmp dword [ecx - 0xc], 0
jle 0x407ae3
push str.0.0.0.0
push ebp
call fcn.00402a50
add esp, 8
test al, al
jne 0x407b69
mov edx, dword [esp + 0x20]
mov esi, dword [edx]
mov ebx, 0x10
mov edi, vtable.CStlStringA.0
mov dword [esp + 0x20], esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x78], 0
cmp dword [esp + 0x74], ebx
jb 0x407b16
mov eax, dword [esp + 0x60]
push eax
call fcn.00413858
add esp, 4
xor ebp, ebp
mov dword [esp + 0xac], 0xffffffff
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebp
mov byte [esp + 0x60], 0
mov dword [esp + 0x7c], edi
mov dword [esp + 0x9c], ebp
cmp dword [esp + 0x98], ebx
jb 0x407b58
mov ecx, dword [esp + 0x84]
push ecx
call fcn.00413858
add esp, 4
cmp esi, ebp
jne 0x407770
mov edi, dword [esp + 0x14]
jmp 0x40773a
push str.CheckNDISPort::Get_IP_OK
lea ecx, [esp + 0x1c]
call fcn.00404a10
mov byte [esp + 0xac], 8
jmp 0x40799a