Function at 0x4034b0
Capabilities:
Create udp socket
Delete file
Get file size
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495678
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x2d4
mov eax, dword [0x4cf0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2e4], ecx
mov dword [ebp - 4], 0
cmp dword [0x4d3d48], 0xffffffff
jne 0x4035a2
cmp dword [0x4d3d3c], 0
jne 0x403524
lea eax, [ebp - 0x1d8]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x403524
mov dword [0x4d3d3c], 1
push 0
push 2
push 2
call sub.WS2_32.dll_socket
mov dword [0x4d3d48], eax
cmp dword [0x4d3d48], 0xffffffff
je 0x4035a2
push 0x10
push 0
lea ecx, [ebp - 0x48]
push ecx
call fcn.00474130
add esp, 0xc
mov edx, 2
mov word [ebp - 0x48], dx
push 0x49971c
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x44], eax
push 0x1ab
call sub.WS2_32.dll_htons
mov word [ebp - 0x46], ax
push 0x10
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [0x4d3d48]
push ecx
call sub.WS2_32.dll_bind
test eax, eax
jge 0x4035a2
mov edx, dword [0x4d3d48]
push edx
mov ecx, 0x4d4470
call fcn.0042a500
mov dword [0x4d3d48], 0xffffffff
mov dword [ebp - 0x38], 0
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push 0x499728
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
je 0x4035ff
push 0
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1dc], eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1dc], 0x2710
jbe 0x4035ff
push 0x499744
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1e
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x2e4]
call fcn.0040c780
mov eax, dword [ebp - 0x2e4]
mov ecx, dword [eax + 0x1644]
add ecx, 1
mov edx, dword [ebp - 0x2e4]
mov dword [edx + 0x1644], ecx
mov eax, dword [ebp - 0x2e4]
cmp dword [eax + 0x1644], 0xf4240
jbe 0x40364d
mov ecx, dword [ebp - 0x2e4]
mov dword [ecx + 0x1644], 0
push 0x499760
push 0x499764
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea edx, [ebp - 0x34]
push edx
call fcn.00474a90
add esp, 4
lea eax, [ebp + eax - 0x34]
push eax
call fcn.00474a28
add esp, 0xc
push 0xa
lea ecx, [ebp - 0x34]
push ecx
call fcn.00474a90
add esp, 4
lea edx, [ebp + eax - 0x34]
push edx
mov eax, dword [ebp - 0x2e4]
mov ecx, dword [eax + 0x1644]
push ecx
call fcn.004745e3
add esp, 0xc
cmp dword [0x4d3d48], 0xffffffff
je 0x4037b1
push 0x100
push 0
lea edx, [ebp - 0x2e0]
push edx
call fcn.00474130
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.00474130
add esp, 0xc
mov ecx, 2
mov word [ebp - 0x48], cx
push 0x499768
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x44], eax
push 0x593
call sub.WS2_32.dll_htons
mov word [ebp - 0x46], ax
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea ecx, [ebp - 0x2e0]
push ecx
call fcn.00474a28
add esp, 0xc
push 0x499774
push 0x499778
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea edx, [ebp - 0x2e0]
push edx
call fcn.00474a90
add esp, 4
lea eax, [ebp + eax - 0x2e0]
push eax
call fcn.00474a28
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea eax, [ebp - 0x2e0]
push eax
call fcn.00474a90
add esp, 4
lea ecx, [ebp + eax - 0x2e0]
push ecx
call fcn.00474a28
add esp, 0xc
push 0x10
lea edx, [ebp - 0x48]
push edx
push 0
lea eax, [ebp - 0x2e0]
push eax
call fcn.00474a90
add esp, 4
push eax
lea ecx, [ebp - 0x2e0]
push ecx
mov edx, dword [0x4d3d48]
push edx
call sub.WS2_32.dll_sendto
push str.d:cacheTHMediaServer.txt
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0x499798
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4037d8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00474590
mov esp, ebp
pop ebp
ret 4