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

Disassembly:
push 0x20
mov eax, 0x10042102
call fcn.10021ea5
mov dword [ebp - 0x20], ecx
push 0x1004d424
lea ecx, [ebp - 0x1c]
call fcn.100021a3
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str..tmp
call fcn.100021a3
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebp - 0x14]
call fcn.10001b47
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.10002c37
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x1000fb4d
lea ecx, [eax - 0x10]
call fcn.10002c37
or eax, 0xffffffff
call fcn.10021f44
ret 4
lea esi, [ebp - 0x10]
call fcn.10001e59
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 0xc]
test eax, eax
jne 0x1000fb73
lea ecx, [edx - 0x10]
call fcn.10002c37
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
jmp 0x1000fb3d
lea ecx, [eax - 1]
test ecx, ecx
js 0x1000fd60
cmp ecx, eax
jg 0x1000fd60
movzx eax, word [edx + ecx*2]
push 0x5c
pop ecx
cmp cx, ax
je 0x1000fba8
mov esi, 0x1004b5ac
push esi
call fcn.10002867
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.1000fa64
lea esi, [ebp - 0x2c]
call fcn.10001eca
mov esi, eax
push str.CameraCapture_
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.100021a3
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 5
call fcn.10004316
push str..jpg
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 6
call fcn.1000436d
add esp, 0x18
mov byte [ebp - 4], 7
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.1000fa64
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.10002c37
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.10002c37
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.10002c37
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.10002c37
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10002687
add eax, 0x10
pop ecx
mov dword [ebp - 0x18], eax
lea ebx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.1000fd6b
mov ebx, eax
call fcn.1000fdb9
mov esi, dword [ebp - 0x10]
call fcn.10004e4d
push esi
call fcn.10005159
test eax, eax
je 0x1000fc6f
push str.CCameraCaptureOnceCmd::Execute__:_screen_shot_execute_failed.
call fcn.10003e3a
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000fd38
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.10038530
add esp, 0xc
test eax, eax
je 0x1000fd2f
push 0x100581b4
lea ecx, [ebp + 8]
call fcn.100023ad
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jne 0x1000fcc9
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.1000fa0b
jmp 0x1000fcd5
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.100023d5
push 0x1004aa2c
lea ecx, [ebp - 0x24]
call fcn.100021a3
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 0xa
mov esi, dword [eax + 8]
movzx eax, word [0x1005bb58]
mov edi, dword [ebp + 8]
push eax
push ecx
add edi, 0xfffffff0
mov dword [ebp - 0x2c], esp
mov ebx, esp
push edi
call fcn.10002687
pop ecx
push 9
lea ecx, [ebp - 0x24]
push ecx
add eax, 0x10
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.10002c37
mov ecx, edi
call fcn.10002c37
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10002c37
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10002c37
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10002c37
xor eax, eax
jmp 0x1000fb45
push 0x80070057
call fcn.10002c51
int3