Function at 0x45d090
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, 0x23c
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x220], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x210], eax
xor edi, edi
mov eax, dword [ebp + 0x28]
push eax
push dword [ebp + 0x1c]
mov dword [ebp - 0x21c], eax
push dword [ebp + 0x18]
mov dword [ebp - 0x228], ebx
push dword [ebp + 0x14]
mov dword [ebp - 0x22c], ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x234], ebx
push str.ExtractPieceOfFile____OffSet_I64d_FileSize_I64u_FileTo_s
mov dword [ebp - 0x230], ebx
call fcn.0045f4c0
add esp, 0x18
cmp dword [0x4c2e50], ebx
jne 0x45d5cf
mov ecx, dword [ebp - 0x220]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
test ecx, ecx
jne 0x45d13a
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x45d13a
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push eax
call esi
mov dword [ebp - 0x218], eax
jmp 0x45d142
mov eax, ecx
mov dword [ebp - 0x218], ecx
cmp eax, 0xffffffff
jne 0x45d163
push 0
push 0
push 0
push str.CreateFile
push 0
call fcn.0042e900
add esp, 0x14
mov ebx, eax
jmp 0x45d5c9
cmp dword [ebp + 0x30], ebx
mov ebx, dword [ebp - 0x21c]
je 0x45d21e
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push ebx
call esi
mov edi, eax
mov dword [ebp - 0x224], edi
cmp edi, 0xffffffff
je 0x45d21e
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x45d21e
mov ebx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x230]
push 2
push 0
push 0
push 0
push edi
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], edx
call fcn.0042ef10
add esp, 0x14
push 0
push 0
test eax, eax
je 0x45d207
mov ecx, dword [ebp - 0x234]
add ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x230]
adc eax, dword [ebp + 0x14]
push eax
push ecx
push dword [ebp - 0x220]
call fcn.0042ef10
add esp, 0x14
test eax, eax
jne 0x45d364
push eax
push eax
push 0
push 0x48c888
push 0
call fcn.0042e900
mov ebx, dword [ebp - 0x21c]
add esp, 0x14
xorps xmm0, xmm0
movlpd qword [ebp - 0x23c], xmm0
test edi, edi
je 0x45d234
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x2c], 0
je 0x45d286
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046a330
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046befa
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0042c370
add esp, 4
cmp dword [ebp + 0x34], 0
push 0
push 0x80
je 0x45d2ab
push 3
push 0
push 0
push 0x40000000
push ebx
call esi
mov edi, eax
mov dword [ebp - 0x224], edi
jmp 0x45d2c1
push 2
push 0
push 0
push 0x40000000
push ebx
call esi
mov edi, eax
mov dword [ebp - 0x224], eax
cmp edi, 0xffffffff
jne 0x45d2e2
push 0
push 0
push 0
push str.CreateFile
push 0
call fcn.0042e900
add esp, 0x14
mov ebx, eax
jmp 0x45d5c2
lea eax, [ebp + 0x20]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x220]
call fcn.0042ef10
add esp, 0x14
test eax, eax
jne 0x45d324
push eax
push eax
push eax
push str.SetFileSeek64
push eax
call fcn.0042e900
add esp, 0x14
mov ebx, eax
jmp 0x45d5be
push 2
push 0
push 0
push 0
push edi
call fcn.0042ef10
add esp, 0x14
test eax, eax
jne 0x45d34a
push eax
push eax
push eax
push 0x48c888
push eax
call fcn.0042e900
add esp, 0x14
mov eax, dword [ebp - 0x238]
mov ebx, dword [ebp - 0x23c]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], ebx
jmp 0x45d36a
mov eax, dword [ebp - 0x214]
mov edx, dword [ebp + 0x18]
mov esi, edx
mov ecx, dword [ebp + 0x1c]
sub esi, ebx
mov ebx, ecx
sbb ebx, eax
mov eax, dword [0x4a808d]
or eax, dword [0x4a8091]
jne 0x45d39c
push ecx
xorps xmm0, xmm0
mov ecx, 0x4a8038
push edx
movlpd qword [0x4a80a9], xmm0
call fcn.00430290
mov ecx, dword [0x4a80a9]
add ecx, dword [ebp - 0x210]
mov eax, dword [0x4a80ad]
adc eax, dword [ebp - 0x214]
push eax
mov dword [0x4a80a9], ecx
push ecx
mov ecx, 0x4a8038
mov dword [0x4a80ad], eax
call fcn.00430700
mov eax, esi
mov edx, 0x100000
or eax, ebx
mov dword [ebp - 0x214], edx
je 0x45d3ed
test ebx, ebx
ja 0x45d3ed
jb 0x45d3e5
cmp esi, edx
jae 0x45d3ed
mov edx, esi
mov dword [ebp - 0x214], esi
xor ecx, ecx
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00464d8a
add esp, 4
mov dword [ebp - 0x210], eax
test eax, eax
je 0x45d5b9
mov dword [eax], 0
cmp dword [0x4c2e50], 0
jne 0x45d58c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x238], eax
mov edi, 1
test ebx, ebx
jne 0x45d446
test esi, esi
je 0x45d53c
test edi, edi
je 0x45d557
cmp dword [0x4c2e50], 0
jne 0x45d538
xor eax, eax
cmp eax, ebx
jb 0x45d477
ja 0x45d46d
mov eax, dword [ebp - 0x214]
cmp eax, esi
jbe 0x45d47d
mov eax, esi
mov dword [ebp - 0x214], eax
jmp 0x45d47d
mov eax, dword [ebp - 0x214]
push 0
lea ecx, [ebp - 0x228]
push ecx
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
je 0x45d557
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x45d538
push 0
lea ecx, [ebp - 0x22c]
push ecx
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov eax, dword [ebp - 0x228]
sub esi, eax
push edi
sbb ebx, 0
push ebx
push esi
push eax
push dword [ebp - 0x22c]
push str.ExtractPieceOfFile____BytesWriten_u_BytesRead_u_BytesToCopy_I64u_Result_d
call fcn.0045f4c0
add esp, 0x18
test edi, edi
je 0x45d526
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x45d526
mov ecx, dword [0x4a80a9]
add ecx, eax
mov eax, dword [0x4a80ad]
mov dword [0x4a80a9], ecx
adc eax, 0
push eax
push ecx
mov ecx, 0x4a8038
mov dword [0x4a80ad], eax
call fcn.00430700
test ebx, ebx
ja 0x45d446
jb 0x45d538
test esi, esi
jne 0x45d446
test edi, edi
je 0x45d557
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
test eax, eax
mov eax, 2
cmove ebx, eax
jmp 0x45d55c
mov ebx, 0x17
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x238]
push eax
push str.ExtractPieceOfFile____Extract_done_in__d_ms
call fcn.0045f4c0
add esp, 8
push dword [ebp - 0x210]
call fcn.0046d735
mov edi, dword [ebp - 0x224]
add esp, 4
jmp 0x45d5be
push 0
push 0
push 0
push str.CreateFile
push 0
call fcn.0042e900
add esp, 0x14
mov ebx, eax
push dword [ebp - 0x210]
call fcn.0046d735
mov edi, dword [ebp - 0x224]
add esp, 4
jmp 0x45d5be
mov ebx, 8
test edi, edi
je 0x45d5c9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x218]
cmp dword [ebp - 0x220], 0
jne 0x45d5e3
test esi, esi
je 0x45d5e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4c2e50], 0
je 0x45d602
pop edi
pop esi
mov eax, 0x4c7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
push ebx
push str.ExtractPieceOfFile____End__d_
call fcn.0045f820
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046984a
mov esp, ebp
pop ebp
ret