Function at 0x4a0c80
Capabilities:
Connect socket

Disassembly:
sub esp, 0x1e0
mov eax, dword [esp + 0x1e8]
push esi
mov esi, dword [ebx]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x18]
mov dword [ebx + eax*4 + 0x428], 0xffffffff
mov eax, dword [esp + 0x1ec]
push edx
push eax
push ebx
mov dword [esp + 0x1c], 0
call fcn.004a0ab0
add esp, 0x10
mov dword [esp + 4], eax
test eax, eax
jne 0x4a0fc6
mov eax, dword [esp + 0x20]
push ebp
push edi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xb0]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004a03c0
add esp, 0x10
test eax, eax
jne 0x4a0d3c
call fcn.004dd59d
mov edi, eax
call fcn.004dd59d
push 0x100
lea edx, [esp + 0xf0]
mov ebp, eax
mov eax, dword [edi]
push edx
push eax
call fcn.0048eed0
mov ecx, dword [ebp]
push eax
push ecx
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.00499840
mov edx, dword [esp + 0x2c]
push edx
push ebx
call fcn.004a0a20
add esp, 0x24
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x1e0
ret
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xb0]
push ecx
push str.__Trying__s:_ld..._n
push esi
call fcn.00499770
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
add esp, 0x10
cmp eax, 2
je 0x4a0d69
cmp eax, 0x17
jne 0x4a0d74
mov ebp, 1
cmp dword [esp + 0x20], ebp
je 0x4a0d78
xor ebp, ebp
jmp 0x4a0d8a
cmp dword [esi + 0xc10], 0
je 0x4a0d8a
mov edx, edi
mov eax, ebx
call fcn.004a0830
push edi
call fcn.004a0890
add esp, 4
test ebp, ebp
je 0x4a0da5
cmp dword [esi + 0xc34], 0
je 0x4a0da5
call fcn.0049fbe0
cmp dword [esi + 0x628], 0
je 0x4a0de2
push 1
push esi
call fcn.00497410
mov edx, dword [esi + 0x62c]
mov eax, dword [esi + 0x628]
push 0
push edi
push edx
call eax
push 0
push esi
mov ebp, eax
call fcn.00497410
add esp, 0x1c
cmp ebp, 2
jne 0x4a0e38
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
cmp eax, 2
je 0x4a0df0
cmp eax, 0x17
jne 0x4a0e55
lea ecx, [esp + 0x2c]
push ecx
call fcn.004c9070
mov edx, dword [esp + 0x20]
push eax
push edx
push edi
push ebx
call fcn.0049fdc0
add esp, 0x14
mov dword [esp + 0xc], eax
test eax, eax
je 0x4a0e55
push edi
push ebx
call fcn.004a0a20
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 1
jne 0x4a0fc4
pop edi
pop ebp
mov eax, 7
pop esi
add esp, 0x1e0
ret
test ebp, ebp
je 0x4a0de2
push edi
push ebx
call fcn.004a0a20
add esp, 8
pop edi
pop ebp
mov eax, 0x2a
pop esi
add esp, 0x1e0
ret
push 1
push edi
call fcn.004c5d30
lea eax, [esp + 0xe4]
push eax
call fcn.004a4570
mov ecx, dword [eax]
mov dword [ebx + 0x5c8], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x5cc], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x5d0], ecx
mov edx, dword [eax + 0xc]
add esp, 0xc
cmp dword [ebx + 0x5d8], 1
mov dword [ebx + 0x5d4], edx
jle 0x4a0ec8
mov eax, dword [ebx + 0x5e4]
mov ecx, dword [ebx + 0x5e0]
push 3
push eax
push ecx
push esi
call fcn.00497110
mov edx, dword [ebx + 0x5ec]
mov eax, dword [ebx + 0x5e8]
push 4
push edx
push eax
push esi
call fcn.00497110
add esp, 0x20
cmp dword [esp + 0x14], 0
jne 0x4a0fb4
cmp dword [ebx + 0x2f8], 4
je 0x4a0fb4
cmp dword [ebx + 0x5a4], 0
jne 0x4a0f03
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4a0f91
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0xb
je 0x4a0f6d
cmp ebp, 0x2732
jle 0x4a0f20
cmp ebp, 0x2734
jle 0x4a0f6d
push 0x100
lea eax, [esp + 0xf0]
push eax
push ebp
call fcn.0048eed0
push eax
lea ecx, [esp + 0xbc]
push ecx
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.00499770
push edi
push ebx
mov dword [esi + 0xec4], ebp
call fcn.004a0a20
add esp, 0x24
pop edi
mov dword [esp + 8], 7
mov eax, dword [esp + 8]
pop ebp
pop esi
add esp, 0x1e0
ret
mov edx, dword [esp + 0x1f4]
mov dword [ebx + edx*4 + 0x428], edi
pop edi
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
pop ebp
pop esi
add esp, 0x1e0
ret
cmp dword [esp + 0xc], 0
jne 0x4a0fa6
mov edx, dword [esp + 0x1f4]
mov dword [ebx + edx*4 + 0x428], edi
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop esi
add esp, 0x1e0
ret
mov eax, dword [esp + 0x1f4]
mov dword [ebx + eax*4 + 0x428], edi
xor eax, eax
pop edi
pop ebp
pop esi
add esp, 0x1e0
ret