Function at 0x100831f9
Capabilities:
Delete file

Disassembly:
mov eax, 0x100eb7fe
call fcn.100c908c
sub esp, 0x38
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
call fcn.1009605b
test al, al
je 0x10083229
call fcn.1009606a
cmp eax, 1
jne 0x10083525
push dword [0x10150c4c]
lea ecx, [ebp - 0x14]
call fcn.10046fb3
cmp byte [0x10154009], 0
mov byte [ebp - 4], 1
je 0x10083266
cmp dword [ebp - 0x14], 0
mov bl, byte [0x1015400a]
je 0x1008325f
cmp dword [ebp - 0x14], 0xffffffff
je 0x1008325f
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
jmp 0x10083527
call fcn.100cd2c3
mov dword [ebp - 0x28], eax
push 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100557bb
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.10060f33
pop ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x100832b4
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
call fcn.1000548f
call fcn.10049303
pop ecx
mov edi, str.writetest
push edi
lea ecx, [ebp - 0x18]
call fcn.1001195c
call fcn.100b9dd5
push str.EMPTY
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.10009e15
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 0x10083326
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
call fcn.1000548f
lea eax, [ebp - 0x24]
push eax
call fcn.100499e2
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.1000688b
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.10003f60
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.10004959
test eax, eax
je 0x100833e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x101519f8
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.1007170f
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.100070c4
mov ecx, dword [ebp + 8]
add esp, 0x14
test ecx, ecx
je 0x1008337a
lea eax, [ebp - 0x24]
push eax
call fcn.1000688b
push 1
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp + 8], esp
mov ecx, esp
push eax
call fcn.1000548f
mov ecx, ebx
call fcn.10080d89
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [0x1015400a], 0
call fcn.10003f60
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.10003f60
cmp dword [ebp - 0x14], 0
je 0x100833da
cmp dword [ebp - 0x14], 0xffffffff
je 0x100833da
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor al, al
jmp 0x10083527
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.10003f60
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
mov esi, 0x1010d92c
push esi
call fcn.10009e15
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 7
call fcn.1000548f
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edi
mov byte [ebp - 4], 8
call fcn.10009e15
mov byte [ebp - 4], 2
call fcn.100628f3
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push esi
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
mov byte [ebp - 4], 9
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push edi
mov byte [ebp - 4], 0xa
call fcn.10009e15
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.1006135f
add esp, 0x10
push dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.10004959
test eax, eax
je 0x100834cc
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100834a4
push str.Registry_write_test_failed
call fcn.10006a3d
push 1
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.Registry_write_test_failed
call fcn.10009e15
mov ecx, ebx
call fcn.10080d89
mov ecx, dword [ebp - 0x24]
mov byte [0x1015400a], 0
jmp 0x100833b2
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push esi
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edi
mov byte [ebp - 4], 0xc
call fcn.10009e15
mov byte [ebp - 4], 0xb
call fcn.100616bb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.10003f60
cmp dword [ebp - 0x14], 0
je 0x1008351e
cmp dword [ebp - 0x14], 0xffffffff
je 0x1008351e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [0x1015400a], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4