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

Disassembly:
sub esp, 0x218
mov eax, dword [0x5af710]
xor eax, esp
push ebp
mov ebp, dword [esp + 0x224]
mov dword [esp + 0x218], eax
xor eax, eax
test ebp, ebp
push esi
mov esi, ecx
je 0x456952
push ebx
push edi
mov ecx, 0xf
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [esp + 0x10], 0x10
jne 0x4567a0
push 0x11
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x456829
mov eax, dword [esi + 4]
push eax
mov ecx, esi
call fcn.004566b0
test eax, eax
je 0x456829
push 0x89
mov word [esp + 0x18], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 0x10]
mov word [esp + 0x16], ax
mov eax, dword [esp + 0x22c]
push ecx
mov dword [esp + 0x1c], eax
shr eax, 0x10
mov edi, eax
lea edx, [esp + 0x18]
push edx
mov word [0x5ac698], di
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
push 0
push eax
push 0x5ac698
push ecx
call dword [sym.imp.WSOCK32.dll_sendto]
cmp eax, ebx
je 0x456829
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 0xc]
lea eax, [esp + 0x18]
push eax
push 0
push 0x200
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recvfrom]
cmp eax, ebx
je 0x456829
cmp di, word [esp + 0x24]
je 0x456830
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 0xc], ebx
xor eax, eax
jmp 0x456950
mov ecx, dword [esp + 0x18]
mov dword [ebp], ecx
xor ecx, ecx
test eax, eax
jle 0x456829
mov dl, 0x21
nop
cmp byte [esp + ecx + 0x24], dl
jne 0x456855
mov bl, byte [esp + ecx + 0x25]
test bl, bl
jne 0x456855
cmp byte [esp + ecx + 0x26], 1
je 0x456861
inc ecx
cmp ecx, eax
jl 0x456840
xor eax, eax
jmp 0x456950
movsx eax, byte [esp + ecx + 0x2d]
test eax, eax
je 0x456829
lea esi, [ecx + 0xa]
lea edx, [eax + eax*8]
lea edi, [esi + edx*2]
cmp esi, edi
jge 0x45690a
xor ebx, ebx
lea ecx, [ecx]
mov eax, ebx
cdq
mov ecx, 0x12
idiv ecx
test edx, edx
jne 0x456900
mov ecx, 0xe
lea eax, [esp + esi + 0x24]
cmp byte [eax + ecx], 0x20
jne 0x4568a5
dec ecx
mov byte [eax + ecx + 1], 0
jns 0x456897
mov cl, byte [eax + 0xf]
cmp cl, 0x1e
jne 0x4568d0
mov ecx, dword [eax]
lea edx, [ebp + 0x14]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov cx, word [eax + 0xc]
mov al, byte [eax + 0xe]
mov word [edx + 0xc], cx
mov byte [edx + 0xe], al
jmp 0x456900
cmp cl, 0x20
jne 0x4568da
lea ecx, [ebp + 4]
jmp 0x4568e2
cmp cl, 3
jne 0x456900
lea ecx, [ebp + 0x24]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov dx, word [eax + 0xc]
mov al, byte [eax + 0xe]
mov word [ecx + 0xc], dx
mov byte [ecx + 0xe], al
inc esi
inc ebx
cmp esi, edi
jl 0x456880
mov cl, byte [esp + edi + 0x24]
cmp cl, 0x44
lea eax, [esp + edi + 0x24]
jne 0x45693b
cmp byte [eax + 1], 0x45
jne 0x45693b
cmp byte [eax + 2], 0x53
jne 0x45693b
cmp byte [eax + 3], 0x54
jne 0x45693b
mov cl, byte [eax + 4]
test cl, cl
jne 0x45693b
mov cl, byte [eax + 5]
test cl, cl
je 0x456829
mov ecx, dword [eax]
mov dx, word [eax + 4]
add ebp, 0x34
mov dword [ebp], ecx
mov word [ebp + 4], dx
mov eax, 1
pop edi
pop ebx
mov ecx, dword [esp + 0x21c]
pop esi
pop ebp
xor ecx, esp
call fcn.0053aaae
add esp, 0x218
ret 8