Function at 0x1006e270
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x90
mov eax, dword [0x101e5aec]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebp
push esi
push edi
push 0x11
push 2
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov al, al
nop
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x8c], eax
mov ah, ah
mov word [esp + 0x88], 2
mov esi, esi
push 0x7b
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x8a], ax
push eax
pop eax
mov ebx, ebx
push 0xb000000
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x24], eax
mov ebx, ebx
xor esi, esi
mov dword [esp + 0x28], esi
mov edx, edx
mov dword [esp + 0x2c], esi
mov bh, bh
mov dword [esp + 0x30], esi
cmp dword [0x101d08c8], 0x764f
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
cmp dword [0x101d08c0], 0xffffa7c6
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
cmp dword [0x101d08d0], 0x4c94
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
cmp dword [0x101d08bc], 0x7693
mov dword [esp + 0x4c], esi
mov esi, esi
mov dword [esp + 0x50], esi
mov ebp, ebp
mov eax, 0x1f4
mov dword [esp + 0xc], eax
cmp dword [0x101d08b8], 0x2d0b
mov dword [esp + 0x10], eax
mov esi, esi
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x10]
push eax
push 0x1005
push 0xffff
push edi
call ebp
cmp dword [0x101d08d4], 0x121
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x1006
push 0xffff
push edi
call ebp
mov dh, dh
push 0x10
lea edx, [esp + 0x8c]
push edx
push esi
push 0x30
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x1006e3d5
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [0x101d08bc], 0x7693
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.1012e3ba
add esp, 0x90
ret
mov dword [esp + 0x14], 0x10
mov cl, cl
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x8c]
push edx
push esi
push 0x30
lea eax, [esp + 0x64]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
push edi
jne 0x1006e42b
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [0x101d08d0], 0x4c94
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.1012e3ba
add esp, 0x90
ret
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [0x101d08c4], 0xfffff546
push ebx
pop ebx
mov ch, ch
mov ecx, dword [esp + 0x7c]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push ecx
call edi
add eax, 0x7c558180
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov dl, dl
lea edx, [esp + 0x18]
push edx
call fcn.1013216e
add esp, 4
mov ch, ch
cmp eax, esi
je 0x1006e3bb
movzx ecx, word [eax + 0x14]
add cx, 0x76c
mov word [ebx], cx
cmp dword [0x101d08d0], 0x4c94
movzx edx, word [eax + 0x10]
add dx, 1
mov word [ebx + 2], dx
cmp dword [0x101d08b8], 0x2d0b
movzx ecx, word [eax + 0x18]
mov word [ebx + 4], cx
mov dh, dh
movzx edx, word [eax + 0xc]
mov word [ebx + 6], dx
cmp dword [0x101d08b8], 0xffffd2f4
movzx ecx, word [eax + 8]
mov word [ebx + 8], cx
mov eax, eax
movzx edx, word [eax + 4]
mov word [ebx + 0xa], dx
cmp dword [0x101d08cc], 0x4dfc
mov ax, word [eax]
mov word [ebx + 0xc], ax
mov ah, ah
mov ecx, dword [esp + 0x80]
push ecx
call edi
test eax, eax
mov dword [esp + 0x84], eax
fild dword [esp + 0x84]
jge 0x1006e501
fadd dword [0x10198bd8]
fstp dword [esp + 0x20]
mov dh, dh
cmp dword [0x101d08b4], 0x5441
push ecx
pop ecx
fld dword [esp + 0x20]
fmul qword [0x10198bd0]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fmul qword [0x10198ab8]
fnstcw word [esp + 0x20]
movzx eax, word [esp + 0x20]
or eax, 0xc00
mov dword [esp + 0x84], eax
fldcw word [esp + 0x84]
fistp dword [esp + 0x84]
movzx edx, word [esp + 0x84]
mov word [ebx + 0xe], dx
fldcw word [esp + 0x20]
mov cl, cl
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.1012e3ba
add esp, 0x90
ret