Function at 0x10069240
Capabilities:
Delete file

Disassembly:
mov eax, 0x100c3dd6
call fcn.100a35ac
sub esp, 0x38
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
call fcn.1007e8fe
test al, al
je 0x10069270
call fcn.1007e90d
cmp eax, 1
jne 0x1006956c
push dword [0x10116604]
lea ecx, [ebp - 0x14]
call fcn.10022db7
cmp byte [0x1011b001], 0
mov byte [ebp - 4], 1
je 0x100692ad
cmp dword [ebp - 0x14], 0
mov bl, byte [0x1011b002]
je 0x100692a6
cmp dword [ebp - 0x14], 0xffffffff
je 0x100692a6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
jmp 0x1006956e
call fcn.100a84ee
mov dword [ebp - 0x28], eax
push 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10036e82
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.1003ec4b
pop ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x100692fb
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
call fcn.10003561
call fcn.10024c36
pop ecx
mov edi, str.writetest
push edi
lea ecx, [ebp - 0x18]
call fcn.1000d0d1
call fcn.1009e9ce
push str.EMPTY
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.10005f07
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push ecx
push eax
push dword [ebp - 0x18]
mov ecx, esi
mov byte [ebp - 4], 4
call dword [edx + 4]
test eax, eax
je 0x1006936d
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
call fcn.10003561
lea eax, [ebp - 0x24]
push eax
call fcn.10051021
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.10004a20
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.10001d29
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.10002834
test eax, eax
je 0x10069428
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x101185a8
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.1005a319
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push dword [ebp - 0x1c]
mov byte [ebp - 4], 6
push esi
push str.Cache_write_test_failed._Err:__d__Expected:___s__Actual:___s_
push eax
call fcn.1000d4c3
mov ecx, dword [ebp + 8]
add esp, 0x14
test ecx, ecx
je 0x100693c1
lea eax, [ebp - 0x24]
push eax
call fcn.10004a20
push 1
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp + 8], esp
mov ecx, esp
push eax
call fcn.10003561
mov ecx, ebx
call fcn.10066a4c
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [0x1011b002], 0
call fcn.10001d29
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.10001d29
cmp dword [ebp - 0x14], 0
je 0x10069421
cmp dword [ebp - 0x14], 0xffffffff
je 0x10069421
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor al, al
jmp 0x1006956e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.10001d29
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
mov esi, 0x100cb0a0
push esi
call fcn.10005f07
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 7
call fcn.10003561
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edi
mov byte [ebp - 4], 8
call fcn.10005f07
mov byte [ebp - 4], 2
call fcn.1003f305
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push esi
call fcn.10005f07
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
mov byte [ebp - 4], 9
call fcn.10005f07
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push edi
mov byte [ebp - 4], 0xa
call fcn.10005f07
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.1003efa9
add esp, 0x10
push dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.10002834
test eax, eax
je 0x10069513
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100694eb
push str.Registry_write_test_failed
call fcn.10004da9
push 1
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.Registry_write_test_failed
call fcn.10005f07
mov ecx, ebx
call fcn.10066a4c
mov ecx, dword [ebp - 0x24]
mov byte [0x1011b002], 0
jmp 0x100693f9
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push esi
call fcn.10005f07
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edi
mov byte [ebp - 4], 0xc
call fcn.10005f07
mov byte [ebp - 4], 0xb
call fcn.1003f639
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.10001d29
cmp dword [ebp - 0x14], 0
je 0x10069565
cmp dword [ebp - 0x14], 0xffffffff
je 0x10069565
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [0x1011b002], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4