Function at 0x412ea0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5856f3
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x5e5c10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
test eax, eax
jns 0x412ee4
or esi, 0xffffffff
jmp 0x412f04
push 0x5b8c58
push ecx
call fcn.00560b94
mov ecx, dword [ebp + 8]
add esp, 8
test eax, eax
jne 0x412efe
or esi, 0xffffffff
jmp 0x412f04
sub eax, ecx
sar eax, 1
mov esi, eax
mov eax, dword [ecx - 0xc]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x1ac]
push eax
lea ecx, [ebp + 8]
call fcn.004155b0
mov eax, dword [eax]
push 0xa
push 0
push eax
call fcn.00560b60
mov ebx, eax
mov eax, dword [ebp - 0x1ac]
add eax, 0xfffffff0
or edi, 0xffffffff
add esp, 0xc
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412f4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [ebp - 0x1a4]
push ecx
lea ecx, [ebp + 8]
call fcn.00415630
lea edx, [ebp - 0x1a0]
push edx
push 0x101
mov byte [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x41310c
mov eax, dword [ebp - 0x1a0]
cmp al, 1
jne 0x413106
shr eax, 8
cmp al, 1
jne 0x413106
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x1a4]
push ecx
lea ecx, [ebp - 0x1a8]
mov esi, eax
call fcn.00415870
mov edx, dword [ebp - 0x1a8]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edi, eax
mov eax, 2
push ebx
mov word [ebp - 0x1bc], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x1b4]
mov word [ebp - 0x1ba], ax
mov ecx, dword [ebp - 0x1bc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1b0]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.0040d030
add esp, 0x10
test al, al
jne 0x413087
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x1a8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413042
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1a4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413068
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x413144
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x1a8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4130b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1a4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4130dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413102
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x413152
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1a4]
add eax, 0xfffffff0
mov edx, edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413131
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x413150
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055fd94
mov esp, ebp
pop ebp
ret 4