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

Disassembly:
sub esp, 0x490
mov eax, dword [0x10041060]
xor eax, esp
mov dword [esp + 0x48c], eax
test byte [0x100451b0], 1
mov eax, dword [esp + 0x494]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x24], eax
jne 0x10004a42
or dword [0x100451b0], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, ax
mov dword [0x100451ac], ecx
push 0x11
push 2
push 2
xor ebx, ebx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, ebx
ja 0x10004a5d
xor al, al
jmp 0x10004cc8
push 0x100451ac
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebp, dword [sym.imp.WS2_32.dll_htons]
mov edx, 2
push ebx
mov edi, eax
mov word [esp + 0x48], dx
mov dword [esp + 0x4c], ebx
call ebp
mov word [esp + 0x46], ax
push 0x10
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, 2
push 0x35
mov word [esp + 0x58], cx
mov dword [esp + 0x5c], 0xdcdc43d0
call ebp
mov dl, 0x6d
push 0x10
mov word [esp + 0x5a], ax
mov al, 0x70
mov byte [esp + 0x85], dl
mov byte [esp + 0x94], dl
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x8c], al
mov byte [esp + 0x8f], al
mov al, 0x6e
push ebx
mov byte [esp + 0x95], al
mov byte [esp + 0x97], al
push 0x22
lea eax, [esp + 0x84]
mov cl, 0x6f
push eax
push esi
mov byte [esp + 0x8e], 1
mov byte [esp + 0x8f], bl
mov byte [esp + 0x90], bl
mov byte [esp + 0x91], 1
mov byte [esp + 0x92], bl
mov byte [esp + 0x93], bl
mov byte [esp + 0x94], bl
mov byte [esp + 0x95], bl
mov byte [esp + 0x96], bl
mov byte [esp + 0x97], bl
mov byte [esp + 0x98], 4
mov byte [esp + 0x9a], 0x79
mov byte [esp + 0x9b], 0x69
mov byte [esp + 0x9d], 7
mov byte [esp + 0x9e], cl
mov byte [esp + 0xa0], 0x65
mov byte [esp + 0xa2], 0x64
mov byte [esp + 0xa4], 0x73
mov byte [esp + 0xa5], 3
mov byte [esp + 0xa6], 0x63
mov byte [esp + 0xa7], cl
mov byte [esp + 0xa9], bl
mov byte [esp + 0xaa], bl
mov byte [esp + 0xab], 1
mov byte [esp + 0xac], bl
mov byte [esp + 0xad], 1
mov word [esp + 0x8c], di
call dword [sym.imp.WS2_32.dll_sendto]
xor eax, eax
lea ecx, [esp + 0x98]
mov dword [esp + 0x3c], 0x400
mov dword [esp + 0x40], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
push ebx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push 1
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
push ebx
push 0x3e8
push 1
lea ecx, [esp + 0x44]
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
lea edx, [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, dword [esp + 0x18]
cmp eax, 0x10
jbe 0x10004cbf
cmp word [esp + 0x98], di
jne 0x10004cbf
mov ecx, 0x100
cmp word [esp + 0x9c], cx
jne 0x10004cbf
mov edx, ecx
cmp word [esp + 0x9e], dx
jne 0x10004cbf
cmp word [esp + 0xa0], bx
jne 0x10004cbf
cmp word [esp + 0xa2], bx
jne 0x10004cbf
mov eax, dword [esp + eax + 0x94]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esp + 0x24]
push eax
call fcn.10003210
mov bl, 1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, bl
mov ecx, dword [esp + 0x49c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001cefd
add esp, 0x490
ret