Function at 0x418d10
Capabilities:
Get file size
Read and send data from client to server
Read file on windows
Send data

Disassembly:
push 0xffffffffffffffff
push 0x487888
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504a70]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebp, dword [esp + 0x40]
mov ecx, dword [ebp + 4]
mov esi, dword [ecx + 0x28]
mov ebx, eax
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 5
push 0x2000
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], edx
call fcn.004698a3
mov dword [esp + 0x18], eax
xor edx, edx
mov eax, ebx
div esi
xor edx, edx
mov ecx, dword [ebp]
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
div esi
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x418dc4
mov edx, dword [esp + 0x50]
mov edx, dword [edx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
push esi
push dword [esp + 0x20]
push dword [esp + 0x5c]
push edx
push dword [esp + 0x28]
push ebx
push edi
push dword [esp + 0x64]
call eax
jmp 0x418dc4
mov ebp, dword [esp + 0x40]
mov ecx, dword [ebp]
test ecx, ecx
je 0x418dda
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
test al, al
jne 0x418eb4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
push 0
lea ecx, [esp + 0x28]
push ecx
push 0x2000
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x418ecb
mov eax, dword [esp + 0x24]
test eax, eax
je 0x418f7a
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x28]
push ecx
push eax
push ebp
push edx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x418fc0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
add dword [ecx], eax
add edi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov ebp, edx
shr ebp, 5
cmp ebp, dword [esp + 0x20]
je 0x418dc0
xor edx, edx
mov ecx, ebp
sub ecx, dword [esp + 0x2c]
mov eax, edi
div ecx
xor edx, edx
mov esi, eax
mov eax, ebx
sub eax, edi
div esi
mov edx, dword [esp + 0x50]
mov ecx, dword [edx]
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
sub eax, ecx
div esi
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx]
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x418eab
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
push esi
push eax
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x5c]
push ebx
push edi
push eax
call edx
mov dword [esp + 0x20], ebp
jmp 0x418dc0
mov eax, dword [esp + 0x14]
push eax
call fcn.004695c4
add esp, 4
mov eax, 0x80040301
jmp 0x418fe5
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004695c4
add esp, 4
call fcn.0045e8af
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x418ef2
push 0x80004005
call fcn.00401440
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x54], eax
mov dword [esp + 0x38], 0
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
call esi
push eax
lea ecx, [esp + 0x5c]
push str.ReadFile_failed__error___d__0x_x__n
push ecx
call fcn.00405230
mov edi, dword [esp + 0x64]
add esp, 0x10
push 0
push 0x10
push edi
call fcn.0045dce2
call esi
test eax, eax
jg 0x418f42
call esi
mov esi, eax
jmp 0x418f52
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
lea eax, [edi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418f76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x418fe5
mov ecx, dword [ebp + 4]
mov dword [ecx + 0x28], esi
mov ebp, dword [ebp]
test ebp, ebp
je 0x418faf
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x54]
mov edx, dword [ebp]
mov edx, dword [edx + 0x2c]
push esi
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x58]
push eax
push ebx
push ebx
push ecx
mov ecx, ebp
call edx
mov eax, dword [esp + 0x14]
push eax
call fcn.004695c4
add esp, 4
xor eax, eax
jmp 0x418fe5
push ebp
call fcn.004695c4
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
add esp, 4
call esi
test eax, eax
jg 0x418fd9
call esi
jmp 0x418fe5
call esi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x18