Function at 0x4551a0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x28]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push str.ExtractPieceOfFile____OffSet_I64d_FileSize_I64u_FileTo_s
call fcn.00456fc0
add esp, 0x18
cmp dword [0x4e8c34], 0
jne 0x455786
cmp dword [ebp + 8], 0
jne 0x45524a
cmp dword [ebp + 0xc], 0
je 0x45524a
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
jmp 0x455250
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xffffffff
jne 0x455273
push 0
push 0
push 0
push 0x4bd998
push 0
call fcn.0040ece0
add esp, 0x14
mov dword [ebp - 0x20], eax
jmp 0x455786
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x10], 0
je 0x4552dc
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4552d5
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4552cc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], ecx
jmp 0x4552d3
mov dword [ebp - 0x10], 0
jmp 0x4552dc
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
je 0x455356
push 2
push 0
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0040dc20
add esp, 0x14
test eax, eax
jne 0x455318
push 0
push 0
push 0
push 0x4bd6d4
push 0
call fcn.0040ece0
add esp, 0x14
mov dword [ebp - 0x10], 0
jmp 0x455356
push 0
push 0
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
adc ecx, dword [ebp - 0x14]
push ecx
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040dc20
add esp, 0x14
test eax, eax
jne 0x455356
push 0
push 0
push 0
push 0x4bd7bc
push 0
call fcn.0040ece0
add esp, 0x14
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x4554c1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x1c], 0
je 0x45537e
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x2c], 0
je 0x4553d7
xor ecx, ecx
mov word [ebp - 0x250], cx
push 0x206
push 0
lea edx, [ebp - 0x24e]
push edx
call fcn.00467d60
add esp, 0xc
mov eax, dword [ebp + 0x28]
push eax
push 0x104
lea ecx, [ebp - 0x250]
push ecx
call fcn.0046a6ad
add esp, 0xc
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x250]
push eax
call fcn.0040d340
add esp, 4
cmp dword [ebp + 0x34], 0
je 0x4553fe
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
jmp 0x45541d
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x455440
push 0
push 0
push 0
push 0x4bd9b0
push 0
call fcn.0040ece0
add esp, 0x14
mov dword [ebp - 0x20], eax
jmp 0x455786
lea eax, [ebp + 0x20]
push eax
push 0
lea ecx, [ebp + 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040dc20
add esp, 0x14
test eax, eax
jne 0x45548d
push 0
push 0
push 0
push str.SetFileSeek64
push 0
call fcn.0040ece0
add esp, 0x14
mov dword [ebp - 0x20], eax
jmp 0x455786
push 2
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040dc20
add esp, 0x14
test eax, eax
jne 0x4554c1
push 0
push 0
push 0
push 0x4bd8a4
push 0
call fcn.0040ece0
add esp, 0x14
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x18]
sub ecx, dword [ebp - 0x40]
mov edx, dword [ebp + 0x1c]
sbb edx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [0x4d0a15]
or eax, dword [0x4d0a19]
jne 0x455506
mov dword [0x4d0a31], 0
mov dword [0x4d0a35], 0
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov ecx, 0x4d09c0
call fcn.00412610
mov eax, dword [0x4d0a31]
add eax, dword [ebp - 0x40]
mov ecx, dword [0x4d0a35]
adc ecx, dword [ebp - 0x3c]
mov dword [0x4d0a31], eax
mov dword [0x4d0a35], ecx
mov edx, dword [0x4d0a35]
push edx
mov eax, dword [0x4d0a31]
push eax
mov ecx, 0x4d09c0
call fcn.00412760
mov dword [ebp - 0x38], 0x100000
mov ecx, dword [ebp - 0x30]
or ecx, dword [ebp - 0x2c]
je 0x455577
mov edx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x260]
ja 0x455577
jb 0x455571
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x264]
jae 0x455577
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
xor ecx, ecx
mov eax, dword [ebp - 0x38]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00466bee
add esp, 4
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x455778
push 4
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00467d60
add esp, 0xc
cmp dword [ebp - 0x1c], 0xffffffff
je 0x455746
cmp dword [0x4e8c34], 0
jne 0x455746
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0x2c], 0
ja 0x4555f6
cmp dword [ebp - 0x30], 0
jbe 0x455706
cmp dword [ebp - 0xc], 0
je 0x455706
cmp dword [0x4e8c34], 0
jne 0x455706
mov edx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
cmp ecx, dword [ebp - 0x2c]
jb 0x45563c
ja 0x455636
mov edx, dword [ebp - 0x26c]
cmp edx, dword [ebp - 0x30]
jbe 0x45563c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4556ff
cmp dword [ebp - 0x24], 0
jbe 0x4556ff
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x30]
sub edx, eax
mov eax, dword [ebp - 0x2c]
sbb eax, ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
push str.ExtractPieceOfFile____BytesWriten_u_BytesRead_u_BytesToCopy_I64u_Result_d
call fcn.00456fc0
add esp, 0x18
cmp dword [ebp - 0xc], 0
je 0x4556fd
cmp dword [ebp - 4], 0
jbe 0x4556fd
mov eax, dword [ebp - 4]
xor ecx, ecx
add eax, dword [0x4d0a31]
mov edx, dword [0x4d0a35]
adc edx, ecx
mov dword [0x4d0a31], eax
mov dword [0x4d0a35], edx
mov eax, dword [0x4d0a35]
push eax
mov ecx, dword [0x4d0a31]
push ecx
mov ecx, 0x4d09c0
call fcn.00412760
jmp 0x455701
jmp 0x455706
jmp 0x4555e6
cmp dword [ebp - 0xc], 0
jne 0x455715
mov dword [ebp - 0x20], 0x17
jmp 0x45572a
mov edx, dword [ebp + 0x28]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45572a
mov dword [ebp - 0x20], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x254]
push eax
push str.ExtractPieceOfFile____Extract_done_in__d_ms
call fcn.00456fc0
add esp, 8
jmp 0x45575e
push 0
push 0
push 0
push 0x4bdae0
push 0
call fcn.0040ece0
add esp, 0x14
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
push ecx
call fcn.0046ad12
add esp, 4
jmp 0x45577f
mov dword [ebp - 0x20], 8
jmp 0x455786
cmp dword [ebp - 0x1c], 0
je 0x455796
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0
jne 0x4557ac
cmp dword [ebp - 8], 0
je 0x4557ac
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4e8c34], 0
je 0x4557bc
mov eax, 0x4c7
jmp 0x4557d0
mov ecx, dword [ebp - 0x20]
push ecx
push str.ExtractPieceOfFile____End__d_
call fcn.004573f0
add esp, 8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x44]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret