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

Disassembly:
push 0x68
mov eax, 0x5c5325
call fcn.0058ec94
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov esi, edx
push eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x54], ebx
call fcn.0040fdb0
mov dword [ebp - 4], ebx
push 0x11
xor edi, edi
push 2
inc edi
push 2
mov dword [ebp - 0x54], edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
je 0x42a986
push 4
lea ecx, [ebp - 0x58]
push ecx
push 0x1006
push 0xffff
push eax
mov dword [ebp - 0x58], 0x1f4
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x42a97d
lea eax, [ebp - 0x38]
push eax
call fcn.0040844d
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov dword [ebp - 0x34], ebx
sar eax, 2
test eax, eax
jbe 0x42a76d
jmp 0x42a6f7
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x34]
call fcn.0041e10a
push eax
lea eax, [ebp - 0x40]
push eax
lea esi, [ebp - 0x38]
call fcn.004167ea
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov edi, esi
call fcn.004084d8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004084b5
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
sar eax, 2
dec eax
cmp dword [ebp - 0x34], eax
jae 0x42a75c
lea eax, [ebp - 0x3c]
push 0x688e8c
push eax
call fcn.0041683c
pop ecx
pop ecx
mov byte [ebp - 4], 3
call fcn.004084d8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004084b5
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
inc dword [ebp - 0x34]
sar eax, 2
cmp dword [ebp - 0x34], eax
jb 0x42a6f4
lea eax, [ebp - 0x38]
call fcn.0040fbc8
mov eax, dword [ebp - 0x38]
mov eax, dword [eax - 0xc]
lea edi, [eax + 8]
lea ebx, [ebp - 0x40]
call fcn.0042c18f
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x38]
mov edx, dword [eax - 0xc]
call fcn.004b5840
mov esi, dword [ebp - 0x40]
mov edx, dword [esi]
mov ecx, dword [0x6df30c]
inc dword [0x6df30c]
mov dword [edx], eax
mov eax, dword [esi]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x38]
push dword [eax - 0xc]
mov dword [ebp - 0x3c], ecx
push eax
mov eax, dword [esi]
add eax, 8
push eax
call fcn.00586840
mov eax, dword [esi + 4]
mov esi, dword [esi]
add esp, 0xc
push 0x10
push 0x6dd36c
push 0
push eax
push esi
push dword [ebp - 0x4c]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x42a965
and dword [ebp - 0x34], 0
mov edi, 0x2808
lea ebx, [ebp - 0x44]
call fcn.0042c18f
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x44]
xor ebx, ebx
xor edi, edi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push ebx
push ebx
push ebx
push eax
push ecx
push dword [ebp - 0x4c]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x42a837
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x42a959
inc edi
cmp edi, 0x1e
jb 0x42a803
jmp 0x42a959
cmp eax, ebx
je 0x42a959
mov edi, eax
call fcn.0041ad11
cmp dword [esi + 4], 8
jbe 0x42a959
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x3c]
mov byte [eax], 1
mov eax, dword [esi]
mov edi, dword [eax]
cmp dword [eax + 4], ecx
je 0x42a880
mov byte [ebp - 4], 4
lea ebx, [ebp - 0x44]
call fcn.004170a7
inc dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0xa
jb 0x42a7eb
jmp 0x42a965
mov eax, dword [esi + 4]
mov esi, dword [esi]
add eax, 0xfffffff8
push eax
add esi, 8
push esi
lea ecx, [ebp - 0x30]
call fcn.0042ac5f
mov byte [ebp - 4], 6
push ebx
lea ecx, [ebp - 0x30]
call fcn.00407d97
mov edx, dword [ebp - 0x1c]
call fcn.004b5840
cmp edi, eax
jne 0x42a94a
push 0x693254
lea eax, [ebp - 0x3c]
push eax
call fcn.00408474
mov byte [ebp - 4], 7
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x42a8d0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00408474
mov byte [ebp - 4], 8
lea eax, [ebp - 0x3c]
push eax
push 0x688e8c
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00489f20
add esp, 0x10
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x50]
mov ecx, esi
call fcn.0042c4c6
mov byte [ebp - 4], 8
lea eax, [ebp - 0x74]
push eax
call fcn.0040fde8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x34]
call fcn.004084b5
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
call fcn.004084b5
mov eax, dword [ebp - 0x48]
mov ecx, dword [esi + 0x10]
mov edx, dword [eax + 0x10]
sub ecx, dword [esi + 0xc]
sub edx, dword [eax + 0xc]
xor ecx, edx
test ecx, 0xfffffffc
je 0x42a94a
mov eax, esi
call fcn.0042c604
mov byte [ebp - 4], 5
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004098e5
mov byte [ebp - 4], 4
lea ebx, [ebp - 0x44]
call fcn.004170a7
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x40]
call fcn.004170a7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004084b5
push dword [ebp - 0x4c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x50]
call fcn.0058ed17
ret