Function at 0x4fb5c0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xa4], edx
mov ebx, dword [edi]
mov dword [edx], 0xffffffff
mov dword [esi], ecx
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xa8], esi
push ecx
push eax
push edi
call fcn.004fade0
add esp, 0x10
test eax, eax
jne 0x4fb8cc
lea eax, [edi + 0xcc]
push eax
lea esi, [edi + 0x9e]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004fb560
add esp, 0xc
test eax, eax
jne 0x4fb685
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004fe270
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004ee430
push dword [ebp - 0x98]
push edi
call fcn.004fa8a0
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
lea ecx, [edi + 0x40]
push ecx
movups xmmword [ecx], xmm0
push str.__Trying__s..._n
movups xmm0, xmmword [esi + 0x10]
push ebx
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ecx + 0x20], xmm0
mov dword [ecx + 0x28], eax
mov ax, word [esi + 0x2c]
mov word [ecx + 0x2c], ax
call fcn.004ee4d0
push edi
call fcn.004facc0
mov esi, dword [ebp - 0x98]
add esp, 0x10
cmp dword [ebx + 0x314], 0
je 0x4fb6dc
push esi
push edi
call fcn.004fb9a0
add esp, 8
push esi
call fcn.004fad80
add esp, 4
cmp dword [ebx + 0x408], 0
je 0x4fb6f8
push esi
push ebx
call fcn.004fb950
add esp, 8
mov eax, dword [ebx + 0x16c]
test eax, eax
je 0x4fb725
push 0
push esi
push dword [ebx + 0x170]
call eax
add esp, 0xc
mov dword [ebp - 0x9c], eax
cmp eax, 2
jne 0x4fb760
mov dword [ebp - 0xa0], 1
push dword [ebp - 0x94]
push esi
push edi
call fcn.004fb0f0
add esp, 0xc
mov dword [ebp - 0x98], eax
test eax, eax
je 0x4fb784
push esi
push edi
call fcn.004fa8a0
mov eax, dword [ebp - 0x98]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4fb725
push esi
push edi
call fcn.004fa8a0
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.00515e80
mov eax, dword [ebp - 0xa0]
add esp, 8
test eax, eax
jne 0x4fb875
cmp dword [edi + 0x74], 1
jne 0x4fb875
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
mov dword [ebp - 0x98], eax
cmp eax, 0xffffffff
jne 0x4fb7d4
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0x9c], ecx
call fcn.004ffac0
cmp dword [edi + 0x20c], 1
mov dword [edi + 0x204], eax
mov dword [edi + 0x208], edx
jle 0x4fb7fd
push dword [edi + 0x210]
push ebx
call fcn.004fbbc0
add esp, 8
mov eax, dword [ebp - 0x98]
cmp eax, 0xffffffff
jne 0x4fb865
mov eax, dword [ebp - 0x9c]
cmp eax, 0xb
je 0x4fb849
cmp eax, 0x2732
jle 0x4fb821
cmp eax, 0x2734
jle 0x4fb849
push eax
push edi
call fcn.004fe270
push eax
lea eax, [edi + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push ebx
call fcn.004ee430
mov ecx, dword [ebp - 0x9c]
add esp, 0x18
mov dword [ebx + 0x858c], ecx
jmp 0x4fb883
push dword [ebp + 0x10]
push esi
push edi
call fcn.004fbb20
add esp, 0xc
mov dword [ebp - 0x98], eax
cmp eax, 3
je 0x4fb764
cmp eax, 1
jne 0x4fb883
cmp dword [ebx + 0x540], 2
jne 0x4fb883
jmp 0x4fb8c4
mov dword [ebp - 0x98], 0
test eax, eax
jne 0x4fb8a3
lea eax, [ebp - 0x9c]
push eax
push esi
call fcn.004fbab0
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x4fb8df
test ecx, ecx
je 0x4fb90f
mov eax, dword [ebp - 0xa8]
push str.connected_n
push ebx
mov dword [eax], 1
call fcn.004ee4d0
push esi
push edi
call fcn.004faf60
add esp, 0x10
mov eax, dword [ebp - 0xa4]
mov dword [eax], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4fb90f
push str.Timeout_n
push ebx
call fcn.004ee4d0
add esp, 8
push esi
push edi
call fcn.004fa8a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x9c]
push eax
push edi
mov dword [ebx + 0x858c], eax
call fcn.004fe270
push eax
push 0x562e74
push ebx
call fcn.004ee4d0
add esp, 0x14
push esi
push edi
call fcn.004fa8a0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0052388c
mov esp, ebp
pop ebp
ret