Function at 0x1000a620
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x24
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000a640
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 8]
push edx
push 0x20
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000a6a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_call_OpenPrcessToken__err__0x_x
push 0
push 4
mov esi, 0x10023490
call fcn.10003ad0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a69d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
add esp, 0x24
ret 8
lea ecx, [esp + 0x10]
push ecx
push str.SeBackupPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000a716
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0x10
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1000a74f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_call_AdjustTokenPrivileges__err__0x_x
push 0
push 4
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0x10
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a69d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
add esp, 0x24
ret 8
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0xc]
push edx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x1000a7c5
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
mov edi, eax
test edi, edi
je 0x1000a7b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_call_RegSaveKey__err__0x_x
push 0
push 4
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0x10
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000a7e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_call_RegOpenKeyEx__err__0x_x
push 0
push 4
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0x10
mov eax, dword [esp + 0x30]
xor ecx, ecx
test edi, edi
sete cl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000a80d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
add esp, 0x24
ret 8