Function at 0x45da40
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x154
mov eax, dword [0x4d901c]
xor eax, esp
mov dword [esp + 0x150], eax
mov edx, dword [esp + 0x160]
mov ecx, dword [esp + 0x15c]
push ebx
mov ebx, dword [esp + 0x15c]
push ebp
xor ebp, ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
mov eax, dword [ebx]
mov dword [edx], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], ebp
cmp dword [ebx + ecx*4 + 0x270], ebp
je 0x45dab1
pop ebp
mov dword [edx], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0044be2b
add esp, 0x154
ret
push esi
push edi
call fcn.00454c60
mov esi, eax
mov dword [esp + 0x14], 0x493e0
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov edi, edx
mov edx, dword [eax + 0x1e0]
test edx, edx
setg cl
cmp dword [eax + 0x1e4], ebp
jle 0x45dae0
or ecx, 2
sub ecx, 1
je 0x45dafe
sub ecx, 1
je 0x45dbf5
sub ecx, 1
jne 0x45db02
mov ecx, dword [eax + 0x1e4]
cmp edx, ecx
cmovge edx, ecx
mov dword [esp + 0x14], edx
push dword [eax + 0x534]
push dword [eax + 0x530]
push edi
push esi
call fcn.00454bd0
mov ecx, dword [esp + 0x24]
add esp, 0x10
sub ecx, eax
mov dword [esp + 0x14], ecx
je 0x45e03d
test ecx, ecx
js 0x45e03d
xor eax, eax
mov dword [esp + 0x10], eax
nop word [eax + eax]
lea ecx, [ebx + 0x15c]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x45dcf5
push 0
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0045ca70
add esp, 0x10
test eax, eax
jne 0x45dc04
push dword [ebx + 0x2b4]
mov eax, dword [ebx + 0x2bc]
push dword [ebx + 0x2b0]
mov dword [esp + 0x2c], eax
push edi
push esi
call fcn.00454bd0
mov ecx, dword [esp + 0x34]
add esp, 0x10
cmp eax, ecx
jl 0x45dbb2
push ecx
push str.After__ldms_connect_time__move_on__n
push dword [esp + 0x20]
call fcn.0045d140
mov ebp, 0x274c
add esp, 0xc
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x45dc53
cmp dword [ebx + 0x54], eax
jne 0x45dc53
push dword [ebx + 0x2b4]
push dword [ebx + 0x2b0]
push edi
push esi
call fcn.00454bd0
add esp, 0x10
cmp eax, 0xc8
jl 0x45dc4f
push 1
push dword [esp + 0x20]
push ebx
call fcn.0045f0b0
add esp, 0xc
jmp 0x45dc4f
mov ecx, dword [eax + 0x1e4]
mov dword [esp + 0x14], ecx
jmp 0x45db02
cmp eax, 2
jne 0x45dc34
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push dword [eax]
call fcn.0045f170
add esp, 8
test eax, eax
jne 0x45dd44
push str.Connection_failed_n
push dword [esp + 0x1c]
call fcn.0045d140
jmp 0x45dc48
test al, 4
je 0x45dc4f
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push dword [eax]
call fcn.0045f170
mov ebp, dword [esp + 0x28]
add esp, 8
mov eax, dword [esp + 0x10]
test ebp, ebp
je 0x45dcf5
mov eax, dword [esp + 0x18]
push ebp
mov dword [eax + 0x85fc], ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x14]
lea ecx, [ebx + ecx*4]
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x45dcf5
push 0x2e
lea eax, [esp + 0x134]
push eax
push ecx
call fcn.004557b0
push ebp
push ebx
call fcn.00450a40
push eax
push dword [ebx + 0xb0]
lea eax, [esp + 0x14c]
push eax
push str.connect_to__s_port__ld_failed:__s_n
push dword [esp + 0x3c]
call fcn.0045d140
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
mov ebp, dword [ebp]
sar eax, 1
push edx
push dword [esp + 0x48]
cmp dword [ebp + 0x1c], 0
push ebx
cmovne ecx, eax
mov dword [ebx + 0x2bc], ecx
call fcn.0045f0b0
mov ebp, dword [esp + 0x54]
mov ecx, eax
mov eax, dword [esp + 0x44]
add esp, 0x34
mov dword [esp + 0x28], ecx
jmp 0x45dcf9
mov ecx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 2
jl 0x45db40
test ecx, ecx
je 0x45e039
cmp dword [ebx + 0x54], 0
jne 0x45dd2c
push 1
push dword [esp + 0x20]
push ebx
call fcn.0045f0b0
add esp, 0xc
test eax, eax
je 0x45e00b
cmp dword [ebx + 0x254], 0
je 0x45e00f
mov esi, dword [ebx + 0xa8]
jmp 0x45e015
mov edx, dword [esp + 0x10]
mov ecx, edx
mov ebp, dword [esp + 0x1c]
xor ecx, 1
lea esi, [ebx + ecx*4]
mov eax, dword [ebx + edx*4 + 0x15c]
mov dword [ebx + ebp*4 + 0x154], eax
mov eax, dword [ebx + edx*4 + 0x50]
mov dword [ebx + 0x4c], eax
mov dword [ebx + edx*4 + 0x15c], 0xffffffff
mov eax, dword [esi + 0x15c]
cmp eax, 0xffffffff
je 0x45dd93
push eax
push ebx
call fcn.0045d7f0
add esp, 8
mov dword [esi + 0x15c], 0xffffffff
push ebp
push ebx
call fcn.004566a0
add esp, 8
test eax, eax
jne 0x45e053
mov eax, dword [esp + 0x2c]
mov dword [ebx + ebp*4 + 0x270], 1
mov dword [eax], 1
test ebp, ebp
jne 0x45ddcc
push 4
push dword [esp + 0x1c]
call fcn.004662a0
add esp, 8
cmp dword [ebx + 0x8c], 2
mov esi, dword [ebx + ebp*4 + 0x154]
mov edi, dword [ebx]
je 0x45e002
cmp dword [ebx + 0x250], 0
jne 0x45df56
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x80
push eax
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x45de3b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00450a40
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0045d070
add esp, 0x18
push ebx
call fcn.00459ac0
add esp, 4
xor eax, eax
jmp 0x45e053
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x80
push eax
lea eax, [esp + 0xb4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x45de8a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00450a40
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0045d070
add esp, 0x18
push ebx
call fcn.00459ac0
add esp, 4
xor eax, eax
jmp 0x45e053
lea eax, [ebx + 0xe8]
push eax
lea esi, [ebx + 0xb8]
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0045eb80
add esp, 0xc
test eax, eax
jne 0x45ded8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00450a40
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.0045d070
add esp, 0x18
push ebx
call fcn.00459ac0
add esp, 4
xor eax, eax
jmp 0x45e053
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [ebx + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x78], xmm0
mov dword [ebx + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x84], ax
lea eax, [ebx + 0x11c]
push eax
lea eax, [ebx + 0xec]
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.0045eb80
add esp, 0xc
test eax, eax
jne 0x45df56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00450a40
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.0045d070
add esp, 0x18
push ebx
call fcn.00459ac0
add esp, 4
xor eax, eax
jmp 0x45e053
mov ecx, dword [ebx]
movups xmm0, xmmword [ebx + 0xb8]
movups xmmword [ecx + 0x8f8c], xmm0
movups xmm0, xmmword [ebx + 0xc8]
movups xmmword [ecx + 0x8f9c], xmm0
movq xmm0, qword [ebx + 0xd8]
movq qword [ecx + 0x8fac], xmm0
mov eax, dword [ebx + 0xe0]
mov dword [ecx + 0x8fb4], eax
movzx eax, word [ebx + 0xe4]
mov word [ecx + 0x8fb8], ax
mov ecx, dword [ebx]
movups xmm0, xmmword [ebx + 0xec]
movups xmmword [ecx + 0x8fc0], xmm0
movups xmm0, xmmword [ebx + 0xfc]
movups xmmword [ecx + 0x8fd0], xmm0
movq xmm0, qword [ebx + 0x10c]
movq qword [ecx + 0x8fe0], xmm0
mov eax, dword [ebx + 0x114]
mov dword [ecx + 0x8fe8], eax
movzx eax, word [ebx + 0x118]
mov word [ecx + 0x8fec], ax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0xe8]
mov dword [ecx + 0x8fbc], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x11c]
mov dword [ecx + 0x8ff0], eax
push ebx
call fcn.00459ac0
add esp, 4
xor eax, eax
jmp 0x45e053
mov esi, dword [ebx + 0x98]
push ebp
push ebx
call fcn.00450a40
push eax
push dword [ebx + 0xb0]
push esi
push str.Failed_to_connect_to__s_port__ld:__s
push dword [esp + 0x30]
call fcn.0045d070
mov ecx, dword [esp + 0x44]
add esp, 0x1c
mov eax, ecx
jmp 0x45e053
push str.Connection_time_out
push dword [esp + 0x1c]
call fcn.0045d070
add esp, 8
mov eax, 0x1c
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044be2b
add esp, 0x154
ret