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

Disassembly:
push ebp
sub esp, 0x64
lea ebp, [esp - 4]
mov eax, dword [0x10053060]
xor eax, ebp
mov dword [ebp + 0x64], eax
push 0x68
mov eax, 0x10043b5e
call fcn.1002b7f1
mov eax, dword [ebp + 0x70]
xor ebx, ebx
push ebx
mov dword [ebp + 0x20], eax
push ebx
lea eax, [ebp - 0x58]
mov dword [ebp + 0x28], ebx
call fcn.10015003
push 3
pop esi
push ebx
push ebx
lea eax, [ebp - 0x24]
mov dword [ebp - 4], esi
call fcn.10015003
push edx
lea ecx, [ebp + 4]
mov byte [ebp - 4], 6
call fcn.100021cc
xor edi, edi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 7
inc edi
push eax
lea ecx, [ebp + 4]
mov dword [ebp + 0x28], edi
call fcn.100012ba
pop ecx
test al, al
je 0x10001f2a
push str.path:
lea ecx, [ebp - 0x74]
call fcn.100021cc
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 8
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x28], esi
call fcn.1000158e
pop ecx
mov byte [ebp + 0x27], bl
test al, al
jne 0x10001f2e
mov byte [ebp + 0x27], 1
test byte [ebp + 0x28], 2
je 0x10001f42
and dword [ebp + 0x28], 0xfffffffd
push ebx
push edi
lea ecx, [ebp - 0x74]
call fcn.1000270f
mov dword [ebp - 4], 6
test byte [ebp + 0x28], 1
je 0x10001f5d
and dword [ebp + 0x28], 0xfffffffe
push ebx
push edi
lea ecx, [ebp + 4]
call fcn.1000270f
cmp byte [ebp + 0x27], bl
je 0x10001fbd
push 0x100479e8
lea esi, [ebp + 4]
call fcn.1000221e
mov eax, esi
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 9
call fcn.10001277
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x18], 0x10
jb 0x10001f90
mov eax, dword [eax + 4]
jmp 0x10001f93
add eax, 4
push eax
push edi
push dword [ebp + 0x20]
call fcn.100017d4
add esp, 0xc
or dword [ebp + 0x28], 4
push ebx
push edi
lea ecx, [ebp - 0x74]
call fcn.1000270f
push ebx
push edi
lea esi, [ebp + 4]
call fcn.10002807
jmp 0x10002182
lea eax, [ebp - 0x24]
push eax
mov edx, str.path
call fcn.100152f7
push eax
lea ecx, [ebp - 0x74]
call fcn.10014480
push eax
lea eax, [ebp + 0x2c]
push eax
mov byte [ebp - 4], 0xb
call fcn.1001d47c
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xd
call fcn.1000270f
cmp dword [ebp + 0x40], ebx
jne 0x1000204c
push 0x100479f4
lea esi, [ebp + 4]
call fcn.1000221e
mov eax, esi
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0xe
call fcn.10001277
pop ecx
pop ecx
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x18], 0x10
jb 0x10002025
mov eax, dword [eax + 4]
jmp 0x10002028
add eax, 4
push eax
push 2
push dword [ebp + 0x20]
call fcn.100017d4
or dword [ebp + 0x28], 4
add esp, 0xc
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.1000270f
lea esi, [ebp + 4]
jmp 0x10002171
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x48]
call fcn.10001237
pop ecx
mov byte [ebp - 4], 0x10
cmp dword [ebp + 0x60], 8
mov eax, dword [ebp + 0x4c]
jae 0x10002069
lea eax, [ebp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100020ad
push 0x10047a00
lea esi, [ebp + 4]
call fcn.1000221e
mov eax, esi
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0x11
call fcn.10001277
pop ecx
pop ecx
mov byte [ebp - 4], 0x12
cmp dword [eax + 0x18], 0x10
jb 0x100020a2
mov eax, dword [eax + 4]
jmp 0x100020a5
add eax, 4
push eax
push 3
jmp 0x1000214b
cmp dword [ebp + 0x60], 8
mov eax, dword [ebp + 0x4c]
jae 0x100020b9
lea eax, [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100020ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea esi, [ebp + 4]
mov dword [ebp], eax
call fcn.1000d67b
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0x13
call fcn.10001277
add esp, 0xc
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x18], 0x10
jb 0x100020f6
mov eax, dword [eax + 4]
jmp 0x100020f9
add eax, 4
push eax
push dword [ebp]
jmp 0x1000214b
cmp dword [ebp + 0x60], 8
mov eax, dword [ebp + 0x4c]
jae 0x1000210b
lea eax, [ebp + 0x4c]
push eax
push 0x10047a0c
call fcn.1000bd31
pop ecx
pop ecx
push 0x10047a30
lea esi, [ebp + 4]
call fcn.1000221e
mov eax, esi
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0x15
call fcn.10001277
pop ecx
pop ecx
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x18], 0x10
jb 0x10002146
mov eax, dword [eax + 4]
jmp 0x10002149
add eax, 4
push eax
push ebx
push dword [ebp + 0x20]
call fcn.100017d4
or dword [ebp + 0x28], 4
add esp, 0xc
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.1000270f
push ebx
push edi
lea esi, [ebp + 4]
call fcn.10002807
lea esi, [ebp + 0x48]
push ebx
push edi
call fcn.10002807
push ebx
push edi
lea ecx, [ebp + 0x2c]
call fcn.1000270f
lea esi, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.10014292
lea esi, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.10014292
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
call fcn.1002a90b
add ebp, 0x68
leave
ret