Function at 0x1000cb1a
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, 0xce4
mov eax, dword [0x1001f048]
xor eax, esp
mov dword [esp + 0xce0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
push edi
test esi, esi
je 0x1000cd9f
test eax, eax
je 0x1000cd9f
push dword [esi]
push ebx
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [esi]
add esp, 0xc
and dword [esi], ebx
mov dword [esp + 0x1c], eax
call fcn.1000c786
mov edi, eax
or ecx, 0xffffffff
mov dword [esp + 0x14], edi
cmp edi, ecx
jne 0x1000cb84
mov ebx, ecx
jmp 0x1000cd7c
push 2
pop eax
push ecx
mov word [esp + 0x34], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x43
mov dword [esp + 0x38], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x32], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCR120.dll_srand]
pop ecx
call dword [sym.imp.MSVCR120.dll_rand]
mov edx, eax
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x150]
call fcn.1000c8a8
push 0x10
lea eax, [esp + 0x34]
push eax
push 0
push 0x224
lea eax, [esp + 0x160]
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
or ecx, 0xffffffff
cmp eax, ecx
jne 0x1000cc0e
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x56f
push str.line_d_sendto_fail_WSAGetLastError0x_x
call fcn.100138a5
add esp, 0xc
jmp 0x1000cd75
and dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
jmp 0x1000cd60
push 0x5dc
lea eax, [esp + 0x70c]
push 0
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
mov dword [esp + 0x1c], 0x10
lea edi, [esp + 0x4c]
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 + 0x10]
mov edi, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
push 0
push 0x5dc
lea eax, [esp + 0x718]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recvfrom]
or ecx, 0xffffffff
cmp eax, ecx
je 0x1000cd8c
push 0x63825363
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [esp + 0x7f4], eax
jne 0x1000cd60
cmp byte [esp + 0x708], 2
jne 0x1000cd60
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x70c]
jne 0x1000cd60
push 0
push 0x35
pop edx
lea ecx, [esp + 0x7f8]
call fcn.100012b1
pop ecx
test eax, eax
je 0x1000cccf
cmp byte [eax], 2
jne 0x1000cd60
push ecx
lea edx, [esp + 0x70c]
xor edi, edi
lea ecx, [esp + 0x54]
call fcn.1000c9bf
pop ecx
test eax, eax
je 0x1000cd5c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
test eax, eax
jle 0x1000cd80
mov eax, edx
mov dword [esp + 0x10], edx
xor ecx, ecx
mov eax, dword [eax + ecx*4]
lea esi, [esp + 0x50]
cmp eax, dword [esi + ecx*4]
mov esi, dword [esp + 0x28]
jne 0x1000cd1b
inc ecx
cmp ecx, 0x40
je 0x1000cd5c
mov eax, dword [esp + 0x10]
jmp 0x1000ccff
mov eax, dword [esp + 0x10]
mov ecx, pe_nt_image_headers32
inc edi
add eax, ecx
mov dword [esp + 0x10], eax
cmp edi, dword [esp + 0x18]
jl 0x1000ccfd
mov eax, dword [esp + 0x18]
add dword [esi], ecx
cmp dword [esp + 0x1c], ecx
jb 0x1000cd87
sub dword [esp + 0x1c], 0x100
lea esi, [esp + 0x50]
shl edi, 8
push 0x40
add edi, edx
inc eax
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x20]
cmp eax, 0xfa0
jbe 0x1000cc21
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
jmp 0x1000cda2
mov ecx, pe_nt_image_headers32
jmp 0x1000cd35
push 0x6f
pop ebx
jmp 0x1000cd5c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
push 0xffffffffffffffff
pop eax
cmovne ebx, eax
jmp 0x1000cd60
push 0x57
pop eax
mov ecx, dword [esp + 0xcec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10015a21
mov esp, ebp
pop ebp
ret 8