Function at 0x4151d6
Capabilities:
Check for time delay via gettickcount
Read and send data from client to server
Read file via mapping
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
test esi, esi
je 0x4153a2
cmp dword [esi + 0x34], 0xffffffff
je 0x4153a2
mov ecx, dword [esi + 0x2c]
lea eax, [esi + 0x28]
mov edx, dword [eax]
lea eax, [esi + 0x20]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub ecx, dword [ebp - 0x20]
sbb eax, dword [ebp - 0x1c]
mov edx, dword [edi + 0x98]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edx + 0x318]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, ecx
cdq
push edx
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.004191f0
sub dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
jl 0x4152b2
jg 0x415254
cmp dword [ebp - 0x18], ebx
jbe 0x4152b2
mov eax, dword [ebp - 4]
cdq
mov dword [ebp - 8], eax
cmp edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edx
jg 0x415272
jl 0x41526d
cmp dword [ebp - 8], eax
jae 0x415272
mov eax, dword [ebp - 8]
jmp 0x415275
mov eax, dword [ebp - 0x18]
push 0
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x98]
push dword [ebp - 8]
mov eax, dword [eax + 0x314]
cdq
push edx
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.004191f0
mov ecx, dword [esi + 0x30]
add ecx, eax
mov eax, dword [esi + 8]
push ecx
push dword [eax + 8]
call sub.WSOCK32.dll_send
mov ebx, eax
test ebx, ebx
jl 0x4153a2
mov eax, ebx
lea ecx, [esi + 0x28]
cdq
add eax, dword [ecx]
adc edx, dword [ecx + 4]
mov dword [ebp - 8], eax
mov eax, ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov dword [eax], edx
mov dword [eax + 4], ebx
cmp dword [esi + 0x24], ebx
lea eax, [esi + 0x20]
jne 0x4152f2
cmp dword [eax], edx
jne 0x4152f2
mov eax, dword [esi + 0x18]
sub eax, 0x62
cmp eax, 1
sbb eax, eax
add eax, 8
mov dword [esi + 0x48], eax
jmp 0x41538f
mov eax, dword [edi + 0x98]
mov eax, dword [eax + 0x314]
cdq
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004191f0
test edx, edx
jne 0x41538f
test eax, eax
jne 0x41538f
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 0x2c]
lea eax, [esi + 0x28]
mov edx, dword [eax]
lea eax, [esi + 0x20]
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub ecx, dword [ebp - 8]
sbb eax, dword [ebp - 4]
mov edx, dword [edi + 0x98]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0x314]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cdq
mov dword [ebp - 0xc], edx
cmp edx, dword [ebp - 0x14]
jg 0x415366
jl 0x415361
cmp dword [ebp - 0x10], ebx
jae 0x415366
mov eax, dword [ebp - 0x10]
jmp 0x415369
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push dword [ebp - 0x10]
push ecx
mov cl, 0x20
call fcn.004192d0
push eax
push 4
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 8]
mov dword [ecx + 0x20], eax
mov eax, 1
jmp 0x4153a4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4