Function at 0x10094040
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, 0x213c
call fcn.10140530
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x2134], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2148]
push esi
push edi
push 0x1fff
lea eax, [esp + 0x145]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x28], 0x10
mov byte [esp + 0x14c], 0
call fcn.1012e060
xor eax, eax
add esp, 0xc
mov ecx, 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x28], cx
cmp dword [ebp + 0x20c], eax
jbe 0x100940ba
movzx edx, word [ebp + 0x20c]
push edx
jmp 0x100940d6
push 0x1015acc0
push str.nameserver
call dword [sym.imp.WS2_32.dll_getservbyname]
test eax, eax
je 0x100940d4
mov ax, word [eax + 8]
jmp 0x100940db
push 0x35
call sub.WS2_32.dll_htons
push 0
push 2
push 2
mov word [esp + 0x36], ax
call sub.WS2_32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100940fc
mov eax, 0xfffffffd
jmp 0x10094390
push 0
call fcn.101290ae
add esp, 4
push eax
call fcn.1012b727
add esp, 4
call fcn.1012b739
cdq
mov ecx, 0x4845
idiv ecx
push edx
mov dword [esp + 0x28], edx
call sub.WS2_32.dll_htons
mov word [esp + 0x140], ax
mov ax, word [esp + 0x142]
or ax, 5
push 1
mov word [esp + 0x146], ax
call sub.WS2_32.dll_htons
xor ecx, ecx
mov word [esp + 0x144], ax
xor edx, edx
xor eax, eax
mov word [esp + 0x14a], cx
lea edi, [esp + 0x14c]
mov ecx, esi
mov word [esp + 0x146], dx
mov word [esp + 0x148], ax
call fcn.10094410
mov esi, eax
add esi, 0xc
mov byte [esp + esi + 0x140], 0
push 0xf
inc esi
call sub.WS2_32.dll_htons
push 1
mov word [esp + esi + 0x144], ax
call sub.WS2_32.dll_htons
mov word [esp + esi + 0x142], ax
xor eax, eax
push 0x103
push eax
lea edx, [esp + 0x41]
push edx
add esi, 5
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x44], al
call fcn.1012e060
lea eax, [esp + 0x20]
add esp, 0xc
lea edi, [ebp + 4]
push eax
lea edx, [esp + 0x3c]
mov ecx, edi
call fcn.10063030
add esp, 4
cmp dword [esp + 0x14], 0xffffffff
je 0x10094260
lea ebx, [ebx]
lea ecx, [esp + 0x38]
push ecx
call sub.WS2_32.dll_inet_addr
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
jne 0x10094219
mov ecx, edi
call fcn.1000ee40
test eax, eax
je 0x10094251
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
push 0x10
lea edx, [esp + 0x2c]
push edx
push 0
push esi
lea eax, [esp + 0x150]
push eax
push ebx
call sub.WS2_32.dll_sendto
cmp eax, 0xffffffff
je 0x1009423e
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x3c]
mov ecx, edi
call fcn.10063030
add esp, 4
cmp dword [esp + 0x14], 0xffffffff
jne 0x100941f0
xor esi, esi
cmp dword [esp + 0x18], esi
jne 0x10094270
push ebx
call sub.WS2_32.dll_closesocket
mov eax, 0xfffffffc
jmp 0x10094390
mov edx, dword [esp + 0x2154]
push edx
push ebx
call fcn.1000f050
add esp, 8
cmp eax, 1
je 0x10094296
push ebx
call sub.WS2_32.dll_closesocket
mov eax, 0xfffffff1
jmp 0x10094390
push esi
push esi
lea eax, [esp + 0x28]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
push esi
push 0x4004667f
push ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x100942cf
push ebx
call sub.WS2_32.dll_closesocket
mov eax, 0xfffffff9
jmp 0x10094390
cmp dword [esp + 0x10], esi
je 0x100942bf
mov eax, dword [ebp + 0x210]
cmp eax, esi
je 0x100942e8
push eax
call fcn.1006a890
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call fcn.1006a7b0
add esp, 4
mov dword [ebp + 0x210], eax
cmp eax, esi
jne 0x1009430f
push ebx
call sub.WS2_32.dll_closesocket
mov eax, 0xfffffffa
jmp 0x10094390
mov ecx, dword [esp + 0x10]
push ecx
push esi
push eax
mov dword [ebp + 0x214], ecx
call fcn.1012e060
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x210]
lea ecx, [esp + 0x2c]
push ecx
push esi
push edx
push eax
push ebx
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x1009436c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
cmp eax, 0x274c
je 0x10094360
call sub.WS2_32.dll_closesocket
mov eax, 0xfffffffb
jmp 0x10094390
call sub.WS2_32.dll_closesocket
mov eax, 0xd
jmp 0x10094390
push ebx
call sub.WS2_32.dll_closesocket
mov ecx, dword [esp + 0x24]
push ecx
call sub.WS2_32.dll_htons
mov edx, dword [ebp + 0x210]
xor ecx, ecx
cmp word [edx], ax
sete cl
dec ecx
and ecx, 0xfffffff0
mov eax, ecx
mov ecx, dword [esp + 0x2144]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10127db1
add esp, 0x213c
ret 8