Function at 0x455450
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.00457270
add esp, 0x18
cmp dword [0x4e8c5c], 0
jne 0x455a36
cmp dword [ebp + 8], 0
jne 0x4554fa
cmp dword [ebp + 0xc], 0
je 0x4554fa
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 0x455500
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xffffffff
jne 0x455523
push 0
push 0
push 0
push 0x4bd9d8
push 0
call fcn.0040ece0
add esp, 0x14
mov dword [ebp - 0x20], eax
jmp 0x455a36
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x10], 0
je 0x45558c
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 0x455585
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x45557c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], ecx
jmp 0x455583
mov dword [ebp - 0x10], 0
jmp 0x45558c
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
je 0x455606
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 0x4555c8
push 0
push 0
push 0
push 0x4bd85c
push 0
call fcn.0040ece0
add esp, 0x14
mov dword [ebp - 0x10], 0
jmp 0x455606
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 0x455606
push 0
push 0
push 0
push 0x4bd8e4
push 0
call fcn.0040ece0
add esp, 0x14
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x455771
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x1c], 0
je 0x45562e
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x2c], 0
je 0x455687
xor ecx, ecx
mov word [ebp - 0x250], cx
push 0x206
push 0
lea edx, [ebp - 0x24e]
push edx
call fcn.00468010
add esp, 0xc
mov eax, dword [ebp + 0x28]
push eax
push 0x104
lea ecx, [ebp - 0x250]
push ecx
call fcn.0046a95d
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 0x4556ae
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 0x4556cd
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 0x4556f0
push 0
push 0
push 0
push 0x4bd9f0
push 0
call fcn.0040ece0
add esp, 0x14
mov dword [ebp - 0x20], eax
jmp 0x455a36
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 0x45573d
push 0
push 0
push 0
push str.SetFileSeek64
push 0
call fcn.0040ece0
add esp, 0x14
mov dword [ebp - 0x20], eax
jmp 0x455a36
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 0x455771
push 0
push 0
push 0
push 0x4bda24
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 0x4557b6
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 0x455827
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 0x455827
jb 0x455821
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x264]
jae 0x455827
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.00466e9e
add esp, 4
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x455a28
push 4
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00468010
add esp, 0xc
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4559f6
cmp dword [0x4e8c5c], 0
jne 0x4559f6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0x2c], 0
ja 0x4558a6
cmp dword [ebp - 0x30], 0
jbe 0x4559b6
cmp dword [ebp - 0xc], 0
je 0x4559b6
cmp dword [0x4e8c5c], 0
jne 0x4559b6
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 0x4558ec
ja 0x4558e6
mov edx, dword [ebp - 0x26c]
cmp edx, dword [ebp - 0x30]
jbe 0x4558ec
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 0x4559af
cmp dword [ebp - 0x24], 0
jbe 0x4559af
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.00457270
add esp, 0x18
cmp dword [ebp - 0xc], 0
je 0x4559ad
cmp dword [ebp - 4], 0
jbe 0x4559ad
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 0x4559b1
jmp 0x4559b6
jmp 0x455896
cmp dword [ebp - 0xc], 0
jne 0x4559c5
mov dword [ebp - 0x20], 0x17
jmp 0x4559da
mov edx, dword [ebp + 0x28]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4559da
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.00457270
add esp, 8
jmp 0x455a0e
push 0
push 0
push 0
push 0x4bdb60
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.0046afc2
add esp, 4
jmp 0x455a2f
mov dword [ebp - 0x20], 8
jmp 0x455a36
cmp dword [ebp - 0x1c], 0
je 0x455a46
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0
jne 0x455a5c
cmp dword [ebp - 8], 0
je 0x455a5c
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4e8c5c], 0
je 0x455a6c
mov eax, 0x4c7
jmp 0x455a80
mov ecx, dword [ebp - 0x20]
push ecx
push str.ExtractPieceOfFile____End__d_
call fcn.004576a0
add esp, 8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x44]
xor ecx, ebp
call fcn.00467fff
mov esp, ebp
pop ebp
ret