Function at 0x405880
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x2a8
push ebx
push ebp
push esi
push edi
push 2
call fcn.004052f0
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 4
mov ebx, eax
mov eax, dword [0x419680]
push 0x3fc
push eax
call esi
push 0
push 0
push 0x464
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x419680]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
push str.Updating_resource.__Files_remaining:
lea edx, [esp + 0xc0]
push str._s__lu
push edx
call fcn.004080ec
mov eax, dword [0x419680]
add esp, 0x10
push 0x3ed
push eax
call esi
mov ebp, dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [esp + 0xb8]
push ecx
push eax
call ebp
mov edx, dword [0x419680]
push 0x3fa
push edx
call esi
push 0x6b
mov edi, eax
push 0
push 0x464
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x40593e
push 0xffff0000
push 0xffffffffffffffff
push 0x465
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x419680]
push 0x3f3
push 0x64
push 0x3f2
push eax
call fcn.00407760
mov ecx, dword [0x419680]
push 0x3f5
push 0x64
push 0x3f4
push ecx
call fcn.00407760
mov edx, dword [0x419680]
add esp, 0x20
xor eax, eax
push 0x3f6
push edx
mov dword [0x419e90], eax
mov dword [0x419e94], eax
mov dword [0x419e98], eax
mov dword [0x419e9c], eax
call esi
mov dword [esp + 0x14], eax
push str.Bytes_remaining_on_this_file:
lea eax, [esp + 0xbc]
push str._s_0
push eax
call fcn.004080ec
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0xb8]
push ecx
push edx
call ebp
mov eax, dword [0x419680]
push 0x3f8
push eax
call esi
push str.minute_s_
push str.Estimated_time_left:
lea ecx, [esp + 0xc0]
push str._s__t0__s
push ecx
mov dword [esp + 0x24], eax
call fcn.004080ec
mov eax, dword [esp + 0x24]
add esp, 0x10
lea edx, [esp + 0xb8]
push edx
push eax
call ebp
mov ecx, dword [0x419680]
push 0x3f7
push ecx
call esi
push str.Bytes_total_remaining:
lea edx, [esp + 0xbc]
push str._s__t_t0
push edx
mov dword [esp + 0x20], eax
call fcn.004080ec
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0xb8]
push eax
push ecx
call ebp
mov eax, dword [0x419edc]
test eax, eax
je 0x405b3c
push 0x419a08
push 0x419a88
lea edx, [esp + 0xc0]
push str._s__s__COMPACT
push edx
call fcn.004080ec
add esp, 0x10
lea eax, [esp + 0x38]
push eax
call fcn.0040814b
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
push 0x416008
push 0x415118
call esi
lea ecx, [esp + 0x38]
push ecx
call fcn.00402cb0
add esp, 4
test eax, eax
je 0x405abd
lea edx, [esp + 0x38]
push edx
call fcn.0040814b
push eax
push 0x416008
push 0x415118
call esi
lea eax, [esp + 0x38]
push eax
call fcn.00402cb0
add esp, 4
test eax, eax
jne 0x405a95
lea ecx, [esp + 0x38]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0xc0]
push 1
push eax
call fcn.00402420
add esp, 0x10
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x405aff
push str.ERROR:_Could_not_execute_PACK.EXE.
call fcn.00405ef0
add esp, 4
jmp 0x405e3d
test eax, eax
je 0x405e3d
lea edx, [esp + 0xb8]
push edx
push eax
push str.ERROR:_PACK_returned_error_code
lea eax, [esp + 0x1c4]
push str._s__d.___s_
push eax
call fcn.004080ec
lea ecx, [esp + 0x1cc]
push ecx
call fcn.00405ef0
add esp, 0x18
jmp 0x405e3d
mov edi, dword [0x419ef0]
test edi, edi
je 0x405cec
mov eax, dword [0x419eb4]
test eax, eax
jne 0x405e58
push 1
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x405b9b
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x405b6e
cmp dword [edi + 0x88], 2
jne 0x405cde
mov eax, ebx
dec ebx
push eax
push str.Updating_resource.__Files_remaining:
lea eax, [esp + 0xc0]
push str._s__lu
push eax
call fcn.004080ec
mov ecx, dword [0x419680]
add esp, 0x10
push 0x3ed
push ecx
call esi
lea edx, [esp + 0xb8]
push edx
push eax
call ebp
push edi
push 0x419a08
push 0x419a88
lea eax, [esp + 0xc4]
push str._s__s__s__ENCODE
push eax
call fcn.004080ec
add esp, 0x14
lea ecx, [esp + 0x38]
push ecx
call fcn.0040814b
push eax
push 0x416008
push 0x415118
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edx, [esp + 0x38]
push edx
call fcn.00402cb0
add esp, 4
test eax, eax
je 0x405c57
lea eax, [esp + 0x38]
push eax
call fcn.0040814b
push eax
push 0x416008
push 0x415118
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x38]
push ecx
call fcn.00402cb0
add esp, 4
test eax, eax
jne 0x405c2b
lea edx, [esp + 0x38]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0xc0]
push 1
push ecx
call fcn.00402420
add esp, 0x10
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x405ca1
push str.ERROR:_Could_not_execute_PACK.EXE.
call fcn.00405ef0
add esp, 4
jmp 0x405cde
test eax, eax
je 0x405cd7
lea ecx, [esp + 0xb8]
lea edx, [esp + 0x1b8]
push ecx
push eax
push str.ERROR:_PACK_returned_error_code
push str._s__d.___s_
push edx
call fcn.004080ec
lea eax, [esp + 0x1cc]
push eax
call fcn.00405ef0
add esp, 0x18
jmp 0x405cde
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [edi + 0x90]
test edi, edi
jne 0x405b4a
mov eax, dword [0x419ed8]
test eax, eax
je 0x405e39
mov ecx, dword [0x419680]
push 0x3ed
push ecx
call esi
push str.Optimizing_resource._This_can_take_several_minutes._Please_wait.
push eax
call ebp
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
call esi
test eax, eax
je 0x405d51
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
call esi
test eax, eax
jne 0x405d28
push 0x419a08
push 0x419a88
lea eax, [esp + 0xc0]
push str._s__s__COMPACT
push eax
call fcn.004080ec
add esp, 0x10
lea ecx, [esp + 0x38]
push ecx
call fcn.0040814b
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
push 0x416008
push 0x415118
call esi
lea edx, [esp + 0x38]
push edx
call fcn.00402cb0
add esp, 4
test eax, eax
je 0x405dc6
lea eax, [esp + 0x38]
push eax
call fcn.0040814b
push eax
push 0x416008
push 0x415118
call esi
lea ecx, [esp + 0x38]
push ecx
call fcn.00402cb0
add esp, 4
test eax, eax
jne 0x405d9e
lea edx, [esp + 0x38]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0xc0]
push 1
push ecx
call fcn.00402420
add esp, 0x10
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x405e05
push str.ERROR:_Could_not_execute_PACK.EXE.
call fcn.00405ef0
add esp, 4
jmp 0x405e39
test eax, eax
je 0x405e39
lea ecx, [esp + 0xb8]
lea edx, [esp + 0x1b8]
push ecx
push eax
push str.ERROR:_PACK_returned_error_code
push str._s__d.___s_
push edx
call fcn.004080ec
lea eax, [esp + 0x1cc]
push eax
call fcn.00405ef0
add esp, 0x18
mov edi, dword [esp + 0x18]
push 0
push 0
push 0x464
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a8
ret