Function at 0x42c36b
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x48e1e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xac], eax
xor esi, esi
mov edi, dword [ebx]
or dword [eax], 0xffffffff
mov eax, dword [ecx + 4]
mov dword [ebp - 0x94], eax
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0x90], eax
cmp eax, 2
jne 0x42c3db
mov dword [ebp - 0x8c], 0x11
jmp 0x42c3e4
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x8c], eax
mov eax, dword [ecx + 0x10]
mov edx, 0x80
cmp eax, edx
cmova eax, edx
push eax
push dword [ecx + 0x18]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
call fcn.0044ba40
mov eax, dword [ebp - 0xa8]
add esp, 0xc
mov dword [eax], esi
mov eax, dword [edi + 0x174]
test eax, eax
je 0x42c431
lea ecx, [ebp - 0x94]
push ecx
push esi
push dword [edi + 0x178]
call eax
add esp, 0xc
jmp 0x42c449
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
push dword [ebp - 0x94]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0xa0], eax
cmp eax, 0xffffffff
jne 0x42c45b
xor eax, eax
jmp 0x42c6ea
lea eax, [ebx + 0xcc]
push eax
lea esi, [ebx + 0x9e]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.0042c31b
add esp, 0xc
test eax, eax
jne 0x42c4a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.0042e92b
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.0042b67c
mov esi, dword [ebp - 0xa0]
add esp, 0x18
jmp 0x42c6db
push 0xb
lea eax, [ebx + 0x40]
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push eax
push str.__Trying__s...
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0xb0]
push edi
call fcn.0042b712
push ebx
call fcn.0042bd4c
mov esi, dword [ebp - 0xa0]
add esp, 0x10
cmp dword [edi + 0x314], 0
je 0x42c4e5
push esi
push ebx
call fcn.0042c6fb
pop ecx
pop ecx
push esi
call fcn.0042bd9e
mov eax, dword [edi + 0x16c]
pop ecx
test eax, eax
je 0x42c51d
push 0
push esi
push dword [edi + 0x170]
call eax
add esp, 0xc
mov dword [ebp - 0x9c], eax
cmp eax, 2
jne 0x42c5f7
mov dword [ebp - 0xa4], 1
push dword [ebp - 0x94]
push esi
push ebx
call fcn.0042bfd7
add esp, 0xc
test eax, eax
jne 0x42c6d5
push 1
push esi
call fcn.00440751
cmp dword [ebp - 0xa4], 0
pop ecx
pop ecx
jne 0x42c60e
cmp dword [ebx + 0x74], 1
jne 0x42c60e
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, eax
mov dword [ebp - 0x98], ecx
cmp ecx, 0xffffffff
jne 0x42c583
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x9c], eax
call fcn.0042e4cd
cmp dword [ebx + 0x208], 1
mov dword [ebx + 0x200], eax
mov dword [ebx + 0x204], edx
jle 0x42c5ab
push dword [ebx + 0x20c]
push edi
call fcn.0042f113
pop ecx
pop ecx
mov eax, dword [ebp - 0x98]
cmp eax, 0xffffffff
jne 0x42c630
mov eax, dword [ebp - 0x9c]
cmp eax, 0xb
je 0x42c618
cmp eax, 0x2732
jle 0x42c5cf
cmp eax, 0x2734
jle 0x42c618
push eax
push ebx
call fcn.0042e92b
push eax
lea eax, [ebx + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push edi
call fcn.0042b67c
mov eax, dword [ebp - 0x9c]
add esp, 0x18
mov dword [edi + 0x856c], eax
jmp 0x42c651
test eax, eax
je 0x42c51d
mov dword [ebp - 0x98], 0x2a
jmp 0x42c6db
xor eax, eax
mov dword [ebp - 0x98], eax
jmp 0x42c5b1
push dword [ebp + 0x10]
push esi
push ebx
call fcn.0042c7b6
add esp, 0xc
mov dword [ebp - 0x98], eax
cmp eax, 3
je 0x42c5ff
cmp eax, 1
jne 0x42c64b
cmp dword [edi + 0x520], 2
jne 0x42c64b
mov eax, dword [ebp - 0xac]
mov dword [eax], esi
jmp 0x42c454
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa4]
test edx, edx
jne 0x42c672
lea eax, [ebp - 0x9c]
push eax
push esi
call fcn.0042c754
pop ecx
mov edx, eax
mov eax, dword [ebp - 0x9c]
pop ecx
mov ecx, dword [ebp - 0x98]
test ecx, ecx
jne 0x42c6a3
test edx, edx
je 0x42c6b7
mov eax, dword [ebp - 0xa8]
push str.connected_n
push edi
mov dword [eax], 1
call fcn.0042b712
push esi
push ebx
call fcn.0042be9f
add esp, 0x10
jmp 0x42c63e
cmp ecx, 1
jne 0x42c6b7
push str.Timeout_n
push edi
call fcn.0042b712
pop ecx
pop ecx
jmp 0x42c6d3
push eax
push ebx
mov dword [edi + 0x856c], eax
call fcn.0042e92b
push eax
push 0x4769dc
push edi
call fcn.0042b712
add esp, 0x14
xor eax, eax
mov dword [ebp - 0x98], eax
push esi
push ebx
call fcn.0042bb9b
mov eax, dword [ebp - 0x98]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a31d
mov esp, ebp
pop ebp
ret