Function at 0x40efb0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432704
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0040ef00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0040eec0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp + 8]
call fcn.00407440
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x40f00a
push 0
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040ef40
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp + 8]
call fcn.0040f480
push eax
lea ecx, [ebp - 0x14]
call fcn.00405c10
movzx ecx, al
test ecx, ecx
je 0x40f0c8
lea ecx, [ebp - 0x14]
call fcn.0040ef20
mov ecx, eax
call fcn.00408d80
push eax
lea ecx, [ebp - 0xd0]
call fcn.00407e70
mov byte [ebp - 4], 3
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x48], esp
lea edx, [ebp - 0xd0]
push edx
call fcn.004058f0
call fcn.0040f320
add esp, 0x18
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40f0b4
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x88]
call fcn.00407e70
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.00405090
test eax, eax
jbe 0x40f0a5
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040f500
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00405b20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd0]
call fcn.00405b20
jmp 0x40effc
lea ecx, [ebp + 0x10]
call fcn.00407920
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], eax
jb 0x40f0e0
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
lea ecx, [ebp + 0x10]
call fcn.00407920
test eax, eax
jbe 0x40f2c0
lea ecx, [ebp - 0x18]
call fcn.0040eec0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x10]
call fcn.00407440
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
jmp 0x40f120
push 0
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040ef40
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp + 0x10]
call fcn.0040f480
push eax
lea ecx, [ebp - 0x18]
call fcn.00405c10
movzx ecx, al
test ecx, ecx
je 0x40f2c0
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx]
jb 0x40f2b2
lea ecx, [ebp - 0x18]
call fcn.0040ef20
mov ecx, eax
call fcn.00408d80
push eax
lea ecx, [ebp - 0xb8]
call fcn.00407e70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.0040eec0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00407440
mov edx, dword [eax]
mov dword [ebp - 0x1c], edx
jmp 0x40f196
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040ef40
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040f480
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405c10
movzx edx, al
test edx, edx
je 0x40f2a3
lea ecx, [ebp - 0x1c]
call fcn.0040ef20
mov ecx, eax
call fcn.00408d80
push eax
lea ecx, [ebp - 0xa0]
call fcn.00407e70
mov byte [ebp - 4], 6
call fcn.0040f300
mov dword [ebp - 0x24], eax
mov eax, 2
mov word [ebp - 0x70], ax
lea ecx, [ebp - 0xa0]
call fcn.00408d80
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0xb8]
call fcn.00408d80
push eax
call fcn.00425109
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x6e], ax
push 0x10
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x40f28f
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.00405b20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.00405b20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00405ba0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00405ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00405ba0
mov eax, dword [ebp - 0x34]
jmp 0x40f2f1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.00405b20
jmp 0x40f188
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.00405b20
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x40f112
mov dword [ebp - 0x38], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00405ba0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00405ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00405ba0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret