Function at 0x4142c9
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.00413ab1
add esp, 0x10
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4145a9
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.004130bc
add esp, 0x10
test al, al
jne 0x414370
call fcn.00440eeb
mov esi, dword [eax]
call fcn.00440eeb
mov edi, eax
lea eax, [ebp - 0x1e4]
push 0x100
push eax
push esi
call fcn.0042c63f
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004129df
mov esi, dword [ebp + 0xc]
add esp, 0x1c
mov edi, dword [ebp - 8]
jmp 0x41447f
push dword [ebp - 0xc]
lea eax, [ebp - 0xd4]
push eax
push str.__Trying__s:_d..._n
push ebx
call fcn.00412a73
add esp, 0x10
cmp dword [ebp - 0xa4], 2
je 0x41439a
cmp dword [ebp - 0xa4], 0x17
jne 0x4143be
cmp dword [ebp - 0xa0], 1
jne 0x4143be
cmp byte [ebx + 0x6f7], 0
mov edi, dword [ebp - 8]
mov byte [ebp - 1], 1
je 0x4143c5
push edi
push ebx
call fcn.00414666
pop ecx
pop ecx
jmp 0x4143c5
mov edi, dword [ebp - 8]
mov byte [ebp - 1], 0
push edi
call fcn.00413a27
cmp byte [ebp - 1], 0
pop ecx
je 0x4143e4
cmp byte [ebx + 0x700], 0
je 0x4143e4
push edi
push ebx
call fcn.004145ad
pop ecx
pop ecx
cmp dword [ebx + 0x1b8], 0
je 0x41441e
push 1
push ebx
call fcn.004063fc
push 0
push edi
push dword [ebx + 0x1bc]
call dword [ebx + 0x1b8]
push 0
push ebx
mov dword [ebp - 0xc], eax
call fcn.004063fc
mov eax, dword [ebp - 0xc]
add esp, 0x1c
cmp eax, 2
jne 0x414474
mov byte [ebp - 2], 1
cmp dword [ebp - 0xa4], 2
je 0x414430
cmp dword [ebp - 0xa4], 0x17
jne 0x414495
lea eax, [ebp - 0x94]
push eax
call fcn.0042d0b6
push eax
push dword [ebp - 0xa4]
push edi
push ebx
call fcn.00413d81
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x14], edi
test edi, edi
je 0x414492
mov eax, dword [ebp - 8]
push eax
push esi
push ebx
call fcn.00413126
add esp, 0xc
cmp edi, 1
push 7
pop eax
cmove edi, eax
mov eax, edi
jmp 0x4145a8
test eax, eax
je 0x41441e
mov dword [ebp - 0x10], 0x2a
push edi
push esi
push ebx
call fcn.00413126
mov eax, dword [ebp - 0x10]
add esp, 0xc
jmp 0x4145a8
mov edi, dword [ebp - 8]
push 1
push edi
call fcn.0041d13e
lea eax, [ebp - 0xe4]
push eax
call fcn.00415d3b
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 0x4144ef
push 3
push dword [esi + 0x27c]
push dword [esi + 0x278]
push ebx
call fcn.00405fef
push 4
push dword [esi + 0x284]
push dword [esi + 0x280]
push ebx
call fcn.00405fef
add esp, 0x20
cmp byte [ebp - 2], 0
jne 0x414599
cmp dword [esi + 0x58], 4
je 0x414599
cmp byte [esi + 0x25a], 0
mov edi, dword [ebp - 8]
jne 0x414528
push dword [ebp - 0x98]
lea eax, [ebp - 0x94]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x414586
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0xc], eax
cmp eax, 0xb
je 0x414582
cmp eax, 0x2732
jle 0x414544
cmp eax, 0x2734
jle 0x414582
push 0x100
lea ecx, [ebp - 0x1e4]
push ecx
push eax
call fcn.0042c63f
push eax
lea eax, [ebp - 0xd4]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebx
call fcn.00412a73
mov eax, dword [ebp + 0xc]
push edi
push esi
push ebx
mov dword [ebx + 0x93c], eax
call fcn.00413126
add esp, 0x28
push 7
pop eax
jmp 0x4145a8
xor eax, eax
jmp 0x414589
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4145a8
mov ecx, dword [ebp + 0x14]
mov dword [esi + ecx*4 + 0x150], edi
jmp 0x4145a8
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