Function at 0x10037e30
Capabilities:
Create udp socket
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10114c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x9b0
mov eax, dword [0x1014d0cc]
xor eax, esp
mov dword [esp + 0x9a8], eax
push ebx
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x9c0]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov ebx, ecx
mov dword [esp + 0x48], ebx
mov esi, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
push eax
push 2
push 2
mov dword [esp + 0x9d4], eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10037ec9
mov edi, dword [0x10155284]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
lea ecx, [esp + 0x3c]
mov dword [esi], eax
mov dword [esi + 4], edi
call fcn.10038590
mov eax, dword [esp + 0x3c]
test eax, eax
jmp 0x100380f8
push 0
push 0
lea eax, [esp + 0x38]
push eax
push 0x8e8
lea ecx, [esp + 0xdc]
push ecx
push 0
push 0
push 0x4004747f
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10037f28
mov edx, dword [0x10155284]
mov dword [esp + 0x10], edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
push edi
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
lea ecx, [esp + 0x3c]
call fcn.10038590
mov eax, dword [esp + 0x3c]
test eax, eax
jmp 0x100380f8
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x30]
mov eax, 0xaf286bcb
mul ecx
sub ecx, edx
xor eax, eax
shr ecx, 1
xor esi, esi
add ecx, edx
shr ecx, 6
cmp ecx, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], esi
jle 0x100380e8
lea edi, [esp + 0xd0]
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], ecx
lea esp, [esp]
movzx eax, word [edi]
cmp ax, 2
je 0x10037fd5
cmp ax, 0x17
je 0x10037fc5
xor eax, eax
xor edx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
jmp 0x10037ff2
push 0x1a
lea ecx, [edi + 8]
lea esi, [esp + 0x18]
call fcn.10037a20
jmp 0x10037fe3
push 0xe
lea ecx, [edi + 4]
lea esi, [esp + 0x18]
call fcn.100379c0
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x60], ecx
xor ecx, ecx
mov dword [esp + 0x64], eax
xor eax, eax
xor ebx, ebx
cmp esi, ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
jne 0x10038065
cmp esi, 1
jne 0x1003805c
lea edi, [esp + 0x1c]
lea ebx, [esp + 0x54]
call fcn.10015190
mov edi, dword [esp + 0x34]
jmp 0x10038061
cmp edx, ebx
sete al
test al, al
jne 0x100380d0
mov edx, esi
neg edx
sbb edx, edx
and edx, 0x15
add edx, 2
lea ecx, [edi + 0x30]
lea eax, [esp + 0x14]
call fcn.10037ab0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x70], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x74], edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x4c]
lea esi, [esp + 0x38]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov byte [esp + 0x84], 0
mov dword [esp + 0xc4], 0x5dc
call fcn.100386a0
add edi, 0x4c
xor esi, esi
sub dword [esp + 0x10], 1
mov dword [esp + 0x34], edi
jne 0x10037fa0
mov ebx, dword [esp + 0x48]
push ebx
lea ecx, [esp + 0x3c]
call fcn.10038590
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x10038103
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x9c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.1010defb
mov esp, ebp
pop ebp
ret