Function at 0x437e20
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov byte [ebp - 1], 0
mov esi, dword [ebx]
mov dword [eax], 0xffffffff
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 8], esi
push eax
push dword [ebp + 0xc]
push ebx
call fcn.004375f0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4380da
movzx eax, word [ebp - 0xbc]
sub eax, 2
jne 0x438098
push 0x2e
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xb8]
push eax
push 2
call fcn.00442170
add esp, 0x10
test eax, eax
je 0x438098
push dword [ebp - 0xba]
call dword [sym.imp.WS2_32.dll_ntohs]
lea eax, [ebp - 0x3c]
push eax
push str.__Trying__s..._n
push esi
call fcn.00426bf0
add esp, 0xc
cmp dword [ebp - 0xcc], 2
jne 0x437ec5
cmp dword [ebp - 0xc8], 1
jne 0x437ec5
mov al, 1
jmp 0x437ec7
xor al, al
mov esi, dword [ebp - 0xc]
mov byte [ebp + 0xb], al
test al, al
je 0x437ee7
mov eax, dword [ebp - 8]
cmp byte [eax + 0x3de], 0
je 0x437ee7
push esi
push ebx
call fcn.004376a0
add esp, 8
push esi
call fcn.00437550
mov eax, dword [ebp - 8]
add esp, 4
cmp byte [ebp + 0xb], 0
je 0x437f0f
cmp byte [eax + 0x510], 0
je 0x437f0f
push esi
push eax
call fcn.004380f0
mov eax, dword [ebp - 8]
add esp, 8
mov ecx, dword [eax + 0x210]
test ecx, ecx
je 0x437f30
push 0
push esi
push dword [eax + 0x214]
call ecx
add esp, 0xc
cmp eax, 2
jne 0x437f7a
mov byte [ebp - 1], 1
cmp dword [ebp - 0xcc], 2
jne 0x437f94
lea eax, [ebp - 0xbc]
push eax
call fcn.00442630
push eax
push dword [ebp - 0xcc]
push esi
push ebx
call fcn.004379b0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x437f94
push esi
push ebx
call fcn.00436da0
add esp, 8
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x437f30
push esi
push ebx
call fcn.00436da0
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.00447890
lea eax, [ebp - 0xdc]
push eax
call fcn.0042cee0
add esp, 0xc
cmp dword [ebx + 0x2d0], 1
movups xmm0, xmmword [eax]
movups xmmword [ebx + 0x2c0], xmm0
jle 0x437fd8
mov eax, dword [ebp - 8]
push 3
push dword [ebx + 0x2dc]
push dword [ebx + 0x2d8]
push eax
call fcn.004288e0
add esp, 0x10
cmp byte [ebp - 1], 0
jne 0x43808a
cmp dword [ebx + 0x94], 1
jne 0x43808a
cmp byte [ebx + 0x2ba], 0
jne 0x438023
push dword [ebp - 0xc0]
lea eax, [ebp - 0xbc]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x438023
test edi, edi
jne 0x438081
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0xb
je 0x43807a
cmp eax, 0x2732
jle 0x43803f
cmp eax, 0x2734
jle 0x43807a
push eax
push ebx
call fcn.00425b60
mov edi, dword [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push edi
call fcn.00426bf0
mov eax, dword [ebp + 8]
push esi
push ebx
mov dword [edi + 0x4774], eax
call fcn.00436da0
add esp, 0x20
mov edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x3c], 0
call fcn.00564579
mov dword [eax], 0x273f
call fcn.00564579
mov esi, eax
call fcn.00564579
push dword [esi]
mov edi, eax
push ebx
call fcn.00425b60
push eax
push dword [edi]
mov eax, dword [ebp - 8]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00426b10
push dword [ebp - 0xc]
push ebx
call fcn.00436da0
add esp, 0x20
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret