Function at 0x454be0
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 [0x4cd724]
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.00456a00
add esp, 0x18
cmp dword [0x4e7810], 0
jne 0x4551c6
cmp dword [ebp + 8], 0
jne 0x454c8a
cmp dword [ebp + 0xc], 0
je 0x454c8a
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 0x454c90
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xffffffff
jne 0x454cb3
push 0
push 0
push 0
push 0x4bc748
push 0
call fcn.0040ec80
add esp, 0x14
mov dword [ebp - 0x20], eax
jmp 0x4551c6
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x10], 0
je 0x454d1c
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 0x454d15
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x454d0c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], ecx
jmp 0x454d13
mov dword [ebp - 0x10], 0
jmp 0x454d1c
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
je 0x454d96
push 2
push 0
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0040dbc0
add esp, 0x14
test eax, eax
jne 0x454d58
push 0
push 0
push 0
push 0x4bc484
push 0
call fcn.0040ec80
add esp, 0x14
mov dword [ebp - 0x10], 0
jmp 0x454d96
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.0040dbc0
add esp, 0x14
test eax, eax
jne 0x454d96
push 0
push 0
push 0
push 0x4bc56c
push 0
call fcn.0040ec80
add esp, 0x14
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x454f01
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x1c], 0
je 0x454dbe
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x2c], 0
je 0x454e17
xor ecx, ecx
mov word [ebp - 0x250], cx
push 0x206
push 0
lea edx, [ebp - 0x24e]
push edx
call fcn.004677c0
add esp, 0xc
mov eax, dword [ebp + 0x28]
push eax
push 0x104
lea ecx, [ebp - 0x250]
push ecx
call fcn.0046a10d
add esp, 0xc
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x250]
push eax
call fcn.0040d2e0
add esp, 4
cmp dword [ebp + 0x34], 0
je 0x454e3e
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 0x454e5d
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 0x454e80
push 0
push 0
push 0
push 0x4bc760
push 0
call fcn.0040ec80
add esp, 0x14
mov dword [ebp - 0x20], eax
jmp 0x4551c6
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.0040dbc0
add esp, 0x14
test eax, eax
jne 0x454ecd
push 0
push 0
push 0
push str.SetFileSeek64
push 0
call fcn.0040ec80
add esp, 0x14
mov dword [ebp - 0x20], eax
jmp 0x4551c6
push 2
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040dbc0
add esp, 0x14
test eax, eax
jne 0x454f01
push 0
push 0
push 0
push 0x4bc654
push 0
call fcn.0040ec80
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 [0x4cfa15]
or eax, dword [0x4cfa19]
jne 0x454f46
mov dword [0x4cfa31], 0
mov dword [0x4cfa35], 0
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov ecx, 0x4cf9c0
call fcn.004125a0
mov eax, dword [0x4cfa31]
add eax, dword [ebp - 0x40]
mov ecx, dword [0x4cfa35]
adc ecx, dword [ebp - 0x3c]
mov dword [0x4cfa31], eax
mov dword [0x4cfa35], ecx
mov edx, dword [0x4cfa35]
push edx
mov eax, dword [0x4cfa31]
push eax
mov ecx, 0x4cf9c0
call fcn.004126f0
mov dword [ebp - 0x38], 0x100000
mov ecx, dword [ebp - 0x30]
or ecx, dword [ebp - 0x2c]
je 0x454fb7
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 0x454fb7
jb 0x454fb1
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x264]
jae 0x454fb7
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.0046664e
add esp, 4
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4551b8
push 4
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004677c0
add esp, 0xc
cmp dword [ebp - 0x1c], 0xffffffff
je 0x455186
cmp dword [0x4e7810], 0
jne 0x455186
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0x2c], 0
ja 0x455036
cmp dword [ebp - 0x30], 0
jbe 0x455146
cmp dword [ebp - 0xc], 0
je 0x455146
cmp dword [0x4e7810], 0
jne 0x455146
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 0x45507c
ja 0x455076
mov edx, dword [ebp - 0x26c]
cmp edx, dword [ebp - 0x30]
jbe 0x45507c
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 0x45513f
cmp dword [ebp - 0x24], 0
jbe 0x45513f
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.00456a00
add esp, 0x18
cmp dword [ebp - 0xc], 0
je 0x45513d
cmp dword [ebp - 4], 0
jbe 0x45513d
mov eax, dword [ebp - 4]
xor ecx, ecx
add eax, dword [0x4cfa31]
mov edx, dword [0x4cfa35]
adc edx, ecx
mov dword [0x4cfa31], eax
mov dword [0x4cfa35], edx
mov eax, dword [0x4cfa35]
push eax
mov ecx, dword [0x4cfa31]
push ecx
mov ecx, 0x4cf9c0
call fcn.004126f0
jmp 0x455141
jmp 0x455146
jmp 0x455026
cmp dword [ebp - 0xc], 0
jne 0x455155
mov dword [ebp - 0x20], 0x17
jmp 0x45516a
mov edx, dword [ebp + 0x28]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45516a
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.00456a00
add esp, 8
jmp 0x45519e
push 0
push 0
push 0
push 0x4bc890
push 0
call fcn.0040ec80
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.0046a772
add esp, 4
jmp 0x4551bf
mov dword [ebp - 0x20], 8
jmp 0x4551c6
cmp dword [ebp - 0x1c], 0
je 0x4551d6
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0
jne 0x4551ec
cmp dword [ebp - 8], 0
je 0x4551ec
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4e7810], 0
je 0x4551fc
mov eax, 0x4c7
jmp 0x455210
mov ecx, dword [ebp - 0x20]
push ecx
push str.ExtractPieceOfFile____End__d_
call fcn.00456e30
add esp, 8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x44]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret