Function at 0x42e050
Capabilities:
Connect socket

Disassembly:
sub esp, 0xe4
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xe8]
push ebp
push esi
mov esi, dword [ebx]
mov dword [esp + 0x10], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
push ebx
mov dword [esp + 0x1c], 0
call fcn.0042de90
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x42e0b4
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00418a8f
add esp, 0xe4
ret
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0042da70
add esp, 0xc
test eax, eax
jne 0x42e10d
mov edi, dword [sym.imp.MSVCR100.dll__errno]
call edi
mov ebp, eax
call edi
mov edi, eax
mov eax, dword [ebp]
push eax
push ebx
call fcn.00454480
mov ecx, dword [edi]
push eax
push ecx
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.00428bd0
mov edx, dword [esp + 0x24]
push edx
push ebx
call fcn.0042de10
add esp, 0x20
jmp 0x42e3a0
lea eax, [esp + 0xbc]
push eax
push str.__Trying__s..._n
push esi
call fcn.00428a80
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x18]
add esp, 0xc
cmp eax, 2
je 0x42e139
cmp eax, 0x17
jne 0x42e220
mov eax, 1
cmp dword [esp + 0x30], eax
jne 0x42e220
cmp dword [esi + 0xa0c], 0
mov dword [esp + 0xc], eax
je 0x42e15f
push edi
push ebx
call fcn.0042dcc0
add esp, 8
push edi
call fcn.0042dd20
add esp, 4
cmp dword [esp + 0xc], 0
je 0x42e17d
cmp dword [esi + 0xb64], 0
je 0x42e17d
call fcn.0042d280
cmp dword [esi + 0x640], 0
je 0x42e1c0
push 1
push esi
call fcn.00426520
mov ecx, dword [esi + 0x644]
mov edx, dword [esi + 0x640]
push 0
push edi
push ecx
call edx
push 0
push esi
mov dword [esp + 0x28], eax
call fcn.00426520
mov eax, dword [esp + 0x28]
add esp, 0x1c
cmp eax, 2
jne 0x42e22d
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x2c]
cmp eax, 2
je 0x42e1d2
cmp eax, 0x17
jne 0x42e258
lea eax, [esp + 0x3c]
push eax
call fcn.00456210
mov ecx, dword [esp + 0x30]
push eax
push ecx
push edi
push ebx
call fcn.0042d4b0
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x42e258
push edi
push ebx
call fcn.0042de10
add esp, 8
cmp ebp, 1
jne 0x42e380
pop edi
pop esi
lea eax, [ebp + 6]
pop ebp
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00418a8f
add esp, 0xe4
ret
mov dword [esp + 0xc], 0
jmp 0x42e15f
test eax, eax
je 0x42e1c0
push edi
push ebx
call fcn.0042de10
add esp, 8
pop edi
pop esi
mov eax, 0x2a
pop ebp
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00418a8f
add esp, 0xe4
ret
push 1
push edi
call fcn.004562a0
lea edx, [esp + 0x24]
push edx
call fcn.00430860
mov ecx, dword [eax]
mov dword [ebx + 0x330], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x334], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x338], ecx
mov edx, dword [eax + 0xc]
add esp, 0xc
cmp dword [ebx + 0x340], 1
mov dword [ebx + 0x33c], edx
jle 0x42e2b2
mov eax, dword [ebx + 0x34c]
mov ecx, dword [ebx + 0x348]
push 3
push eax
push ecx
push esi
call fcn.004261a0
add esp, 0x10
cmp dword [esp + 0x10], 0
jne 0x42e39a
cmp dword [ebx + 0x90], 1
jne 0x42e39a
cmp dword [ebx + 0x314], 0
jne 0x42e2ed
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x40]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x42e376
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0xb
je 0x42e354
cmp ebp, 0x2732
jle 0x42e30a
cmp ebp, 0x2734
jle 0x42e354
push ebp
push ebx
call fcn.00454480
push eax
lea ecx, [esp + 0xc8]
push ecx
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.00428a80
push edi
push ebx
mov dword [esi + 0xe18], ebp
call fcn.0042de10
add esp, 0x20
pop edi
mov ebp, 7
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00418a8f
add esp, 0xe4
ret
mov edx, dword [esp + 0x14]
mov dword [edx], edi
pop edi
xor ebp, ebp
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00418a8f
add esp, 0xe4
ret
test ebp, ebp
jne 0x42e380
mov edx, dword [esp + 0x14]
mov dword [edx], edi
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00418a8f
add esp, 0xe4
ret
mov eax, dword [esp + 0x14]
mov dword [eax], edi
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00418a8f
add esp, 0xe4
ret