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

Disassembly:
push 0xffffffffffffffff
push 0x434329
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x444238]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x444238]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov esi, dword [esp + 0xe4]
mov ebx, ecx
push 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebx
call fcn.00408450
push 0x40
push 2
xor edi, edi
push esi
lea ecx, [esp + 0x38]
mov dword [esp + 0xe4], edi
call fcn.00407540
test eax, eax
jne 0x40859f
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x28]
lea ecx, [esp + ecx + 0x20]
or eax, 2
cmp dword [ecx + 0x28], edi
jne 0x408598
or eax, 4
push edi
push eax
call fcn.00406200
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], edi
mov word [esp + 0xb4], di
mov eax, dword [esp + 0xe0]
sub eax, 1
mov byte [esp + 0xd8], 1
je 0x408779
sub eax, 1
jne 0x408914
push 0x16
push str.Tcp_Udp_Network_State:
lea ecx, [esp + 0xb8]
call fcn.004055b0
mov eax, dword [esp + 0xb4]
mov esi, 8
cmp dword [esp + 0xc8], esi
jae 0x408609
lea eax, [esp + 0xb4]
mov ecx, dword [esp + 0xc4]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00408260
push 0x49
push str._n_nResult:_nProcess_Name__PID__Protocol_Local_Address_Remote_Address_State_n
lea ecx, [esp + 0xb8]
call fcn.004055b0
cmp dword [esp + 0xc8], esi
mov eax, dword [esp + 0xb4]
jae 0x408645
lea eax, [esp + 0xb4]
mov edx, dword [esp + 0xc4]
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.00408260
mov eax, dword [ebx + 0xa0]
push edi
push edi
push 0x1004
push eax
xor ebp, ebp
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x408914
add ebx, 0x80
jmp 0x408680
lea ecx, [esp + 0xb0]
call fcn.004040b0
lea esp, [esp]
push edi
push ebp
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.0041517c
mov ecx, dword [eax]
mov eax, ecx
mov byte [esp + 0xd8], 3
lea esi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4086b0
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0xb8]
call fcn.004054b0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xd8], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4086f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x437218
lea ecx, [esp + 0xb8]
call fcn.004054b0
add edi, 1
cmp edi, 5
jl 0x408690
push 1
push 0x437214
lea ecx, [esp + 0xb8]
call fcn.004054b0
cmp dword [esp + 0xc8], 8
mov eax, dword [esp + 0xb4]
jae 0x40873b
lea eax, [esp + 0xb4]
mov ecx, dword [esp + 0xc4]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00408260
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xa0]
push 0
push 0
push 0x1004
push eax
add ebp, 1
call dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
cmp ebp, eax
jl 0x408680
jmp 0x408914
push 0x16
push str.Tcp_Udp_Network_State:
lea ecx, [esp + 0xb8]
call fcn.004055b0
mov eax, dword [esp + 0xb4]
mov esi, 8
cmp dword [esp + 0xc8], esi
jae 0x4087a8
lea eax, [esp + 0xb4]
mov ecx, dword [esp + 0xc4]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00408260
push 0x49
push 0x437180
lea ecx, [esp + 0xb8]
call fcn.004055b0
cmp dword [esp + 0xc8], esi
mov eax, dword [esp + 0xb4]
jae 0x4087e4
lea eax, [esp + 0xb4]
mov edx, dword [esp + 0xc4]
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.00408260
mov eax, dword [ebx + 0xa0]
push edi
push edi
push 0x1004
push eax
xor ebp, ebp
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x408914
add ebx, 0x80
lea ebx, [ebx]
lea ecx, [esp + 0xb0]
call fcn.004040b0
lea esp, [esp]
push edi
push ebp
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.0041517c
mov ecx, dword [eax]
mov eax, ecx
mov byte [esp + 0xd8], 2
lea esi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x408850
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0xb8]
call fcn.004054b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xd8], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408895
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x43717c
lea ecx, [esp + 0xb8]
call fcn.004054b0
add edi, 1
cmp edi, 5
jl 0x408830
push 1
push 0x437214
lea ecx, [esp + 0xb8]
call fcn.004054b0
cmp dword [esp + 0xc8], 8
mov eax, dword [esp + 0xb4]
jae 0x4088db
lea eax, [esp + 0xb4]
mov ecx, dword [esp + 0xc4]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00408260
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xa0]
push 0
push 0
push 0x1004
push eax
add ebp, 1
call dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
cmp ebp, eax
jl 0x408820
cmp dword [esp + 0x78], edi
lea esi, [esp + 0x2c]
je 0x40893c
mov ecx, esi
call fcn.004044f0
test al, al
jne 0x40892b
xor esi, esi
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0041cb24
add esp, 4
test eax, eax
je 0x40893e
xor esi, esi
cmp esi, edi
lea edx, [esp + 0x34]
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x38]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x48]
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov edx, dword [0x4457c4]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x58]
mov byte [esp + 0x74], 0
mov byte [esp + 0x6e], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x70], edx
mov dword [esp + 0x68], edi
jne 0x4089c7
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x28]
lea ecx, [esp + ecx + 0x20]
or eax, 2
cmp dword [ecx + 0x28], edi
jne 0x4089c0
or eax, 4
push edi
push eax
call fcn.00406200
cmp dword [esp + 0xc8], 8
jb 0x4089e1
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.0040c689
add esp, 4
lea ecx, [esp + 0x7c]
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], edi
mov word [esp + 0xb4], di
mov dword [esp + 0xd8], 0xffffffff
call fcn.00407470
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x80], vtable.std::ios_base.0
call fcn.00430d56
add esp, 4
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.0041afda
add esp, 0xc8
ret 0xc