Function at 0x42f3b0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x1e8
mov eax, dword [0x7d3574]
xor eax, esp
mov dword [esp + 0x1e4], eax
mov eax, dword [esp + 0x1ec]
push esi
mov dword [esp + 0x10], ecx
mov dword [ebx + ecx*4 + 0x138], 0xffffffff
mov esi, edx
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
call fcn.0042f1c0
add esp, 0x10
mov dword [esp + 4], eax
test eax, eax
jne 0x42f74a
mov edx, dword [esp + 0x34]
push ebp
push edi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xc4]
push ecx
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.0042ea30
add esp, 0x10
test eax, eax
jne 0x42f471
call fcn.004d5483
mov edi, eax
call fcn.004d5483
mov edx, dword [edi]
push 0x100
lea ecx, [esp + 0xf4]
push ecx
push edx
mov ebp, eax
call fcn.00419b30
push eax
mov eax, dword [ebp]
push eax
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.0042cb90
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
push esi
call fcn.0042f140
add esp, 0x28
jmp 0x42f746
cmp dword [esp + 0x30], 0x17
mov eax, str.__Trying___s_:_d...
je 0x42f482
mov eax, str.__Trying__s:_d...
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0xc4]
push ecx
push eax
push esi
call fcn.0042cb10
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x20]
add esp, 0x10
cmp eax, 2
je 0x42f4ab
cmp eax, 0x17
jne 0x42f4b6
mov edi, 1
cmp dword [esp + 0x34], edi
je 0x42f4ba
xor edi, edi
jmp 0x42f4ca
cmp dword [esi + 0x7b4], 0
je 0x42f4ca
mov ecx, ebp
call fcn.0042ef20
push ebp
call fcn.0042ef90
add esp, 4
test edi, edi
je 0x42f4e7
cmp dword [esi + 0x7cc], 0
je 0x42f4e7
mov edi, ebp
call fcn.0042e170
cmp dword [esi + 0x1d0], 0
je 0x42f524
push 1
push esi
call fcn.00429f40
mov edx, dword [esi + 0x1d4]
mov eax, dword [esi + 0x1d0]
push 0
push ebp
push edx
call eax
push 0
push esi
mov edi, eax
call fcn.00429f40
add esp, 0x1c
cmp edi, 2
jne 0x42f58e
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x30]
cmp eax, 2
je 0x42f536
cmp eax, 0x17
jne 0x42f5ba
lea ecx, [esp + 0x40]
push ecx
call fcn.0045e7b0
mov edx, dword [esp + 0x34]
push eax
push edx
push ebp
mov edi, esi
call fcn.0042e410
add esp, 0x10
mov dword [esp + 0xc], eax
test eax, eax
je 0x42f5ba
push ebp
push ebx
push esi
call fcn.0042f140
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, 1
jne 0x42f748
pop edi
pop ebp
mov eax, 7
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.004d482d
add esp, 0x1e8
ret
test edi, edi
je 0x42f524
push ebp
push ebx
push esi
call fcn.0042f140
add esp, 0xc
pop edi
pop ebp
mov eax, 0x2a
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.004d482d
add esp, 0x1e8
ret
push 1
push ebp
call fcn.0045ec30
lea eax, [esp + 0x28]
push eax
call fcn.0044c690
mov ecx, dword [eax]
mov dword [ebx + 0x2e8], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x2ec], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x2f0], ecx
mov edx, dword [eax + 0xc]
add esp, 0xc
cmp dword [ebx + 0x45c], 1
mov dword [ebx + 0x2f4], edx
jle 0x42f62a
mov eax, dword [ebx + 0x2fc]
mov ecx, dword [ebx + 0x2f8]
push 3
push eax
push ecx
push esi
call fcn.00429c00
mov edx, dword [ebx + 0x304]
mov eax, dword [ebx + 0x300]
push 4
push edx
push eax
push esi
call fcn.00429c00
add esp, 0x20
cmp dword [esp + 0x14], 0
jne 0x42f73b
cmp byte [ebx + 0x475], 4
je 0x42f73b
cmp dword [ebx + 0x2c8], 0
jne 0x42f665
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x44]
push edx
push ebp
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x42f70d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x42f6de
cmp edi, 0x2732
jle 0x42f682
cmp edi, 0x2734
jle 0x42f6de
push 0x100
lea eax, [esp + 0xf4]
push eax
push edi
call fcn.00419b30
push eax
lea ecx, [esp + 0xd0]
push ecx
push str.Immediate_connect_fail_for__s:__s
push esi
call fcn.0042cb10
push ebp
push ebx
push esi
mov dword [esi + 0xa48], edi
call fcn.0042f140
add esp, 0x28
pop edi
mov dword [esp + 8], 7
mov eax, dword [esp + 8]
pop ebp
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.004d482d
add esp, 0x1e8
ret
mov edx, dword [esp + 0x18]
pop edi
mov dword [ebx + edx*4 + 0x138], ebp
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
pop ebp
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.004d482d
add esp, 0x1e8
ret
cmp dword [esp + 0xc], 0
jne 0x42f71f
mov edx, dword [esp + 0x18]
mov dword [ebx + edx*4 + 0x138], ebp
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.004d482d
add esp, 0x1e8
ret
mov eax, dword [esp + 0x18]
mov dword [ebx + eax*4 + 0x138], ebp
xor eax, eax
pop edi
pop ebp
mov ecx, dword [esp + 0x1e8]
pop esi
xor ecx, esp
call fcn.004d482d
add esp, 0x1e8
ret