Function at 0x42f800
Capabilities:
Connect socket
Set socket configuration

Disassembly:
sub esp, 0xac
mov eax, dword [0x4c8630]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xb4]
push ebx
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [ebp]
mov dword [edx], 0xffffffff
push edi
mov dword [esp + 0x18], edx
push ebp
lea ebx, [esp + 0x14]
lea edx, [esp + 0x24]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], esi
mov dword [eax], 0
call fcn.0042fd40
add esp, 4
test eax, eax
jne 0x42fa74
movzx eax, word [esp + 0x30]
sub eax, 2
lea esi, [ebp + 0x9e]
jne 0x42f920
lea eax, [esp + 0x34]
push 0x2e
push eax
call fcn.004524c0
add esp, 8
test eax, eax
je 0x42f920
mov ecx, dword [esp + 0x32]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea eax, [ebp + 0x40]
mov dword [ebp + 0xcc], edx
mov edi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [esp + 0x14]
push eax
push str.__Trying__s..._n
mov ecx, edi
call fcn.00433c20
add esp, 8
mov eax, ebp
call fcn.0042f220
cmp dword [edi + 0x314], 0
mov ebx, dword [esp + 0x10]
je 0x42f8da
mov edx, ebx
call fcn.0042f6b0
mov esi, ebx
call fcn.0042f710
cmp dword [edi + 0x410], 0
je 0x42f8f7
mov esi, dword [esp + 0x14]
mov edi, ebx
call fcn.0042eb30
mov edi, esi
mov eax, dword [edi + 0x16c]
test eax, eax
je 0x42f978
mov ecx, dword [edi + 0x170]
push 0
push ebx
push ecx
call eax
add esp, 0xc
cmp eax, 2
jne 0x42f961
mov esi, 1
mov dword [esp + 0x1c], esi
jmp 0x42f97d
mov byte [esi], 0
mov dword [ebp + 0xcc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebp
call fcn.00452ce0
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push edi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
call fcn.00433ce0
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov eax, ebp
call fcn.0042fcf0
jmp 0x42fa74
test eax, eax
je 0x42f978
mov esi, ebx
mov eax, ebp
call fcn.0042fcf0
mov eax, 0x2a
jmp 0x42fa76
mov esi, 1
mov edx, dword [esp + 0x20]
push edx
push ebx
mov ecx, ebp
call fcn.0042edf0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x42f9b0
mov esi, ebx
mov eax, ebp
call fcn.0042fcf0
mov ecx, dword [esp + 0x10]
mov eax, ecx
dec eax
neg eax
sbb eax, eax
and eax, ecx
jmp 0x42fa76
lea eax, [esp + 0x10]
push eax
push 0x8004667e
push ebx
mov dword [esp + 0x1c], esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
call fcn.004344c0
cmp dword [ebp + 0x210], esi
mov dword [ebp + 0x208], eax
mov dword [ebp + 0x20c], edx
jle 0x42f9ed
mov eax, dword [ebp + 0x214]
push edi
call fcn.004324e0
add esp, 4
cmp dword [esp + 0x1c], 0
jne 0x42fa6e
cmp dword [ebp + 0x74], esi
jne 0x42fa6e
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x42fa66
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x42fa5e
cmp edi, 0x2732
jle 0x42fa2c
cmp edi, 0x2734
jle 0x42fa5e
push ebp
call fcn.00452ce0
mov esi, dword [esp + 0x18]
add esp, 4
push eax
lea eax, [ebp + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
mov eax, esi
call fcn.00433ce0
mov dword [esi + 0x8594], edi
add esp, 0xc
mov esi, ebx
mov eax, ebp
call fcn.0042fcf0
jmp 0x42fa74
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
jmp 0x42fa74
mov ecx, dword [esp + 0x18]
mov dword [ecx], ebx
jmp 0x42fa74
mov edx, dword [esp + 0x18]
mov dword [edx], ebx
xor eax, eax
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00488f53
add esp, 0xac
ret