Function at 0x41f3f0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492f8b
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4bad80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x38]
call fcn.00420830
movzx eax, al
test eax, eax
je 0x41f439
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x41f62e
push 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x41f625
lea ecx, [ebp - 0x24]
call fcn.0041eb80
mov dword [ebp - 4], 0
push 8
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00478f80
add esp, 0xc
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x20], eax
mov ecx, 2
mov word [ebp - 0x24], cx
push 2
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x24]
call fcn.0041ec50
lea ecx, [ebp - 0x24]
call fcn.004207e0
push eax
lea ecx, [ebp - 0x24]
call fcn.00424a80
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41f60e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
sub eax, 0x2736
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x1b
ja case.0x41f4ee.1
mov ecx, dword [ebp - 0x3c]
movzx edx, byte [ecx + 0x41f674]
jmp dword [edx*4 + 0x41f64c]
mov byte [ebp - 0x29], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041ebc0
mov al, byte [ebp - 0x29]
jmp 0x41f62e
mov byte [ebp - 0x2a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041ebc0
mov al, byte [ebp - 0x2a]
jmp 0x41f62e
mov byte [ebp - 0x2b], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041ebc0
mov al, byte [ebp - 0x2b]
jmp 0x41f62e
mov byte [ebp - 0x2c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041ebc0
mov al, byte [ebp - 0x2c]
jmp 0x41f62e
mov byte [ebp - 0x2d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041ebc0
mov al, byte [ebp - 0x2d]
jmp 0x41f62e
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041ebc0
mov al, byte [ebp - 0x2e]
jmp 0x41f62e
mov byte [ebp - 0x2f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041ebc0
mov al, byte [ebp - 0x2f]
jmp 0x41f62e
mov byte [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041ebc0
mov al, byte [ebp - 0x30]
jmp 0x41f62e
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041ebc0
mov al, byte [ebp - 0x31]
jmp 0x41f62e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041ebc0
mov al, byte [ebp - 0x32]
jmp 0x41f62e
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041ebc0
xor eax, eax
cmp dword [ebp - 0x10], 0xffffffff
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00478af2
mov esp, ebp
pop ebp
ret 0x14