Function at 0x4143fa
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e4
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov byte [ebp - 2], al
mov eax, dword [ebp + 0x14]
or dword [esi + eax*4 + 0x150], 0xffffffff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp + 0x10]
push ebx
call fcn.00413be2
add esp, 0x10
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4146da
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0x98]
lea eax, [ebp - 0x94]
push eax
call fcn.004131ed
add esp, 0x10
test al, al
jne 0x4144a1
call fcn.0044102b
mov esi, dword [eax]
call fcn.0044102b
mov edi, eax
lea eax, [ebp - 0x1e4]
push 0x100
push eax
push esi
call fcn.0042c76d
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00412b10
mov esi, dword [ebp + 0xc]
add esp, 0x1c
mov edi, dword [ebp - 8]
jmp 0x4145b0
push dword [ebp - 0xc]
lea eax, [ebp - 0xd4]
push eax
push str.__Trying__s:_d..._n
push ebx
call fcn.00412ba4
add esp, 0x10
cmp dword [ebp - 0xa4], 2
je 0x4144cb
cmp dword [ebp - 0xa4], 0x17
jne 0x4144ef
cmp dword [ebp - 0xa0], 1
jne 0x4144ef
cmp byte [ebx + 0x6f7], 0
mov edi, dword [ebp - 8]
mov byte [ebp - 1], 1
je 0x4144f6
push edi
push ebx
call fcn.00414797
pop ecx
pop ecx
jmp 0x4144f6
mov edi, dword [ebp - 8]
mov byte [ebp - 1], 0
push edi
call fcn.00413b58
cmp byte [ebp - 1], 0
pop ecx
je 0x414515
cmp byte [ebx + 0x700], 0
je 0x414515
push edi
push ebx
call fcn.004146de
pop ecx
pop ecx
cmp dword [ebx + 0x1b8], 0
je 0x41454f
push 1
push ebx
call fcn.0040652c
push 0
push edi
push dword [ebx + 0x1bc]
call dword [ebx + 0x1b8]
push 0
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040652c
mov eax, dword [ebp - 0xc]
add esp, 0x1c
cmp eax, 2
jne 0x4145a5
mov byte [ebp - 2], 1
cmp dword [ebp - 0xa4], 2
je 0x414561
cmp dword [ebp - 0xa4], 0x17
jne 0x4145c6
lea eax, [ebp - 0x94]
push eax
call fcn.0042d1e4
push eax
push dword [ebp - 0xa4]
push edi
push ebx
call fcn.00413eb2
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4145c3
mov eax, dword [ebp - 8]
push eax
push esi
push ebx
call fcn.00413257
add esp, 0xc
cmp edi, 1
push 7
pop eax
cmove edi, eax
mov eax, edi
jmp 0x4146d9
test eax, eax
je 0x41454f
mov dword [ebp - 0x10], 0x2a
push edi
push esi
push ebx
call fcn.00413257
mov eax, dword [ebp - 0x10]
add esp, 0xc
jmp 0x4146d9
mov edi, dword [ebp - 8]
push 1
push edi
call fcn.0041d26f
lea eax, [ebp - 0xe4]
push eax
call fcn.00415e6c
lea edi, [esi + 0x268]
add esp, 0xc
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x264], 1
jle 0x414620
push 3
push dword [esi + 0x27c]
push dword [esi + 0x278]
push ebx
call fcn.0040611f
push 4
push dword [esi + 0x284]
push dword [esi + 0x280]
push ebx
call fcn.0040611f
add esp, 0x20
cmp byte [ebp - 2], 0
jne 0x4146ca
cmp dword [esi + 0x58], 4
je 0x4146ca
cmp byte [esi + 0x25a], 0
mov edi, dword [ebp - 8]
jne 0x414659
push dword [ebp - 0x98]
lea eax, [ebp - 0x94]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4146b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0xc], eax
cmp eax, 0xb
je 0x4146b3
cmp eax, 0x2732
jle 0x414675
cmp eax, 0x2734
jle 0x4146b3
push 0x100
lea ecx, [ebp - 0x1e4]
push ecx
push eax
call fcn.0042c76d
push eax
lea eax, [ebp - 0xd4]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebx
call fcn.00412ba4
mov eax, dword [ebp + 0xc]
push edi
push esi
push ebx
mov dword [ebx + 0x93c], eax
call fcn.00413257
add esp, 0x28
push 7
pop eax
jmp 0x4146d9
xor eax, eax
jmp 0x4146ba
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4146d9
mov ecx, dword [ebp + 0x14]
mov dword [esi + ecx*4 + 0x150], edi
jmp 0x4146d9
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [esi + ecx*4 + 0x150], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret