Function at 0x4c5c20
Capabilities:
Connect socket

Disassembly:
sub esp, 0x1e4
mov eax, dword [0x630160]
xor eax, esp
mov dword [esp + 0x1e0], eax
mov eax, dword [esp + 0x1e8]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1f0]
lea edx, [esp + 8]
push edx
mov dword [ebx + ecx*4 + 0x150], 0xffffffff
lea ecx, [esp + 0x28]
push ecx
push eax
push esi
mov dword [esp + 0x1c], 0
call fcn.004c5a50
add esp, 0x10
mov dword [esp + 4], eax
test eax, eax
jne 0x4c5fb6
mov ecx, dword [esp + 0x30]
push ebp
push edi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xc0]
push eax
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004c5390
add esp, 0x10
test eax, eax
jne 0x4c5ce4
call fcn.0041d477
mov edi, eax
call fcn.0041d477
mov ecx, dword [edi]
mov ebp, eax
push 0x100
lea eax, [esp + 0xf0]
push eax
push ecx
call fcn.004aa910
mov edx, dword [ebp]
push eax
push edx
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.004c8260
mov eax, dword [esp + 0x2c]
push eax
push ebx
push esi
call fcn.004c59d0
add esp, 0x28
jmp 0x4c5fb2
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0xc0]
push edx
push str.__Trying__s:_d...
push esi
call fcn.004c81e0
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x20]
add esp, 0x10
cmp eax, 2
je 0x4c5d11
cmp eax, 0x17
jne 0x4c5d1c
mov edi, 1
cmp dword [esp + 0x30], edi
je 0x4c5d20
xor edi, edi
jmp 0x4c5d30
cmp dword [esi + 0x7f4], 0
je 0x4c5d30
mov ecx, ebp
call fcn.004c5870
push ebp
call fcn.004c58e0
add esp, 4
test edi, edi
je 0x4c5d4d
cmp dword [esi + 0x814], 0
je 0x4c5d4d
mov edi, ebp
call fcn.004c4b30
cmp dword [esi + 0x1d8], 0
je 0x4c5d8a
push 1
push esi
call fcn.004af930
mov eax, dword [esi + 0x1dc]
mov ecx, dword [esi + 0x1d8]
push 0
push ebp
push eax
call ecx
push 0
push esi
mov edi, eax
call fcn.004af930
add esp, 0x1c
cmp edi, 2
jne 0x4c5df4
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x2c]
cmp eax, 2
je 0x4c5d9c
cmp eax, 0x17
jne 0x4c5e20
lea edx, [esp + 0x3c]
push edx
call fcn.004eafe0
push eax
mov eax, dword [esp + 0x34]
push eax
push ebp
mov edi, esi
call fcn.004c4d90
add esp, 0x10
mov dword [esp + 0xc], eax
test eax, eax
je 0x4c5e20
push ebp
push ebx
push esi
call fcn.004c59d0
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, 1
jne 0x4c5fb4
pop edi
pop ebp
mov eax, 7
pop esi
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.00418878
add esp, 0x1e4
ret
test edi, edi
je 0x4c5d8a
push ebp
push ebx
push esi
call fcn.004c59d0
add esp, 0xc
pop edi
pop ebp
mov eax, 0x2a
pop esi
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.00418878
add esp, 0x1e4
ret
push 1
push ebp
call fcn.004eb240
lea ecx, [esp + 0x24]
push ecx
call fcn.004c7d40
mov edx, dword [eax]
mov dword [ebx + 0x310], edx
mov ecx, dword [eax + 4]
mov dword [ebx + 0x314], ecx
mov edx, dword [eax + 8]
mov dword [ebx + 0x318], edx
mov eax, dword [eax + 0xc]
add esp, 0xc
cmp dword [ebx + 0x308], 1
mov dword [ebx + 0x31c], eax
jle 0x4c5e90
mov ecx, dword [ebx + 0x324]
mov edx, dword [ebx + 0x320]
push 3
push ecx
push edx
push esi
call fcn.004af680
mov eax, dword [ebx + 0x32c]
mov ecx, dword [ebx + 0x328]
push 4
push eax
push ecx
push esi
call fcn.004af680
add esp, 0x20
cmp dword [esp + 0x14], 0
jne 0x4c5fa4
cmp dword [ebx + 0x58], 4
je 0x4c5fa4
cmp dword [ebx + 0x2e4], 0
jne 0x4c5ec8
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x40]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4c5f73
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x4c5f41
cmp edi, 0x2732
jle 0x4c5ee5
cmp edi, 0x2734
jle 0x4c5f41
push 0x100
lea ecx, [esp + 0xf0]
push ecx
push edi
call fcn.004aa910
push eax
lea edx, [esp + 0xcc]
push edx
push str.Immediate_connect_fail_for__s:__s
push esi
call fcn.004c81e0
push ebp
push ebx
push esi
mov dword [esi + 0xa94], edi
call fcn.004c59d0
add esp, 0x28
pop edi
mov dword [esp + 8], 7
mov eax, dword [esp + 8]
pop ebp
pop esi
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.00418878
add esp, 0x1e4
ret
mov eax, dword [esp + 0x1f8]
pop edi
mov dword [ebx + eax*4 + 0x150], ebp
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
pop ebp
pop esi
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.00418878
add esp, 0x1e4
ret
cmp dword [esp + 0xc], 0
jne 0x4c5f88
mov eax, dword [esp + 0x1f8]
mov dword [ebx + eax*4 + 0x150], ebp
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop esi
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.00418878
add esp, 0x1e4
ret
mov ecx, dword [esp + 0x1f8]
mov dword [ebx + ecx*4 + 0x150], ebp
xor eax, eax
pop edi
pop ebp
mov ecx, dword [esp + 0x1e4]
pop esi
xor ecx, esp
call fcn.00418878
add esp, 0x1e4
ret