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

Disassembly:
sub esp, 0x2c8
push ebx
push ebp
push esi
push edi
push 2
call fcn.00405340
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 4
mov ebx, eax
mov eax, dword [0x41b200]
push 0x3fc
push eax
call esi
push 0
push 0
push 0x464
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x41b200]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
push str.Updating_resource.__Files_remaining:
lea edx, [esp + 0xe0]
push str._s__lu
push edx
call fcn.00408948
mov eax, dword [0x41b200]
add esp, 0x10
push 0x3ed
push eax
call esi
mov ebp, dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [esp + 0xd8]
push ecx
push eax
call ebp
mov edx, dword [0x41b200]
push 0x3fa
push edx
call esi
push 0x6b
push 0
mov edi, eax
push 0x464
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x405afe
push 0xffff0000
push 0xffffffffffffffff
push 0x465
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x41b200]
push 0x3f3
push 0x64
push 0x3f2
push eax
call fcn.00406e80
mov ecx, dword [0x41b200]
push 0x3f5
push 0x64
push 0x3f4
push ecx
call fcn.00406e80
mov edx, dword [0x41b200]
add esp, 0x20
xor eax, eax
push 0x3f6
push edx
mov dword [0x41ba10], eax
mov dword [0x41ba14], eax
mov dword [0x41ba18], eax
mov dword [0x41ba1c], eax
call esi
push str.Bytes_remaining_on_this_file:
mov dword [esp + 0x14], eax
lea eax, [esp + 0xdc]
push 0x414394
push eax
call fcn.00408948
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0xd8]
push ecx
push edx
call ebp
mov eax, dword [0x41b200]
push 0x3f8
push eax
call esi
push str.minute_s_
push 0x418338
lea ecx, [esp + 0xe0]
push str._s__t0__s
push ecx
mov dword [esp + 0x20], eax
call fcn.00408948
mov eax, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0xd8]
push edx
push eax
call ebp
mov ecx, dword [0x41b200]
push 0x3f7
push ecx
call esi
push str.Bytes_total_remaining:
lea edx, [esp + 0xdc]
push str._s__t_t0
push edx
mov dword [esp + 0x1c], eax
call fcn.00408948
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0xd8]
push eax
push ecx
call ebp
mov eax, dword [0x41ba5c]
test eax, eax
je 0x405cfc
push 0x41b588
push 0x41b608
lea edx, [esp + 0xe0]
push str._s__s__COMPACT
push edx
call fcn.00408948
lea eax, [esp + 0x68]
add esp, 0x10
push eax
call fcn.004089ad
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
push 0x41436c
push 0x4142f4
call esi
lea ecx, [esp + 0x58]
push ecx
call fcn.004051b0
add esp, 4
test eax, eax
je 0x405c7d
lea edx, [esp + 0x58]
push edx
call fcn.004089ad
push eax
push 0x41436c
push 0x4142f4
call esi
lea eax, [esp + 0x58]
push eax
call fcn.004051b0
add esp, 4
test eax, eax
jne 0x405c55
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xe0]
push 1
push eax
call fcn.004048e0
add esp, 0x10
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x405cbf
push str.ERROR:_Could_not_execute_PACK.EXE.
call fcn.004060a0
add esp, 4
jmp 0x405f85
test eax, eax
je 0x405f85
lea edx, [esp + 0xd8]
push edx
push eax
push str.ERROR:_PACK_returned_error_code
lea eax, [esp + 0x1e4]
push str._s__d.___s_
push eax
call fcn.00408948
lea ecx, [esp + 0x1ec]
push ecx
call fcn.004060a0
add esp, 0x18
jmp 0x405f85
mov edx, dword [0x41ba70]
xor eax, eax
mov ecx, 8
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
xor edi, edi
test edx, edx
mov dword [esp + 0x10], edx
je 0x405e33
lea ecx, [ecx]
mov eax, dword [0x41ba34]
test eax, eax
jne 0x405fa0
push 1
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x405d71
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
push 0
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x405d44
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x88], 2
jne 0x405dd8
push ebx
push str.Updating_resource.__Files_remaining:
lea ecx, [esp + 0xe0]
push str._s__lu
push ecx
call fcn.00408948
mov edx, dword [0x41b200]
add esp, 0x10
push 0x3ed
push edx
call esi
lea ecx, [esp + 0xd8]
push ecx
push eax
call ebp
cmp edi, 8
je 0x405dc5
mov edx, dword [esp + 0x10]
mov dword [esp + edi*4 + 0x38], edx
inc edi
cmp edi, 8
jne 0x405dd8
lea eax, [esp + 0x38]
push edi
push eax
sub ebx, 8
call fcn.00405870
add esp, 8
xor edi, edi
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x90]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x405d20
test edi, edi
je 0x405e33
lea edx, [esp + 0x38]
push edi
push edx
call fcn.00405870
sub ebx, edi
push ebx
push str.Updating_resource.__Files_remaining:
lea eax, [esp + 0xe8]
push str._s__lu
push eax
call fcn.00408948
mov ecx, dword [0x41b200]
add esp, 0x18
push 0x3ed
push ecx
call esi
lea edx, [esp + 0xd8]
push edx
push eax
call ebp
mov eax, dword [0x41ba58]
test eax, eax
je 0x405f81
mov eax, dword [0x41b200]
push 0x3ed
push eax
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
push 0
lea ecx, [esp + 0x2c]
push ecx
call esi
test eax, eax
je 0x405e99
mov edi, edi
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
call esi
test eax, eax
jne 0x405e70
push 0x41b588
push 0x41b608
lea edx, [esp + 0xe0]
push str._s__s__COMPACT
push edx
call fcn.00408948
lea eax, [esp + 0x68]
add esp, 0x10
push eax
call fcn.004089ad
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
push 0x414368
push 0x4142f4
call esi
lea ecx, [esp + 0x58]
push ecx
call fcn.004051b0
add esp, 4
test eax, eax
je 0x405f0e
lea edx, [esp + 0x58]
push edx
call fcn.004089ad
push eax
push 0x414368
push 0x4142f4
call esi
lea eax, [esp + 0x58]
push eax
call fcn.004051b0
add esp, 4
test eax, eax
jne 0x405ee6
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xe0]
push 1
push eax
call fcn.004048e0
add esp, 0x10
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x405f4d
push str.ERROR:_Could_not_execute_PACK.EXE.
call fcn.004060a0
add esp, 4
jmp 0x405f81
test eax, eax
je 0x405f81
lea edx, [esp + 0xd8]
push edx
push eax
push str.ERROR:_PACK_returned_error_code
lea eax, [esp + 0x1e4]
push str._s__d.___s_
push eax
call fcn.00408948
lea ecx, [esp + 0x1ec]
push ecx
call fcn.004060a0
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, 0x2c8
ret