Function at 0x454760
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d33e6
push eax
mov dword fs:[0], esp
sub esp, 0x398
push ebx
mov ebx, dword [esp + 0x3b8]
push ebp
xor ebp, ebp
mov eax, dword [ebx + 8]
push esi
cmp eax, ebp
push edi
jle 0x454796
mov eax, dword [ebx + 4]
mov eax, dword [eax]
jmp 0x454798
xor eax, eax
lea ecx, [esp + 0x198]
push ecx
push eax
call fcn.004544c0
mov esi, dword [esp + 0x3c4]
mov edi, dword [esp + 0x3c0]
add esp, 8
lea edx, [esp + 0x198]
mov dword [esp + 0x29c], eax
mov dword [esp + 0x2a4], ebx
push edx
push 0x453a20
push esi
push pe_nt_image_headers32
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x454e35
push ebp
push 0x1f4
push esi
push edi
lea ecx, [esp + 0x4c]
call fcn.00473c00
push 0x7f02
push ebp
mov dword [esp + 0x3b8], ebp
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c8]
xor edi, edi
mov dword [esp + 0x30], ebp
mov dword [eax + 0x10], 1
mov eax, dword [ebx + 8]
cmp eax, ebp
mov dword [esp + 0x38], edi
jle 0x454997
mov esi, dword [esp + 0x3c8]
mov ecx, dword [esp + 0x30]
lea ebp, [edi + ecx]
mov eax, dword [esp + 0x2a4]
cmp edi, dword [eax + 8]
jge 0x45485d
test edi, edi
jl 0x45485d
mov edx, dword [eax + 4]
mov eax, dword [edx + edi*4]
jmp 0x45485f
xor eax, eax
mov edx, dword [esp + 0x2a0]
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x2a0]
push edx
lea edx, [ecx + ebp]
lea ecx, [esp + 0x1a0]
push edx
push ecx
push eax
call fcn.004545a0
lea edx, [esp + 0xa8]
push 0
push edx
call fcn.004a8e56
add esp, 0x1c
test eax, eax
jne 0x4548f1
mov eax, dword [ebx + 8]
xor esi, esi
test eax, eax
jle 0x4548d4
cmp esi, eax
jge 0x4548b7
test esi, esi
jl 0x4548b7
mov eax, dword [ebx + 4]
mov eax, dword [eax + esi*4]
jmp 0x4548b9
xor eax, eax
lea ecx, [esp + 0x94]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4548ea
mov eax, dword [ebx + 8]
inc esi
cmp esi, eax
jl 0x4548ab
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x3c8]
inc ecx
inc ebp
mov dword [esp + 0x30], ecx
jmp 0x454845
mov esi, dword [esp + 0x3c8]
lea edx, [esp + 0x94]
push edx
call fcn.00470f80
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [esp + 0x2c], ecx
je 0x454987
mov eax, dword [esi + 0xc]
mov ebp, dword [esi + 8]
lea edx, [eax + 1]
cmp ebp, edx
jne 0x454977
mov esi, dword [esp + 0x3c8]
add eax, dword [esi + 0x14]
lea eax, [eax*4 + 4]
push eax
call fcn.004bd49b
mov ecx, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov ebp, eax
lea ecx, [ecx*4 + 4]
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x3cc]
mov eax, dword [esi + 4]
push eax
call fcn.004bd4c4
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x40]
add esp, 8
add ecx, eax
mov dword [esi + 4], ebp
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
mov dword [eax + edx*4], ecx
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
mov eax, dword [ebx + 8]
inc edi
cmp edi, eax
mov dword [esp + 0x38], edi
jl 0x45483e
mov esi, dword [esp + 0x3c4]
mov ecx, dword [esp + 0x3b8]
lea edx, [esp + 0x6c]
mov eax, dword [esi + 8]
push eax
push 0xa8
push ecx
push edx
call fcn.00472a10
add esp, 0x10
lea ecx, [esp + 0x3c]
push 0xda
call fcn.00473e80
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x3c]
push eax
call fcn.00473ec0
mov esi, dword [esi + 8]
mov dword [esp + 0x10], vtable.Table_char_.0
lea ecx, [esi*4]
push ecx
call fcn.004bd49b
add esp, 4
xor ebx, ebx
dec esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], 0x40
mov edx, dword [esp + 0x3c8]
mov byte [esp + 0x3b0], 1
mov dword [esp + 0x20], 1
mov eax, dword [edx + 8]
cmp eax, ebx
jle 0x454bcf
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, byte [0x4f55a8]
mov ecx, 0x40
mov byte [esp + 0x94], al
xor eax, eax
lea edi, [esp + 0x95]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x94]
stosw word es:[edi], ax
push ecx
push 0
push 0x4eea8c
push 0x4edf14
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x454aaa
lea edx, [esp + 0x94]
push edx
call ebp
call fcn.004a8800
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 0x9c]
push str._8X_4X
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + eax + 0xa0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x94]
push edx
call ebp
mov eax, dword [esp + 0x3c4]
cmp ebx, dword [eax + 8]
jge 0x454acc
test ebx, ebx
jl 0x454acc
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*4]
jmp 0x454ace
xor eax, eax
lea ecx, [esp + 0x94]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x454b9b
lea edx, [esp + 0x94]
push edx
call fcn.00470f80
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x454b5f
mov ecx, dword [esp + 0x1c]
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x18]
cmp ecx, esi
jne 0x454b4f
mov edx, dword [esp + 0x1c]
lea eax, [edx*4 + 0x104]
push eax
call fcn.004bd49b
mov ebp, eax
mov ecx, esi
mov esi, dword [esp + 0x18]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004bd4c4
mov eax, dword [esp + 0x24]
add esp, 8
add eax, 0x40
mov dword [esp + 0x14], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x3c4]
lea esi, [ebx + 1]
mov eax, dword [eax + 8]
lea ecx, [eax + eax]
push ecx
push esi
lea ecx, [esp + 0x44]
call fcn.00474000
lea ecx, [esp + 0x3c]
call fcn.00473f20
test eax, eax
je 0x454bcf
mov edx, dword [esp + 0x3c8]
mov ebx, esi
cmp ebx, dword [edx + 8]
jl 0x454a32
jmp 0x454bcf
mov ecx, dword [0x4f5e08]
lea eax, [esp + 0x2a8]
push 0x100
push eax
push 0x224
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x2a8]
push edx
push eax
call fcn.00471600
add esp, 8
mov ecx, dword [esp + 0x3c8]
mov eax, dword [ecx + 8]
cmp ebx, eax
jge 0x454c73
xor esi, esi
test ebx, ebx
jle 0x454c25
mov ebp, dword [esp + 0x3c4]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp esi, dword [ebp + 8]
jge 0x454c05
test esi, esi
jl 0x454c05
mov edx, dword [ebp + 4]
mov ecx, dword [edx + esi*4]
jmp 0x454c07
xor ecx, ecx
cmp esi, dword [esp + 0x18]
jge 0x454c1a
test esi, esi
jl 0x454c1a
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
jmp 0x454c1c
xor eax, eax
push ecx
push eax
call edi
inc esi
cmp esi, ebx
jl 0x454bf4
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
mov byte [esp + 0x3b0], 0
jle 0x454c69
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
cmp esi, ebx
jge 0x454c56
test esi, esi
jl 0x454c56
mov eax, dword [edi]
jmp 0x454c58
xor eax, eax
push eax
call fcn.004bd4c4
add esp, 4
inc esi
add edi, 4
cmp esi, ebx
jl 0x454c46
mov edx, dword [esp + 0x14]
push edx
jmp 0x454e19
xor edi, edi
test eax, eax
jle 0x454cee
mov ebx, dword [esp + 0x3c8]
mov esi, dword [esp + 0x3c4]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x454d2a
cmp edi, eax
jge 0x454ca9
test edi, edi
jl 0x454ca9
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
jmp 0x454cab
xor ecx, ecx
cmp edi, dword [esp + 0x18]
jge 0x454cbe
test edi, edi
jl 0x454cbe
mov edx, dword [esp + 0x14]
mov eax, dword [edx + edi*4]
jmp 0x454cc0
xor eax, eax
push ecx
push eax
call ebp
test eax, eax
je 0x454d2a
mov eax, dword [esi + 8]
lea ecx, [eax + eax]
lea edx, [eax + edi + 1]
push ecx
push edx
lea ecx, [esp + 0x44]
call fcn.00474000
lea ecx, [esp + 0x3c]
call fcn.00473f20
mov eax, dword [ebx + 8]
inc edi
cmp edi, eax
jl 0x454c8d
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
mov ebx, dword [esp + 0x18]
xor esi, esi
test ebx, ebx
mov byte [esp + 0x3b0], 0
jle 0x454e50
mov edi, dword [esp + 0x14]
cmp esi, ebx
jge 0x454e39
test esi, esi
jl 0x454e39
mov eax, dword [edi]
jmp 0x454e3b
lea ecx, [esp + 0x3c]
call fcn.00473fa0
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x454d55
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3b8]
push 0x224
push eax
push ecx
call fcn.00471660
add esp, 0xc
xor esi, esi
test edi, edi
jle 0x454d8c
cmp esi, dword [esp + 0x18]
jge 0x454d6e
test esi, esi
jl 0x454d6e
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + esi*4]
jmp 0x454d70
xor ecx, ecx
cmp esi, dword [ebx + 8]
jge 0x454d81
test esi, esi
jl 0x454d81
mov eax, dword [ebx + 4]
mov eax, dword [eax + esi*4]
jmp 0x454d83
xor eax, eax
push ecx
push eax
call ebp
inc esi
cmp esi, edi
jl 0x454d5b
mov eax, dword [ebx + 8]
xor esi, esi
test eax, eax
jle 0x454dd0
mov eax, dword [esp + 0x3c4]
cmp esi, dword [eax + 8]
jge 0x454dad
test esi, esi
jl 0x454dad
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + esi*4]
jmp 0x454daf
xor ecx, ecx
cmp esi, dword [esp + 0x18]
jge 0x454dc2
test esi, esi
jl 0x454dc2
mov edx, dword [esp + 0x14]
mov eax, dword [edx + esi*4]
jmp 0x454dc4
xor eax, eax
push ecx
push eax
call ebp
mov eax, dword [ebx + 8]
inc esi
cmp esi, eax
jl 0x454d95
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
mov byte [esp + 0x3b0], 0
jle 0x454e14
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
cmp esi, ebx
jge 0x454e01
test esi, esi
jl 0x454e01
mov eax, dword [edi]
jmp 0x454e03
xor eax, eax
push eax
call fcn.004bd4c4
add esp, 4
inc esi
add edi, 4
cmp esi, ebx
jl 0x454df1
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004bd4c4
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3b0], 0xffffffff
call fcn.00473c60
xor eax, eax
jmp 0x454e76
xor eax, eax
push eax
call fcn.004bd4c4
add esp, 4
inc esi
add edi, 4
cmp esi, ebx
jl 0x454d1b
mov eax, dword [esp + 0x14]
push eax
call fcn.004bd4c4
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3b0], 0xffffffff
call fcn.00473c60
mov eax, 1
mov ecx, dword [esp + 0x3a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3a4
ret