Function at 0x42a510
Capabilities:
Connect socket

Disassembly:
sub esp, 0x16c
mov eax, dword [0x6f33d4]
xor eax, esp
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x174]
push ebp
mov ebp, dword [esp + 0x174]
mov edx, dword [ebp]
mov dword [esp + 8], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], edx
lea edx, [esp + 0x30]
push edx
push eax
push ebp
mov dword [esp + 0x1c], 0
call fcn.0042a340
add esp, 0x10
mov dword [esp + 4], eax
test eax, eax
je 0x42a580
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.004bec6d
add esp, 0x16c
ret
push ebx
push esi
push edi
lea ebx, [esp + 0x24]
lea edi, [esp + 0xc8]
lea esi, [esp + 0x48]
call fcn.00429e20
test eax, eax
jne 0x42a5e4
call fcn.004bf527
mov esi, eax
call fcn.004bf527
mov ecx, dword [esi]
mov edi, eax
push 0x80
lea eax, [esp + 0xfc]
push eax
push ecx
call fcn.00417630
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x30]
push edx
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00423270
mov ecx, dword [esp + 0x38]
push ecx
push ebp
call fcn.0042a2c0
add esp, 0x24
jmp 0x42a81a
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push edx
lea eax, [esp + 0xcc]
push eax
push str.__Trying__s:_ld..._n
push esi
call fcn.00423120
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x2c]
add esp, 0x10
cmp eax, 2
je 0x42a615
cmp eax, 0x17
jne 0x42a620
mov ebx, 1
cmp dword [esp + 0x3c], ebx
je 0x42a624
xor ebx, ebx
jmp 0x42a638
test byte [esi + 0xaa0], 8
je 0x42a638
push ebp
mov ecx, edi
call fcn.0042a080
add esp, 4
push edi
call fcn.0042a120
add esp, 4
test ebx, ebx
je 0x42a656
test dword [esi + 0xaa0], 0x800
je 0x42a656
call fcn.00429620
cmp dword [esi + 0x618], 0
je 0x42a693
push 1
push esi
call fcn.00426710
mov ecx, dword [esi + 0x61c]
mov edx, dword [esi + 0x618]
push 0
push edi
push ecx
call edx
push 0
push esi
mov ebx, eax
call fcn.00426710
add esp, 0x1c
cmp ebx, 2
jne 0x42a6dc
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x38]
cmp eax, 2
je 0x42a6a1
cmp eax, 0x17
jne 0x42a6f4
lea eax, [esp + 0x48]
push eax
call fcn.004540b0
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push edi
push ebp
call fcn.00429850
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x42a6f8
push edi
push ebp
call fcn.0042a2c0
add esp, 8
cmp ebx, 1
jne 0x42a810
lea eax, [ebx + 6]
jmp 0x42a81c
test ebx, ebx
je 0x42a693
push edi
push ebp
call fcn.0042a2c0
add esp, 8
mov eax, 0x2a
jmp 0x42a81c
mov ebx, dword [esp + 0x10]
push 1
push edi
call fcn.00454530
lea edx, [esp + 0x30]
push edx
call fcn.00444630
mov ecx, dword [eax]
mov dword [ebp + 0x2a8], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x2ac], edx
mov ecx, dword [eax + 8]
mov dword [ebp + 0x2b0], ecx
mov edx, dword [eax + 0xc]
add esp, 0xc
cmp dword [ebp + 0x2b8], 1
mov dword [ebp + 0x2b4], edx
jle 0x42a752
mov eax, dword [ebp + 0x2c4]
mov ecx, dword [ebp + 0x2c0]
push 3
push eax
push ecx
push esi
call fcn.004263c0
add esp, 0x10
cmp dword [esp + 0x18], 0
jne 0x42a814
cmp dword [ebp + 0x90], 1
jne 0x42a814
test dword [ebp + 0x2a4], 0x8000000
jne 0x42a78c
mov edx, dword [esp + 0x44]
push edx
lea eax, [esp + 0x4c]
push eax
push edi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x42a806
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0xb
je 0x42a7f0
cmp ebx, 0x2732
jle 0x42a7a9
cmp ebx, 0x2734
jle 0x42a7f0
push 0x80
lea ecx, [esp + 0xfc]
push ecx
push ebx
call fcn.00417630
push eax
lea edx, [esp + 0xd8]
push edx
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.00423120
push edi
push ebp
mov dword [esi + 0xcbc], ebx
call fcn.0042a2c0
mov dword [esp + 0x34], 7
mov ebx, dword [esp + 0x34]
add esp, 0x24
mov eax, ebx
jmp 0x42a81c
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x10]
mov dword [eax], edi
mov eax, ebx
jmp 0x42a81c
test ebx, ebx
jne 0x42a810
mov eax, dword [esp + 0x14]
mov dword [eax], edi
mov eax, ebx
jmp 0x42a81c
mov ecx, dword [esp + 0x14]
mov dword [ecx], edi
xor eax, eax
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.004bec6d
add esp, 0x16c
ret