Function at 0x10037720
Capabilities:
Create tcp socket
Create udp socket
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005e0e1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1048
call fcn.100489c0
mov eax, dword [0x1006b2c0]
xor eax, esp
mov dword [esp + 0x1044], eax
push ebx
push edi
mov eax, dword [0x1006b2c0]
xor eax, esp
push eax
lea eax, [esp + 0x1058]
mov dword fs:[0], eax
xor eax, eax
mov ebx, ecx
mov edi, edx
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], eax
mov byte [esp + 0x34], al
mov dword [esp + 0x1060], eax
push 0xfff
push eax
mov byte [esp + 0x54], al
lea eax, [esp + 0x55]
push eax
call fcn.1003d8e0
add esp, 0xc
mov ecx, ebx
mov edx, esi
call fcn.10037540
cmp dword [edi + 0x18], 0x10
mov dword [esp + 0x10], eax
jb 0x100377b0
mov edi, dword [edi + 4]
jmp 0x100377b3
add edi, 4
push 0x10060eb4
push edi
call fcn.1003ae80
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100377e5
cmp dword [esp + 0x48], 0x10
jb 0x100377dd
mov ecx, dword [esp + 0x34]
push ecx
call fcn.1003ad90
add esp, 4
or eax, 0xffffffff
jmp 0x10037977
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
push edi
mov ecx, esi
call fcn.10037f70
test eax, eax
jge 0x1003781b
cmp dword [esp + 0x48], 0x10
jb 0x100377dd
mov edx, dword [esp + 0x34]
push edx
call fcn.1003ad90
add esp, 4
or eax, 0xffffffff
jmp 0x10037977
cmp dword [esp + 0x10], 0xffffffff
mov ecx, ebx
jne 0x10037860
lea eax, [esp + 0x14]
push eax
push esi
mov edx, 0x3f9
call fcn.100379c0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x106c], 1
call fcn.10003400
cmp dword [esp + 0x2c], 0x10
jb 0x100378ae
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1003ad90
add esp, 4
jmp 0x100378ae
lea edx, [esp + 0x14]
push edx
push esi
mov edx, 0x3fa
call fcn.100379c0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x106c], 2
call fcn.10003400
cmp dword [esp + 0x2c], 0x10
jb 0x1003789a
mov eax, dword [esp + 0x18]
push eax
call fcn.1003ad90
add esp, 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
push ecx
push edx
call fcn.1003c44f
add esp, 0xc
mov ebx, dword [esi + 4]
cmp ebx, 0xffffffff
je 0x100378d5
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x100378c5
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x48]
mov ecx, esi
call fcn.10037eb0
test eax, eax
jge 0x10037902
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [esp + 0x48], 0x10
jb 0x100377dd
mov eax, dword [esp + 0x34]
push eax
call fcn.1003ad90
add esp, 4
or eax, 0xffffffff
jmp 0x10037977
mov ecx, dword [esp + 0xc]
push ecx
call fcn.1003cc83
add esp, 4
test eax, eax
jne 0x1003794f
mov edx, dword [esp + 0xc]
push edx
push 0x1000
lea eax, [esp + 0x54]
push 1
push eax
call fcn.1003be2f
add esp, 0x10
lea ecx, [esp + 0x4c]
push ecx
mov ebx, edi
mov ecx, esi
call fcn.10037eb0
test eax, eax
jl 0x1003799a
mov edx, dword [esp + 0xc]
push edx
call fcn.1003cc83
add esp, 4
test eax, eax
je 0x10037913
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0xc]
push eax
call fcn.1003b0f2
add esp, 4
lea ecx, [esp + 0x30]
call fcn.10003370
xor eax, eax
mov ecx, dword [esp + 0x1058]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x1044]
xor ecx, esp
call fcn.1003ad81
mov esp, ebp
pop ebp
ret
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x30]
call fcn.10003370
or eax, 0xffffffff
jmp 0x10037977