Function at 0x456a9c
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push 0x2a4
mov eax, 0x5de2eb
call fcn.005d2642
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x2ac], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4571a8
call fcn.0045469c
test al, al
je 0x456aeb
push eax
push esp
push ebx
pop esp
push esp
push eax
pop ebp
push edi
pop ebp
push ecx
pop ebp
push ecx
push eax
push esi
push edi
push edi
pop ecx
pop ebx
pop ebp
pop eax
push ebp
push eax
push edi
pop esp
pop ebx
push esp
push ebx
push ecx
push ebp
push edi
pop esp
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x456b49
call fcn.0045487f
test al, al
je 0x456b1d
pop ebx
push ecx
pop esi
push ebp
pop edi
pop ebx
push esi
pop esi
push esi
pop esi
pop esp
pop esp
pop ecx
push eax
pop esp
push ebx
pop eax
pop ebx
pop edi
pop esi
pop esp
push esp
pop ecx
pop edi
pop ebp
pop edx
pop eax
pop edx
pop edi
pop edx
call fcn.00454a62
test al, al
je 0x4571a8
pop ebp
push esp
push ebp
pop esp
push esp
push edi
push edi
pop esp
push eax
push ebx
pop eax
pop edx
pop edi
pop ebp
push esp
pop esp
push esi
push esp
pop edi
pop esi
push edx
pop eax
push esp
pop esi
push edi
push edi
jmp 0x4571a8
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0047be90
add esp, 0xc
mov dword [ebp - 0x234], 7
xor eax, eax
mov dword [ebp - 0x238], ebx
lea ecx, [ebp - 0x248]
mov word [ebp - 0x248], ax
push ebx
push 0x5e266c
call fcn.00403000
mov dword [ebp - 4], ebx
call fcn.00454993
test al, al
je 0x456bad
push esi
push edi
push ecx
pop edi
push eax
pop ebx
pop esp
push esp
pop esp
pop edi
push ebx
pop edx
push esi
pop esp
push eax
push eax
pop ebx
pop ecx
push esp
pop ebp
pop esi
pop edx
push ecx
call fcn.004547b0
test al, al
je 0x456bd5
push ebx
push edx
pop edx
push ebx
pop ebx
pop ecx
push eax
pop eax
pop esp
push edx
pop edx
pop ecx
push eax
pop esp
pop esp
push esp
push ebx
push esi
pop ebx
push edx
pop ebp
push ecx
push esp
push edx
pop edx
pop esp
pop edx
push ebx
push edx
pop esp
push ecx
call fcn.0045483a
test al, al
je 0x456bee
push eax
push esp
pop edi
push esi
push edi
pop ebp
push ebx
push edx
pop ecx
push edi
push esp
pop esi
pop edx
pop ebx
pop esi
pop ebp
call fcn.0045494e
test al, al
je 0x456c0a
push esp
push edi
push ebx
pop ebp
pop esi
pop eax
pop ebx
push esi
pop ebx
push esi
push edx
push edi
push ebp
pop ebx
pop edx
pop ebx
pop esp
pop esp
push edi
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [ebp - 0x2ac]
lea eax, [ebp - 0x2a8]
push esi
push eax
call fcn.00458a7f
pop ecx
pop ecx
mov byte [ebp - 4], 1
call fcn.00454360
test al, al
je 0x456c64
push ebx
push ebx
pop ebp
push esi
pop edx
pop esp
push edi
push ebx
pop edx
push edi
push edi
push ebp
pop eax
pop edi
push esp
pop edi
push ebx
push ebx
push ebx
push ebp
pop ecx
pop ebx
pop esi
push esi
push esi
push esp
pop esp
push esi
pop edi
push ecx
push esp
pop ebx
mov esi, dword [ebp - 0x2ac]
call fcn.0045442f
test al, al
je 0x456c80
pop eax
pop eax
push ebx
pop edx
pop ecx
push edi
pop esp
pop ebp
push eax
pop edi
pop edi
pop eax
push esi
push esp
push eax
push eax
push esp
pop eax
pop ebp
call fcn.004544fe
test al, al
je 0x456c9d
pop edi
pop ebx
push ebp
push eax
pop edx
pop ecx
push ecx
push esi
pop edi
push esp
push ebp
push esp
pop edi
push edi
pop esp
push esi
pop esp
push edx
push edx
push ecx
lea eax, [ebp - 0x278]
push esi
push eax
call fcn.00458d87
pop ecx
pop ecx
mov byte [ebp - 4], 2
call fcn.0045469c
test al, al
je 0x456cd4
pop esp
push esp
pop esi
pop esi
pop edx
push ebx
push esi
pop esi
push esp
pop eax
pop edx
pop esi
push ebx
pop ecx
pop ecx
pop edx
push eax
pop ebp
push edx
pop eax
pop edx
pop eax
push ecx
pop edx
pop ecx
pop edi
pop ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00458d87
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 3
push eax
call fcn.0045abba
add esp, 0xc
call fcn.004544b9
test al, al
je 0x456d20
pop esi
push ebx
pop edi
push esi
pop edx
pop ecx
pop ebp
push eax
push ebx
pop ecx
pop ecx
pop edx
pop edx
pop esp
push ebx
push ebx
push esp
pop eax
pop ebp
push esi
pop eax
pop edx
pop edi
push eax
pop ebx
push ebp
push eax
pop esi
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0045abba
pop ecx
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x260]
call fcn.00457f80
test eax, eax
jne 0x456dc8
call fcn.00454588
test al, al
je 0x456d6f
pop esp
pop edx
push ecx
push esi
pop edx
pop ebx
pop edi
push esi
pop ebp
pop ecx
pop esp
push eax
pop ebp
pop edx
push ebp
pop ecx
push ebx
pop esi
pop eax
pop edx
push ebx
push esi
pop ecx
push ebp
push ebx
pop ebp
pop ecx
push edx
push edx
pop edi
push eax
call fcn.0045469c
test al, al
je 0x456d95
pop ebx
push ecx
push ebp
pop edi
push edx
pop ecx
push esp
pop ebx
pop ecx
pop edi
push ebx
push ebx
push esp
pop edi
pop edx
push ebx
push ebx
pop edi
pop eax
pop ebp
pop esi
pop edi
pop ebx
push esp
pop ebp
pop eax
pop esi
pop edi
pop ecx
cmp word [ebp - 0x218], 0
jne 0x456da3
xor eax, eax
jmp 0x456db0
lea eax, [ebp - 0x218]
push eax
call fcn.0048cd3b
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403000
jmp 0x456e51
call fcn.00454588
test al, al
je 0x456de3
pop edx
pop edi
push edx
pop ebx
pop ebp
pop edx
push esp
pop edx
push esp
push ebp
pop ebp
pop edi
push eax
push esp
push esp
push ebx
pop edi
pop edi
call fcn.004547b0
test al, al
je 0x456e07
push edi
push edi
push eax
push edi
pop ecx
push ebp
push esp
pop ebp
push ebp
push ebp
pop edi
pop ebp
push ebp
pop esp
pop ecx
push esp
push eax
pop esp
push esi
pop esp
push ebp
push esi
push eax
push edi
pop edx
push edx
push esp
call fcn.00454612
test al, al
je 0x456e22
pop edi
push edi
push ebx
push edx
pop esi
pop edi
push ebx
pop ebx
push esp
push eax
pop eax
push ebx
pop esi
push ebx
push ebx
push esp
pop ecx
pop ebx
push dword [ebp - 0x2ac]
lea eax, [ebp - 0x290]
push eax
call fcn.00458c77
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00403950
push 0
push 1
lea ecx, [ebp - 0x290]
call fcn.0041e4c0
and dword [ebp - 0x2b0], 0
call fcn.004543ea
test al, al
je 0x456e80
push ebx
push ecx
pop edx
pop ecx
pop edx
push eax
pop ecx
push edi
push ebx
push edx
push edx
push edi
pop esi
pop ebx
push esp
push esi
push eax
pop edi
pop eax
push esp
push edx
pop edi
pop esi
push ebp
pop eax
pop edx
pop esi
push ebx
push ebp
pop ebp
push esi
call fcn.00454726
test al, al
je 0x456ea7
pop esi
pop ebp
pop ebx
pop ecx
push ecx
push ebp
pop eax
push esi
pop ecx
pop eax
pop edx
push ebp
pop eax
push esp
pop esi
pop esi
push edi
pop ecx
pop ebx
push eax
push esi
pop edi
pop ecx
push ecx
pop eax
push esi
push ebp
pop eax
push edi
pop ecx
call fcn.00454909
test al, al
je 0x456ecf
push esp
pop eax
push ecx
pop edi
push ecx
pop ecx
pop eax
push esp
pop ecx
pop edi
pop edi
push ebx
pop ecx
pop edx
pop ecx
push eax
pop esp
pop eax
push edx
pop ecx
pop eax
pop ebx
pop eax
pop ecx
pop edx
push ebp
push ecx
pop eax
push edi
push esp
pop edx
xor edi, edi
push edi
xor eax, eax
mov dword [ebp - 0x21c], 7
push 0x5e266c
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], ax
call fcn.00403000
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x230]
call fcn.00402ee0
call fcn.004544b9
test al, al
je 0x456f33
push edx
pop edi
push esi
push ebp
pop esp
push edx
push ebp
push eax
pop edx
push ebp
pop edx
pop ebp
push ebp
pop esp
pop edi
pop edx
pop edx
push edi
pop esi
push ecx
xor edi, edi
call fcn.004547b0
test al, al
je 0x456f4f
pop edi
push ebx
pop edi
push ebp
push ebp
pop eax
pop ebp
push edx
pop ebp
pop edx
pop ecx
push esi
push ebp
pop ebx
push ebx
pop ecx
push ebx
xor edi, edi
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405180
push str..eda
call fcn.0048cd3b
pop ecx
push eax
push str..eda
lea ecx, [ebp - 0x230]
call fcn.00405290
mov esi, dword [ebp - 0x2b0]
test esi, esi
jle 0x456fc3
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.00458583
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.00405180
push edi
push 1
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 4
call fcn.0041e4c0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x457060
call fcn.00454a62
test al, al
je 0x456ffe
push edx
push ecx
pop ecx
pop ecx
push ecx
push esp
push esi
pop ebp
pop ebp
push ebp
pop ecx
pop eax
push ecx
push eax
push edi
push eax
pop ebx
pop ebx
push esp
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x457060
call fcn.00454a62
test al, al
je 0x457039
push esi
push edx
push eax
pop ebp
pop edx
pop edx
push edx
pop ebx
push ebp
pop eax
pop ebp
push eax
push esi
pop eax
pop esp
pop ecx
pop ecx
pop ebx
push ebp
cmp esi, 0xa
jge 0x457164
push edi
inc esi
mov byte [ebp - 4], 3
push 1
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x2b0], esi
call fcn.0041e4c0
jmp 0x456ed1
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov ebx, dword [ebp - 0x2ac]
cmovae eax, dword [ebp - 0x230]
push eax
push ebx
call fcn.00488907
pop ecx
pop ecx
call fcn.00454543
test al, al
je 0x4570a9
pop ecx
pop eax
pop edx
pop esi
pop ebx
push edi
push esi
push esi
pop edx
pop eax
pop esp
push ebx
pop ecx
pop ebx
pop ebp
pop edx
push ebx
pop eax
pop eax
pop ebp
push eax
pop ebp
push esi
mov ebx, dword [ebp - 0x2ac]
call fcn.004544b9
test al, al
je 0x4570c3
pop esi
push edx
push edx
pop edi
pop esi
pop eax
pop esi
push edi
push esi
pop edx
pop edi
push ebx
pop esp
push edi
pop ecx
push eax
pop edx
call fcn.0045483a
test al, al
je 0x4570e6
push edx
pop edi
push esp
push eax
push eax
pop esp
pop ebp
pop edi
pop eax
push edx
pop edx
push esi
push ecx
push eax
push edx
push ebp
pop edi
push ebx
pop edi
pop eax
push esi
pop edx
pop edx
pop esp
pop ebp
push edi
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x230]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x457128
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 5
cmovae eax, dword [ebp - 0x230]
push 0
push eax
call esi
push ebx
call edi
test eax, eax
je 0x457162
call fcn.004549d8
test al, al
je 0x457158
push eax
push edi
pop edi
push ecx
pop ebx
push edi
pop edi
pop eax
pop esp
pop eax
pop edx
push eax
pop ebp
pop esp
pop ecx
push esi
pop edx
pop ebx
push edi
pop ebx
push eax
pop ecx
push ebx
pop edi
push esi
push eax
mov ebx, dword [ebp - 0x2ac]
push 5
xor edi, edi
push edi
push ebx
call esi
jmp 0x457164
xor edi, edi
xor ebx, ebx
lea ecx, [ebp - 0x230]
push edi
inc ebx
push ebx
call fcn.0041e4c0
push edi
push ebx
lea ecx, [ebp - 0x260]
call fcn.0041e4c0
push edi
push ebx
lea ecx, [ebp - 0x278]
call fcn.0041e4c0
push edi
push ebx
lea ecx, [ebp - 0x2a8]
call fcn.0041e4c0
push edi
push ebx
lea ecx, [ebp - 0x248]
call fcn.0041e4c0
call fcn.005d25ec
ret