Function at 0x4670a0
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 [0x4b06f0]
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.004699e0
add esp, 0x18
cmp dword [0x4b6534], ebx
jne 0x4675eb
mov ecx, dword [ebp - 0x220]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
test ecx, ecx
jne 0x46714a
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x46714a
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push eax
call esi
mov dword [ebp - 0x218], eax
jmp 0x467152
mov eax, ecx
mov dword [ebp - 0x218], ecx
cmp eax, 0xffffffff
jne 0x467175
push 0
push 0
push 0
push 0
push str.CreateFile
push 0
call fcn.0043fba0
add esp, 0x18
mov ebx, eax
jmp 0x4675e5
cmp dword [ebp + 0x30], ebx
mov ebx, dword [ebp - 0x21c]
je 0x467232
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 0x467232
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x467232
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.00440230
add esp, 0x14
push 0
push 0
test eax, eax
je 0x467219
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.00440230
add esp, 0x14
test eax, eax
jne 0x46737c
push eax
push eax
push 0
push 0
push 0x496ea4
push 0
call fcn.0043fba0
mov ebx, dword [ebp - 0x21c]
add esp, 0x18
xorps xmm0, xmm0
movlpd qword [ebp - 0x23c], xmm0
test edi, edi
je 0x467248
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x2c], 0
je 0x46729a
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046fe20
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00470452
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0043b210
add esp, 4
cmp dword [ebp + 0x34], 0
push 0
push 0x80
je 0x4672bf
push 3
push 0
push 0
push 0x40000000
push ebx
call esi
mov edi, eax
mov dword [ebp - 0x224], edi
jmp 0x4672d5
push 2
push 0
push 0
push 0x40000000
push ebx
call esi
mov edi, eax
mov dword [ebp - 0x224], eax
cmp edi, 0xffffffff
jne 0x4672f8
push 0
push 0
push 0
push 0
push str.CreateFile
push 0
call fcn.0043fba0
add esp, 0x18
mov ebx, eax
jmp 0x4675de
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.00440230
add esp, 0x14
test eax, eax
jne 0x46733b
push eax
push eax
push eax
push eax
push str.SetFileSeek64
push eax
call fcn.0043fba0
add esp, 0x18
mov ebx, eax
jmp 0x4675da
push 2
push 0
push 0
push 0
push edi
call fcn.00440230
add esp, 0x14
test eax, eax
jne 0x467362
push eax
push eax
push eax
push eax
push 0x496ea4
push eax
call fcn.0043fba0
add esp, 0x18
mov eax, dword [ebp - 0x238]
mov ebx, dword [ebp - 0x23c]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], ebx
jmp 0x467382
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 [0x4b0065]
or eax, dword [0x4b0069]
jne 0x4673b4
push ecx
xorps xmm0, xmm0
mov ecx, 0x4b0010
push edx
movlpd qword [0x4b0081], xmm0
call fcn.00428f60
mov ecx, dword [0x4b0081]
add ecx, dword [ebp - 0x210]
mov eax, dword [0x4b0085]
adc eax, dword [ebp - 0x214]
push eax
mov dword [0x4b0081], ecx
push ecx
mov ecx, 0x4b0010
mov dword [0x4b0085], eax
call fcn.004293d0
mov eax, esi
mov edx, 0x100000
or eax, ebx
mov dword [ebp - 0x214], edx
je 0x467405
test ebx, ebx
ja 0x467405
jb 0x4673fd
cmp esi, edx
jae 0x467405
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.0046a792
add esp, 4
mov dword [ebp - 0x210], eax
test eax, eax
je 0x4675d5
mov dword [eax], 0
cmp dword [0x4b6534], 0
jne 0x4675a6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x238], eax
mov edi, 1
test ebx, ebx
jne 0x467460
test esi, esi
je 0x467556
mov edi, edi
test edi, edi
je 0x467571
cmp dword [0x4b6534], 0
jne 0x467552
xor eax, eax
cmp eax, ebx
jb 0x467491
ja 0x467487
mov eax, dword [ebp - 0x214]
cmp eax, esi
jbe 0x467497
mov eax, esi
mov dword [ebp - 0x214], eax
jmp 0x467497
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 0x467571
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x467552
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.004699e0
add esp, 0x18
test edi, edi
je 0x467540
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x467540
mov ecx, dword [0x4b0081]
add ecx, eax
mov eax, dword [0x4b0085]
mov dword [0x4b0081], ecx
adc eax, 0
push eax
push ecx
mov ecx, 0x4b0010
mov dword [0x4b0085], eax
call fcn.004293d0
test ebx, ebx
ja 0x467460
jb 0x467552
test esi, esi
jne 0x467460
test edi, edi
je 0x467571
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 0x467576
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.004699e0
add esp, 8
push dword [ebp - 0x210]
call fcn.00471314
mov edi, dword [ebp - 0x224]
add esp, 4
jmp 0x4675da
push 0
push 0
push 0
push 0
push str.CreateFile
push 0
call fcn.0043fba0
add esp, 0x18
mov ebx, eax
push dword [ebp - 0x210]
call fcn.00471314
mov edi, dword [ebp - 0x224]
add esp, 4
jmp 0x4675da
mov ebx, 8
test edi, edi
je 0x4675e5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x218]
cmp dword [ebp - 0x220], 0
jne 0x4675ff
test esi, esi
je 0x4675ff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4b6534], 0
je 0x46761e
pop edi
pop esi
mov eax, 0x4c7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
push ebx
push str.ExtractPieceOfFile____End__d_
call fcn.00469d40
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046f33a
mov esp, ebp
pop ebp
ret