Function at 0x4072c0
Capabilities:
Delete file
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x80
push 3
push edi
push 1
push bind
push 0x42a7d8
mov dword [esp + 0x38], edi
call esi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40730d
push edi
push str.Error
push str.Cant_open_pack_file.
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
push 0x80
push 0x432df0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push 0x432df0
call esi
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
jne 0x407361
push edi
push str.Error
push str.Cant_create_temporary_file.
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], edi
cmp eax, edi
jle 0x40743b
fild dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
fstp qword [esp + 0x20]
fild dword [esp + 0x14]
push 0
fmul qword [0x40f258]
fdiv qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
push eax
mov eax, dword [0x42a6d0]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [ebx + 0x18]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
test edi, edi
push 0
je 0x40747f
mov ecx, dword [ebx]
push 0
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
push 0
jl 0x407493
lea edx, [esp + 0x14]
push edx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
push 0
cmp eax, esi
jne 0x40749f
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], esi
jne 0x4074ab
mov eax, dword [esp + 0x1c]
push edi
mov dword [ebx], eax
add eax, esi
mov dword [esp + 0x20], eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
add esp, 4
inc eax
add ebx, 0x1c
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40737d
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
push esi
call edi
push 0x80
push 0x42a7d8
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x42a7d8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x42a7d8
push 0x432df0
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret
push str.Error
push str.Cant_create_the_buffer.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4074cc
push str.Error
push str.Seek_error_on_pack_file.
jmp 0x4074b7
push str.Error
push str.Cant_read_from_the_pack_file.
jmp 0x4074b7
push 0
push str.Error
push str.Cant_write_to_the_temporary_file.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test edi, edi
je 0x4074cc
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
push 0x432df0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret