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

Disassembly:
push 0x2a4
mov eax, 0x59cccd
call fcn.00594fd1
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x2ac], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x424cd4
call fcn.00427a49
test al, al
je 0x4245c2
pop edx
pop edx
pop eax
pop edi
push ebp
push ebx
pop ebp
pop eax
push ebp
pop ebp
push edx
pop ecx
push esp
push esp
pop ebp
pop ecx
pop esp
push edx
pop ebp
call fcn.004278f0
test al, al
je 0x4245e2
push edx
push esi
pop esp
push esp
pop edi
pop edi
push ebp
push esp
pop ebp
pop edx
pop ebp
pop ebp
push ecx
push ecx
pop edx
pop ebx
pop ecx
push ebp
pop ebp
pop ebp
push edi
pop ebp
push esp
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x424613
call fcn.0042738c
test al, al
je 0x424cd4
push edi
push esp
pop edi
push ebx
push esi
push ecx
push esi
pop edx
push ebp
push edi
push ebp
push ebp
push esi
push esi
push esp
push esi
pop esi
pop edi
push esp
push ebx
jmp 0x424cd4
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0043ffd0
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 0x619730
call fcn.00401820
mov dword [ebp - 4], ebx
call fcn.004274e5
test al, al
je 0x424676
pop esp
push edi
pop eax
pop ebp
pop edi
pop ecx
pop edi
pop esp
pop ebp
push esi
push ecx
push edx
push ecx
push eax
push eax
pop esp
pop ebp
pop ecx
pop esp
push ebx
pop edx
push edx
call fcn.004274a0
test al, al
je 0x42469d
pop ecx
pop ebp
pop edi
push esi
push esi
push ecx
pop eax
pop ebx
push ebp
pop ecx
pop ebx
pop esp
push ecx
pop esp
push esp
push ebp
pop ebx
push ecx
pop ecx
pop esp
push ebp
push edx
push esi
pop edx
pop edx
pop ebp
pop edi
pop esi
pop ebp
push edx
call fcn.004279bf
test al, al
je 0x4246b6
push edi
pop eax
push esp
pop esp
pop esp
pop ebx
pop esp
pop edi
push ebp
push ebp
push ebx
pop esp
push ebx
push esp
pop edx
push ebp
call fcn.00427683
test al, al
je 0x4246d4
pop ecx
pop esi
pop ecx
push esi
pop esp
pop ebx
push eax
push edi
pop ecx
push esp
push esi
push ecx
pop esp
pop esp
pop ebx
push esp
pop edx
pop edx
pop eax
push esi
push edi
call fcn.0042770d
test al, al
je 0x4246fb
push eax
push esi
push ebx
pop esi
push eax
pop edx
push edi
pop ebx
push eax
push ecx
push eax
push eax
push ecx
push esp
push ebp
push esp
pop esi
push ebp
pop eax
push eax
pop ecx
push edi
pop ebp
push esi
pop ebx
pop esi
pop ebp
push ecx
pop ebp
push ebp
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp - 0x2ac]
lea eax, [ebp - 0x2a8]
push eax
call fcn.00426c88
pop ecx
pop ecx
mov byte [ebp - 4], 1
call fcn.0042797a
test al, al
je 0x424745
pop edx
pop ecx
push eax
pop ebp
pop esp
pop esi
push edx
pop ebp
pop eax
pop ecx
push eax
push ebp
push edx
pop esp
pop edi
pop esp
push ebp
pop edi
pop ebx
push ebp
pop ebx
push edi
pop eax
call fcn.004277dc
test al, al
je 0x424761
push ecx
push esp
push edi
push ecx
push esp
pop ebx
push ebx
push ebp
pop edx
push edx
push ebp
pop eax
push ebp
push edx
pop ebp
push edi
push eax
push edi
push esp
mov ebx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x278]
push ebx
push eax
call fcn.00426fd4
pop ecx
pop ecx
mov byte [ebp - 4], 2
call fcn.004279bf
test al, al
je 0x42479d
push esp
pop ebx
push ebx
pop edx
push ecx
pop ecx
pop edi
push esi
push ecx
push ebx
push ebp
pop ebx
push eax
pop eax
push ebx
pop eax
pop esp
pop edi
pop ebp
pop edx
mov ebx, dword [ebp - 0x2ac]
call fcn.00427935
test al, al
je 0x4247bc
pop esi
pop edi
push esi
pop esp
pop esp
push ecx
push esi
push ebp
push edi
pop esi
pop edx
pop edx
pop ecx
pop edx
push eax
pop ebp
push esp
push ebx
push ebx
pop esp
push ebx
pop edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00426fd4
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 3
push eax
call fcn.004237bf
add esp, 0xc
call fcn.004273d1
test al, al
je 0x42480b
pop edx
push ecx
push edi
push edx
pop edx
push esp
push eax
pop esp
pop edx
push esi
push ecx
push ecx
push ebp
push edx
push edi
push esp
push eax
pop edx
push ebx
pop esp
push esp
push ebp
pop edi
push esp
push ebx
pop eax
push ebp
pop ecx
push ebp
push eax
pop ebp
push ebp
lea eax, [ebp - 0x260]
push eax
call fcn.004237bf
pop ecx
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x260]
call fcn.00402420
test eax, eax
jne 0x4248c6
call fcn.00427a49
test al, al
je 0x424850
pop eax
pop ecx
push edi
push ebx
pop ebp
push edi
push esi
pop edx
push esp
pop edx
push esp
push ebx
pop ebp
pop eax
push ebx
pop eax
pop edi
pop ecx
pop eax
pop edi
push edi
call fcn.00427752
test al, al
je 0x424874
push edx
pop edi
pop edi
push edi
pop ebp
pop edi
pop ebx
pop ebp
push ebx
push ebp
push edx
push esp
pop esp
pop ebp
pop esp
push esp
pop esp
push esp
push edi
pop ebp
push esi
push ecx
push edx
pop eax
pop esp
push ebx
pop esp
call fcn.0042745b
test al, al
je 0x424896
pop edx
push edi
push ebp
pop esi
push esi
push ebp
pop eax
pop ecx
pop ebp
push ebx
pop eax
push esp
pop edi
pop esi
push ebp
push edi
push eax
pop ecx
push ebp
pop esi
pop eax
push ebp
push esi
push ebx
push esi
cmp word [ebp - 0x218], 0
jne 0x4248a4
xor eax, eax
jmp 0x4248b1
lea eax, [ebp - 0x218]
push eax
call fcn.0044f873
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00401820
jmp 0x42492d
call fcn.00427752
test al, al
je 0x4248df
pop esp
push ebx
pop ebp
pop ecx
pop esi
push esi
pop ebp
push edi
pop edi
push eax
pop esp
pop esi
push eax
push ebx
push ebx
pop ecx
call fcn.0042763e
test al, al
je 0x424903
pop esp
pop esp
pop eax
pop edx
push ecx
pop ecx
push edx
pop edx
pop ecx
pop ebp
push esi
push eax
push ebx
push edx
pop ebp
push ebx
pop esp
push esp
push ebp
push edi
pop esi
pop esi
push ecx
pop esi
push edx
push esp
push esp
lea eax, [ebp - 0x290]
push ebx
push eax
call fcn.00426e8d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.004045f0
push 0
push 1
lea ecx, [ebp - 0x290]
call fcn.00401760
and dword [ebp - 0x2b0], 0
call fcn.00427683
test al, al
je 0x42494f
pop ebp
push ecx
pop edi
push ecx
push ebx
pop ebx
push ebx
pop ecx
pop ebp
push edx
pop ebx
push ebx
pop esp
push esp
pop edx
pop edi
push ebx
push ebx
and dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x21c], 7
push eax
push 0x619730
mov word [ebp - 0x230], ax
call fcn.00401820
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x230]
call fcn.00401920
call fcn.0042756f
test al, al
je 0x4249b1
pop edx
push esi
push esp
pop ecx
push ecx
pop ebp
pop esp
pop edi
push esi
push ebx
pop eax
push edi
push eax
push edx
push ebp
pop edi
pop esi
pop esi
pop esp
pop edi
call fcn.0042770d
test al, al
je 0x4249d0
pop esp
push edi
push edi
push edx
pop eax
push ebx
pop edx
pop edx
pop ecx
pop esi
pop ebp
pop edi
pop esi
pop edx
pop eax
pop ebx
pop edx
pop esi
push eax
pop ebx
push ebx
pop eax
call fcn.00427821
test al, al
je 0x4249f9
pop ebx
pop ebp
pop esp
push ebp
pop ecx
pop edi
push edi
push ebx
push esi
pop esp
pop eax
push ebp
pop ecx
push edx
pop esp
pop ecx
push ebx
push ebp
push eax
push ecx
push esp
pop edx
push edx
push edi
push eax
pop eax
pop esp
push ebx
push ebx
push ebp
pop eax
pop edi
push 0xffffffffffffffff
xor ebx, ebx
lea eax, [ebp - 0x2a8]
push ebx
push eax
lea ecx, [ebp - 0x230]
call fcn.00404a10
mov esi, 0x5a0348
push esi
call fcn.0044f873
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.004048e0
mov eax, dword [ebp - 0x2b0]
test eax, eax
jle 0x424a6a
cdq
push edx
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.00423be2
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.00404a10
push ebx
push 1
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 4
call fcn.00401760
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 0x424b43
call fcn.004275b4
test al, al
je 0x424ab6
pop esi
pop ebp
pop eax
pop edi
push ecx
push ebx
push ebp
pop edi
pop esp
push ecx
push edi
pop edx
push ebp
push esp
pop edx
pop ecx
pop edx
pop eax
pop edi
push edx
pop ecx
push esi
push ebp
push eax
pop eax
push esi
pop ebp
push esi
push esp
push edi
pop ebp
push edx
call fcn.00427866
test al, al
je 0x424adb
pop edi
pop eax
pop ebx
pop edx
push esi
pop eax
push ecx
push edx
push edi
pop esi
push edi
push edx
push esp
push ecx
push ebx
pop edx
push ecx
pop edx
pop ebp
pop edi
push eax
push edx
pop ebp
push ebx
push edi
pop esp
pop eax
pop esi
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 0x424b43
call fcn.004277dc
test al, al
je 0x424b15
pop esp
push edx
push ebx
push ecx
push esp
pop ebp
pop esp
pop ebx
pop edi
push ebp
push eax
pop ebx
push edi
push edx
pop esp
pop ecx
pop eax
pop eax
mov ebx, dword [ebp - 0x2b0]
cmp ebx, 0xa
jge 0x424c8b
push 0
inc ebx
mov byte [ebp - 4], 3
push 1
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x2b0], ebx
call fcn.00401760
jmp 0x42494f
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov edi, dword [ebp - 0x2ac]
cmovae eax, dword [ebp - 0x230]
push eax
push edi
call fcn.0044f574
pop ecx
pop ecx
call fcn.004277dc
test al, al
je 0x424b89
pop esp
pop ebp
pop edx
push esp
pop ecx
push ecx
pop esp
pop ecx
pop eax
pop ebx
push eax
pop esi
pop edx
push eax
pop ebp
push edx
pop ebp
push esp
push ebp
push ecx
pop ebx
push ecx
push edi
push eax
push ebp
push ebx
call fcn.00427a04
test al, al
je 0x424ba8
push ebx
push edi
push ebp
pop ebx
push eax
push ebp
push eax
push ecx
push esi
pop esp
push esp
pop eax
pop ebx
pop esp
push ecx
pop ebx
pop eax
pop esi
pop ecx
pop eax
push esp
pop esp
call fcn.00427797
test al, al
je 0x424bd2
pop edx
push esp
pop ebx
push edi
push ecx
push ebp
push ecx
push edx
push ebx
pop edx
push edx
pop edi
pop ebp
push esp
push edx
pop ebx
push ecx
push edi
pop esi
push edx
pop ebx
pop edx
push eax
pop ebp
pop esi
push esp
pop ebp
mov edi, dword [ebp - 0x2ac]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x230]
push eax
call ebx
test eax, eax
je 0x424c12
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 5
cmovae eax, dword [ebp - 0x230]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
call ebx
test eax, eax
je 0x424c8b
call fcn.00427416
test al, al
je 0x424c35
pop ebx
push ebx
pop edx
pop ebp
pop ebx
push ebx
pop edi
pop esp
pop edx
push ebp
pop esi
push edx
pop ecx
push esi
push esp
pop ecx
push ebp
pop esp
pop ebx
call fcn.004276c8
test al, al
je 0x424c5a
push edi
push eax
pop esp
push esi
push eax
push ebx
pop ebx
pop eax
push edx
push ebp
push esi
push edx
push edi
pop ebp
pop edi
pop ebx
push edx
pop esp
push esp
pop esi
pop ebx
push eax
push esi
pop esi
push ecx
push ebx
pop esi
push ecx
call fcn.004277dc
test al, al
je 0x424c7b
pop esp
push edx
push esp
pop edi
push esi
push ebx
pop ebp
pop ebp
push ebx
pop ebp
push esp
push edi
pop ecx
pop ecx
push esp
push esp
pop ecx
push edi
pop edx
pop ebp
push esp
pop eax
push edx
push ecx
push 5
push 0
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor ebx, ebx
lea ecx, [ebp - 0x230]
push 0
inc ebx
push ebx
call fcn.00401760
push 0
push ebx
lea ecx, [ebp - 0x260]
call fcn.00401760
push 0
push ebx
lea ecx, [ebp - 0x278]
call fcn.00401760
push 0
push ebx
lea ecx, [ebp - 0x2a8]
call fcn.00401760
push 0
push ebx
lea ecx, [ebp - 0x248]
call fcn.00401760
call fcn.00594f8c
ret