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

Disassembly:
push 0x164
mov eax, 0x1008385e
call fcn.1003b733
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x160], ebx
and dword [ebp - 4], 0
lea eax, [ebp - 0x170]
push 1
push eax
call fcn.100127b9
add esp, 4
mov byte [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x160], esi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.10009c71
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x16c]
pop ecx
push eax
call fcn.10012858
push 0x100884a8
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.10009634
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.1001145a
add esp, 0x20
mov ecx, dword [ebp - 0x160]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.1000a458
push dword [ebp - 0x164]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp + 0x10]
push 0xf
pop esi
test eax, eax
je 0x10012b89
call fcn.1000a0bd
push eax
lea ecx, [ebp - 0x168]
call fcn.10009334
xor eax, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x40], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
push eax
push dword [ebp - 0x164]
call fcn.10039790
pop ecx
pop ecx
test edi, edi
jne 0x10012a92
and dword [ebp - 0x48], edi
lea ecx, [ebp - 0x58]
push 0x20
push str.45476F8083D74BA28A2DD8ED399737B7
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x58], 0
call fcn.1000ae54
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1003c940
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.1000e468
test esi, esi
je 0x10012afa
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x158]
cmovae eax, dword [ebp - 0x28]
push 0xfde9
mov dword [ebp - 0x15c], ecx
lea ecx, [ebp - 0x15c]
push eax
call fcn.10012dc8
mov byte [ebp - 4], 0xa
jmp 0x10012abe
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x158]
cmovae eax, dword [ebp - 0x40]
push 0xfde9
mov dword [ebp - 0x15c], ecx
lea ecx, [ebp - 0x15c]
push eax
call fcn.10012dc8
mov byte [ebp - 4], 0xb
push dword [ebp - 0x15c]
call fcn.10009a8e
pop ecx
push eax
push dword [ebp - 0x15c]
lea ecx, [ebp - 0x168]
call fcn.1000a52f
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 8
cmp dword [ebp - 0x15c], eax
je 0x10012afa
push dword [ebp - 0x15c]
call fcn.10062142
pop ecx
mov esi, dword [ebp - 0x168]
cmp dword [esi - 0xc], 0
je 0x10012b61
add esi, 0xfffffff0
push esi
call fcn.10009c71
pop ecx
add eax, 0x10
lea ecx, [ebp - 0x28]
mov dword [ebx], eax
call fcn.1000e468
lea ecx, [ebp - 0x40]
call fcn.1000e468
mov ecx, esi
call fcn.1000a458
mov ecx, dword [ebp - 0x164]
lea ecx, [ecx - 0x10]
call fcn.1000a458
mov ecx, dword [ebp - 0x16c]
lea ecx, [ecx - 0x10]
call fcn.1000a458
mov ecx, dword [ebp - 0x170]
add ecx, 0xfffffff0
call fcn.1000a458
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
jmp 0x10012db4
push dword [ebp - 0x164]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.1000e468
lea ecx, [ebp - 0x40]
call fcn.1000e468
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 5
call fcn.1000a458
call fcn.1000a0bd
push eax
lea ecx, [ebp - 0x168]
call fcn.10009334
push 0
push 0x2710
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.10013d3b
add esp, 0x10
test eax, eax
jne 0x10012bd6
push 0x100884a4
mov ecx, ebx
call fcn.100093be
mov ecx, dword [ebp - 0x168]
lea ecx, [ecx - 0x10]
jmp 0x10012d7f
mov esi, dword [ebp - 0x168]
push dword [esi - 0xc]
push esi
push dword [ebp - 0x164]
call fcn.10039970
add esp, 0xc
call fcn.1000a0bd
push eax
lea ecx, [ebp - 0x160]
call fcn.10009334
mov byte [ebp - 4], 0xd
test edi, edi
jne 0x10012d03
push 0xf
xor eax, eax
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x28], al
push 0x20
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x40]
push str.45476F8083D74BA28A2DD8ED399737B7
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x40], al
call fcn.1000ae54
and dword [ebp - 0x48], edi
mov ecx, esi
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10012c4c
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.1000ae54
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1003c940
add esp, 0xc
lea ecx, [ebp - 0x58]
mov edi, eax
call fcn.1000e468
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xe
call fcn.1000e468
test edi, edi
je 0x10012cf5
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x158]
cmovae eax, dword [ebp - 0x28]
push 0xfde9
mov dword [ebp - 0x15c], ecx
lea ecx, [ebp - 0x15c]
push eax
call fcn.10012dc8
push dword [ebp - 0x15c]
mov byte [ebp - 4], 0x11
call fcn.10009a8e
pop ecx
push eax
push dword [ebp - 0x15c]
lea ecx, [ebp - 0x160]
call fcn.1000a52f
lea eax, [ebp - 0x158]
cmp dword [ebp - 0x15c], eax
je 0x10012cf5
push dword [ebp - 0x15c]
call fcn.10062142
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.1000e468
jmp 0x10012d60
push 0xfde9
lea eax, [ebp - 0x158]
push esi
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x15c], eax
call fcn.10012dc8
push dword [ebp - 0x15c]
mov byte [ebp - 4], 0x12
call fcn.10009a8e
pop ecx
push eax
push dword [ebp - 0x15c]
lea ecx, [ebp - 0x160]
call fcn.1000a52f
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x15c], eax
je 0x10012d60
push dword [ebp - 0x15c]
call fcn.10062142
pop ecx
mov edi, dword [ebp - 0x160]
add edi, 0xfffffff0
push edi
call fcn.10009c71
pop ecx
add eax, 0x10
mov ecx, edi
mov dword [ebx], eax
call fcn.1000a458
lea ecx, [esi - 0x10]
call fcn.1000a458
mov ecx, dword [ebp - 0x164]
lea ecx, [ecx - 0x10]
call fcn.1000a458
mov ecx, dword [ebp - 0x16c]
lea ecx, [ecx - 0x10]
call fcn.1000a458
mov ecx, dword [ebp - 0x170]
lea ecx, [ecx - 0x10]
call fcn.1000a458
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.1000a458
mov eax, ebx
call fcn.1003b6dd
ret