Function at 0x58df70
Capabilities:
Create thread
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ddd73
mov eax, dword fs:[0]
push eax
sub esp, 0x94c
mov eax, dword [0x6c2da0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x878f2c], 0
jne 0x58e303
lea eax, [ebp - 0x8c0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x58e303
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x878f2c], eax
cmp eax, 0xffffffff
je 0x58e303
mov eax, 2
push 0x521
mov word [0x878ed0], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x1ae910bb
lea ecx, [ebp - 0x900]
mov word [0x878ed2], ax
call fcn.00594630
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 8
mov dword [0x878ed4], eax
lea eax, [ebp - 0x72c]
push eax
push 0x1006
push 0xffff
push dword [0x878f2c]
mov dword [ebp - 0x72c], 0x3a98
mov dword [ebp - 0x728], 0
call esi
push 4
lea eax, [ebp - 0x724]
mov dword [ebp - 0x724], 1
push eax
push 8
push 0xffff
push dword [0x878f2c]
call esi
push 0x10
push 0x878ed0
push 0
push 0x310
lea eax, [ebp - 0x720]
mov dword [0x87a464], 0x7d1
push eax
push dword [0x878f2c]
mov ecx, 0xc4
lea edi, [ebp - 0x720]
mov esi, 0x87a220
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.WS2_32.dll_sendto]
push 0
push 0
push 0
push 0x400
lea eax, [ebp - 0x410]
mov dword [0x87a464], 0
push eax
push dword [0x878f2c]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x58e292
jmp 0x58e141
push 0x65d05cb1
lea ecx, [ebp - 0x8fc]
call fcn.005946b0
push eax
lea ecx, [ebp - 0x918]
mov dword [ebp - 4], 0
call fcn.005834a0
mov eax, 0x68c350
lea ecx, [ebp - 0x958]
sub eax, 0x369d3767
push eax
call fcn.00594670
push eax
lea ecx, [ebp - 0x8d8]
mov byte [ebp - 4], 2
call fcn.005834a0
push 0x34
mov byte [ebp - 4], 5
call fcn.00598870
mov esi, eax
add esp, 4
test esi, esi
je 0x58e1c3
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], 0
mov byte [esi + 0x18], 0
jmp 0x58e1c5
xor esi, esi
lea eax, [ebp - 0x8d8]
cmp esi, eax
je 0x58e1db
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00583030
lea ecx, [esi + 0x18]
lea eax, [ebp - 0x918]
cmp ecx, eax
je 0x58e1f2
push 0xffffffffffffffff
push 0
push eax
call fcn.00583030
push 0
push 0
push esi
push 0x58de60
push 0
push 0
mov dword [esi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x58e22a
push ecx
mov ecx, esi
call fcn.0058df00
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call fcn.005c3f70
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x8c4], 0x10
jb 0x58e251
push dword [ebp - 0x8d8]
call fcn.00598830
add esp, 4
cmp dword [ebp - 0x904], 0x10
mov dword [ebp - 0x8c4], 0xf
mov dword [ebp - 0x8c8], 0
mov byte [ebp - 0x8d8], 0
jb 0x58e283
push dword [ebp - 0x918]
call fcn.00598830
add esp, 4
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call fcn.005c3f70
cmp dword [ebp - 0x1cc], 0x64
lea esi, [ebp - 0x410]
mov ecx, 0xc4
mov edi, 0x87a220
rep movsd dword es:[edi], dword [esi]
jne 0x58e31e
push dword [0x87a538]
mov edx, 0x87a53d
mov byte [0x87a53c], 1
push 0x87a53f
push 0x87a53e
mov ecx, 0x87a53c
call fcn.0058a0e0
push dword [0x87a198]
mov edx, 0x87a19d
mov byte [0x87a19c], 1
push 0x87a19f
push 0x87a19e
mov ecx, 0x87a19c
call fcn.0058a0e0
add esp, 0x18
mov byte [0x878f01], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bb4c3
mov esp, ebp
pop ebp
ret
push 0x65d05cb1
lea ecx, [ebp - 0x8fc]
call fcn.005946b0
push eax
lea ecx, [ebp - 0x930]
mov dword [ebp - 4], 6
call fcn.005834a0
push 0x87a241
lea ecx, [ebp - 0x8f0]
mov byte [ebp - 4], 7
call fcn.005834a0
push 0x34
mov byte [ebp - 4], 9
call fcn.00598870
mov esi, eax
add esp, 4
test esi, esi
je 0x58e38e
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], 0
mov byte [esi + 0x18], 0
jmp 0x58e390
xor esi, esi
lea eax, [ebp - 0x8f0]
cmp esi, eax
je 0x58e3a6
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00583030
lea ecx, [esi + 0x18]
lea eax, [ebp - 0x930]
cmp ecx, eax
je 0x58e3bd
push 0xffffffffffffffff
push 0
push eax
call fcn.00583030
push 0
push 0
push esi
push 0x58de60
push 0
push 0
mov dword [esi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x58e213
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x8dc], 0x10
jb 0x58e409
push dword [ebp - 0x8f0]
call fcn.00598830
add esp, 4
cmp dword [ebp - 0x91c], 0x10
mov dword [ebp - 0x8dc], 0xf
mov dword [ebp - 0x8e0], 0
mov byte [ebp - 0x8f0], 0
jb 0x58e21b
push dword [ebp - 0x930]
call fcn.00598830
add esp, 4
jmp 0x58e21b