Function at 0x421ec3
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xb8
mov eax, 0x48ccf7
call fcn.00458cd6
mov edi, ecx
mov esi, dword [ebp + 0x24]
xor ebx, ebx
mov dword [ebp - 0x5c], 7
push ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x4a5558
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], ebx
mov word [ebp - 0x70], ax
call fcn.00402070
push ebx
xor eax, eax
mov byte [ebp - 4], 1
push 0x4a5558
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
call fcn.00402070
push ebx
call fcn.0043a5e1
and dword [ebp - 0x78], 0
mov ebx, eax
pop ecx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x74], ecx
mov word [ebp - 0x88], ax
and dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x88]
push eax
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00403ad0
push dword [ebp + 8]
mov ecx, edi
call fcn.00422418
test al, al
je 0x422078
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.0043a1ca
add eax, dword [edi]
pop ecx
cmp eax, ebx
jl 0x421faa
lea eax, [ebp - 0x40]
xor ebx, ebx
cmp esi, eax
je 0x422070
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00402290
jmp 0x422070
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041abab
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x421fc5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0041c35c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00403a50
xor ebx, ebx
lea ecx, [ebp - 0xb8]
push ebx
push 1
call fcn.00401fb0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.004188e8
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x58]
call fcn.0041adfd
test eax, eax
jne 0x42207a
lea eax, [ebp - 0x40]
cmp esi, eax
je 0x422021
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00402290
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0xbc], esp
push eax
call fcn.00403ad0
sub esp, 0x18
mov byte [ebp - 4], 6
lea eax, [ebp - 0x88]
mov dword [ebp - 0xc0], esp
mov ecx, esp
push eax
call fcn.00403ad0
sub esp, 0x18
mov byte [ebp - 4], 7
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00403ad0
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00422795
xor esi, esi
inc esi
jmp 0x422324
xor ebx, ebx
cmp dword [ebp + 0x28], 0
jne 0x422092
push ebx
push 0x4a5558
mov ecx, esi
call fcn.00402070
jmp 0x422322
cmp dword [esi + 0x10], ebx
jne 0x422147
cmp dword [ebp + 8], 0
je 0x4220e8
lea eax, [edi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x4220ac
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042e9d2
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.00403a50
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401fb0
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042e8a0
pop ecx
pop ecx
mov byte [ebp - 4], 8
jmp 0x42212d
lea eax, [edi + 4]
cmp dword [eax + 0x14], 8
jb 0x4220f3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042e9d2
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.00403a50
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401fb0
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042e8a0
pop ecx
pop ecx
mov byte [ebp - 4], 9
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00403de0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00401fb0
cmp dword [esi + 0x14], 8
jb 0x422151
mov eax, dword [esi]
jmp 0x422153
mov eax, esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x422173
cmp dword [esi + 0x14], 8
jb 0x42216a
mov eax, dword [esi]
jmp 0x42216c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00403ad0
push 0x4925d8
mov byte [ebp - 4], 0xa
call fcn.00445c91
pop ecx
push eax
push 0
push 0x4925d8
lea ecx, [ebp - 0xa0]
call fcn.00404820
cmp eax, 0xffffffff
jne 0x422207
push 0x4925d8
call fcn.00445c91
pop ecx
push eax
push 0x4925d8
lea ecx, [ebp - 0xa0]
call fcn.00403cb0
push 0x1869f
push 0x2710
call fcn.0042758f
cdq
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004207d6
add esp, 0x14
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xb
call fcn.00403de0
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.00401fb0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc4], esp
push esi
call fcn.00403ad0
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xa0]
mov ecx, esp
push eax
call fcn.00403ad0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push eax
mov ecx, edi
call fcn.00422368
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401fb0
cmp dword [esi + 0x14], 8
jb 0x422252
mov eax, dword [esi]
jmp 0x422254
mov eax, esi
push eax
call ebx
test eax, eax
jne 0x42226f
xor ebx, ebx
mov ecx, esi
push ebx
push 0x4a5558
call fcn.00402070
jmp 0x422314
cmp dword [ebp - 0x48], 0
jne 0x4222c9
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0041abab
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xd
jb 0x422293
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041c35c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00403a50
xor ebx, ebx
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00401fb0
push ebx
push 1
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xa
call fcn.004188e8
jmp 0x4222cb
xor ebx, ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc4], esp
push esi
call fcn.00403ad0
sub esp, 0x18
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x58]
mov dword [ebp - 0xc0], esp
mov ecx, esp
push eax
call fcn.00403ad0
sub esp, 0x18
mov byte [ebp - 4], 0xf
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00403ad0
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.00422795
push ebx
push 1
lea ecx, [ebp - 0xa0]
call fcn.00401fb0
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00401fb0
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.00401fb0
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00401fb0
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.00401fb0
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00401fb0
mov eax, esi
call fcn.00458c91
ret 0x24