Function at 0x1000cdb9
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94c
mov eax, dword [0x1001f048]
xor eax, esp
mov dword [esp + 0x948], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x145]
push edi
mov edi, dword [ebp + 8]
push 0x223
push 0
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov byte [esp + 0x154], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
xor ebx, ebx
test esi, esi
je 0x1000d03e
test edi, edi
je 0x1000d03e
push dword [esi]
push ebx
push edi
call sub.MSVCR120.dll_memset
mov eax, dword [esi]
and dword [esi], ebx
push 0x5ee
push str.line_d_Start_CreateUdp
mov dword [esp + 0x34], eax
call fcn.100138a5
add esp, 0x14
call fcn.1000c786
mov edi, eax
or ecx, 0xffffffff
mov dword [esp + 0x24], edi
cmp edi, ecx
jne 0x1000ce6a
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x5f4
push str.line_d_CreateUdp_Fail_WSAGetLastError0x_x
call fcn.100138a5
add esp, 0xc
jmp 0x1000d041
push 2
pop eax
push ecx
mov word [esp + 0x2c], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x44
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [esp + 0x2e], ax
lea eax, [esp + 0x2c]
push eax
push 0
push 0x224
lea eax, [esp + 0x158]
mov dword [esp + 0x158], 0xc
push eax
push edi
mov dword [esp + 0x164], 0x45585047
mov dword [esp + 0x168], 1
call dword [sym.imp.WS2_32.dll_sendto]
or ecx, 0xffffffff
cmp eax, ecx
jne 0x1000cee7
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x603
push str.line_d_sendto_fail_WSAGetLastError0x_x
jmp 0x1000ce5d
and dword [esp + 0x10], ebx
push 0x60c
push str.line_d_sendto_Ok_
call fcn.100138a5
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
pop ecx
call edi
mov dword [esp + 0x14], eax
call edi
jmp 0x1000d02d
push 0x5dc
lea eax, [esp + 0x374]
push 0
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
mov dword [esp + 0x18], 0x10
lea edi, [esp + 0x44]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0x5dc
lea eax, [esp + 0x380]
push eax
push dword [esp + 0x38]
call dword [sym.imp.WS2_32.dll_recvfrom]
or edi, 0xffffffff
cmp eax, edi
je 0x1000d019
cmp dword [esp + 0x374], 0x45585047
jne 0x1000d027
lea eax, [esp + 0x38]
xor edi, edi
push eax
lea edx, [esp + 0x374]
lea ecx, [esp + 0x4c]
call fcn.1000caac
pop ecx
test eax, eax
je 0x1000d027
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
test eax, eax
jle 0x1000cfdf
mov eax, ecx
mov dword [esp + 0xc], ecx
xor edx, edx
mov eax, dword [eax + edx*4]
lea esi, [esp + 0x48]
cmp eax, dword [esi + edx*4]
mov esi, dword [esp + 0x18]
jne 0x1000cfc7
inc edx
cmp edx, 0x40
je 0x1000d027
mov eax, dword [esp + 0xc]
jmp 0x1000cfab
mov eax, dword [esp + 0xc]
inc edi
add eax, 0x100
mov dword [esp + 0xc], eax
cmp edi, dword [esp + 0x10]
jl 0x1000cfa9
mov eax, dword [esp + 0x10]
add dword [esi], 0x100
mov edx, dword [esp + 0x20]
cmp edx, 0x100
jb 0x1000d014
shl edi, 8
lea esi, [esp + 0x48]
add edi, ecx
sub edx, 0x100
push 0x40
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
inc eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
jmp 0x1000d027
push 0x6f
pop ebx
jmp 0x1000d027
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
cmovne ebx, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x14]
cmp eax, 0xfa0
jbe 0x1000cf0f
jmp 0x1000d041
push 0x57
pop ebx
mov ecx, dword [esp + 0x954]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10015a21
mov esp, ebp
pop ebp
ret 8