Function at 0x42e7d0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x1e8
mov eax, dword [0x7c9564]
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 + 0x150], 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.0042e600
add esp, 0x10
mov dword [esp + 4], eax
test eax, eax
jne 0x42eb5a
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.0042dee0
add esp, 0x10
test eax, eax
jne 0x42e891
call fcn.004d1ba9
mov edi, eax
call fcn.004d1ba9
mov edx, dword [edi]
push pe_nt_image_headers32
lea ecx, [esp + 0xf4]
push ecx
push edx
mov ebp, eax
call fcn.004197e0
push eax
mov eax, dword [ebp]
push eax
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.0042c1c0
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
push esi
call fcn.0042e580
add esp, 0x28
jmp 0x42eb56
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0xc4]
push eax
push str.__Trying__s:_d...
push esi
call fcn.0042c140
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x20]
add esp, 0x10
cmp eax, 2
je 0x42e8be
cmp eax, 0x17
jne 0x42e8c9
mov edi, 1
cmp dword [esp + 0x34], edi
je 0x42e8cd
xor edi, edi
jmp 0x42e8dd
cmp dword [esi + 0x7e0], 0
je 0x42e8dd
mov ecx, ebp
call fcn.0042e380
push ebp
call fcn.0042e3f0
add esp, 4
test edi, edi
je 0x42e8fa
cmp dword [esi + 0x800], 0
je 0x42e8fa
mov edi, ebp
call fcn.0042d640
cmp dword [esi + 0x1d0], 0
je 0x42e937
push 1
push esi
call fcn.004296d0
mov ecx, dword [esi + 0x1d4]
mov edx, dword [esi + 0x1d0]
push 0
push ebp
push ecx
call edx
push 0
push esi
mov edi, eax
call fcn.004296d0
add esp, 0x1c
cmp edi, 2
jne 0x42e9a1
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x30]
cmp eax, 2
je 0x42e949
cmp eax, 0x17
jne 0x42e9cd
lea eax, [esp + 0x40]
push eax
call fcn.0045bff0
mov ecx, dword [esp + 0x34]
push eax
push ecx
push ebp
mov edi, esi
call fcn.0042d8e0
add esp, 0x10
mov dword [esp + 0xc], eax
test eax, eax
je 0x42e9cd
push ebp
push ebx
push esi
call fcn.0042e580
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, 1
jne 0x42eb58
pop edi
pop ebp
mov eax, 7
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.004d0e4d
add esp, 0x1e8
ret
test edi, edi
je 0x42e937
push ebp
push ebx
push esi
call fcn.0042e580
add esp, 0xc
pop edi
pop ebp
mov eax, 0x2a
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.004d0e4d
add esp, 0x1e8
ret
push 1
push ebp
call fcn.0045c470
lea edx, [esp + 0x28]
push edx
call fcn.0044a8a0
mov ecx, dword [eax]
mov dword [ebx + 0x310], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x314], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x318], ecx
mov edx, dword [eax + 0xc]
add esp, 0xc
cmp dword [ebx + 0x308], 1
mov dword [ebx + 0x31c], edx
jle 0x42ea3d
mov eax, dword [ebx + 0x324]
mov ecx, dword [ebx + 0x320]
push 3
push eax
push ecx
push esi
call fcn.00429380
mov edx, dword [ebx + 0x32c]
mov eax, dword [ebx + 0x328]
push 4
push edx
push eax
push esi
call fcn.00429380
add esp, 0x20
cmp dword [esp + 0x14], 0
jne 0x42eb4b
cmp dword [ebx + 0x58], 4
je 0x42eb4b
cmp dword [ebx + 0x2e4], 0
jne 0x42ea75
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 0x42eb1d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x42eaee
cmp edi, 0x2732
jle 0x42ea92
cmp edi, 0x2734
jle 0x42eaee
push pe_nt_image_headers32
lea eax, [esp + 0xf4]
push eax
push edi
call fcn.004197e0
push eax
lea ecx, [esp + 0xd0]
push ecx
push str.Immediate_connect_fail_for__s:__s
push esi
call fcn.0042c140
push ebp
push ebx
push esi
mov dword [esi + 0xa84], edi
call fcn.0042e580
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.004d0e4d
add esp, 0x1e8
ret
mov edx, dword [esp + 0x18]
pop edi
mov dword [ebx + edx*4 + 0x150], 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.004d0e4d
add esp, 0x1e8
ret
cmp dword [esp + 0xc], 0
jne 0x42eb2f
mov edx, dword [esp + 0x18]
mov dword [ebx + edx*4 + 0x150], ebp
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.004d0e4d
add esp, 0x1e8
ret
mov eax, dword [esp + 0x18]
mov dword [ebx + eax*4 + 0x150], ebp
xor eax, eax
pop edi
pop ebp
mov ecx, dword [esp + 0x1e8]
pop esi
xor ecx, esp
call fcn.004d0e4d
add esp, 0x1e8
ret