Function at 0x4a2370
Capabilities:
Connect socket

Disassembly:
sub esp, 0xa8
mov eax, dword [0x5857cc]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb0]
push esi
push edi
mov edi, dword [ebp]
xor esi, esi
mov dword [edx], 0xffffffff
mov dword [ecx], esi
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x18], edx
lea edx, [esp + 0x24]
push edx
push eax
push ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], edi
call fcn.004a2280
add esp, 0x10
test eax, eax
je 0x4a23e4
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.00521458
add esp, 0xa8
ret
push ebx
lea edi, [ebp + 0x9e]
lea ebx, [ebp + 0xcc]
lea esi, [esp + 0x34]
call fcn.004a1e60
test eax, eax
jne 0x4a2462
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00495800
push eax
mov eax, dword [esp + 0x2c]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0049f8e0
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x28]
add esp, 0x18
test eax, eax
je 0x4a2447
cmp ecx, dword [ebp + 0x134]
jne 0x4a2453
cmp dword [ebp + 0x13c], 0
je 0x4a2453
mov dword [ebp + 0x13c], 0
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4a2607
push ecx
mov ecx, dword [ebp + 0x2c]
push ecx
call eax
add esp, 8
jmp 0x4a2607
mov ebx, dword [esp + 0x20]
lea eax, [ebp + 0x40]
mov esi, edi
mov edi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
push eax
push str.__Trying__s..._n
push ebx
movsw word es:[edi], word [esi]
call fcn.0049f850
push ebp
call fcn.004a1e00
mov esi, dword [esp + 0x20]
add esp, 0x10
cmp dword [ebx + 0x314], 0
je 0x4a24a1
mov edx, esi
mov edi, ebp
call fcn.004a2090
push esi
call fcn.004a20f0
add esp, 4
cmp dword [ebx + 0x410], 0
je 0x4a24ba
mov edi, ebx
call fcn.004a1890
mov eax, dword [ebx + 0x16c]
test eax, eax
je 0x4a24fc
mov edx, dword [ebx + 0x170]
push 0
push esi
push edx
call eax
mov edi, eax
add esp, 0xc
cmp edi, 2
jne 0x4a24e4
mov dword [esp + 0x14], 1
jmp 0x4a2500
test edi, edi
je 0x4a2500
push esi
push ebp
call fcn.004a2230
add esp, 8
mov eax, 0x2a
jmp 0x4a2609
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push eax
push esi
push ebp
call fcn.004a1980
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x4a252a
push esi
push ebp
call fcn.004a2230
mov eax, dword [esp + 0x18]
add esp, 8
jmp 0x4a2609
push 1
push esi
call fcn.004c0180
add esp, 8
call fcn.004a44c0
cmp dword [ebp + 0x28c], 1
mov dword [ebp + 0x284], eax
mov dword [ebp + 0x288], edx
jle 0x4a255f
mov ecx, dword [ebp + 0x290]
push ecx
push ebx
call fcn.0049dbd0
add esp, 8
cmp dword [esp + 0x14], 0
jne 0x4a2601
cmp dword [ebp + 0x74], 1
jne 0x4a2601
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x4a259e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x1c], eax
mov edi, eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp dword [esp + 0x24], 0x17
sete cl
mov dword [ebp + 0x23c], ecx
cmp eax, 0xffffffff
jne 0x4a25f9
cmp edi, 0xb
je 0x4a25f1
cmp edi, 0x2732
jle 0x4a25c8
cmp edi, 0x2734
jle 0x4a25f1
push edi
push ebp
call fcn.00495800
push eax
lea eax, [ebp + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push ebx
call fcn.0049f8e0
push esi
push ebp
mov dword [ebx + 0x859c], edi
call fcn.004a2230
add esp, 0x20
jmp 0x4a2607
mov edx, dword [esp + 0x18]
mov dword [edx], esi
jmp 0x4a2607
mov eax, dword [esp + 0x18]
mov dword [eax], esi
jmp 0x4a2607
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
xor eax, eax
mov ecx, dword [esp + 0xb4]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00521458
add esp, 0xa8
ret