Function at 0x1000ca10
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002214b
mov eax, dword fs:[0]
push eax
sub esp, 0x9e4
mov eax, dword [0x1002db00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.ArmAccess.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [ebp - 0x93c], ebx
test ebx, ebx
je 0x1000cd36
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UpdateEnvironment
push ebx
call esi
push str.InstallKey
push ebx
mov edi, eax
call esi
push str.GetProtectionVariableA
push ebx
mov dword [ebp - 0x938], eax
call esi
mov esi, eax
test edi, edi
je 0x1000cd2f
cmp dword [ebp - 0x938], 0
je 0x1000cd2f
test esi, esi
je 0x1000cd2f
call edi
push 0x100
lea eax, [ebp - 0x530]
push eax
push str.ALTUSERNAME
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x1000cd2f
lea ecx, [ebp - 0x530]
push str.DEFAULT
push ecx
call fcn.100107f4
add esp, 8
test eax, eax
jne 0x1000cd2f
lea edx, [ebp - 0x12c]
push edx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x10025648
lea eax, [ebp - 0x12c]
push 0x105
push eax
call fcn.10010495
add esp, 0xc
push 0x101
lea ecx, [ebp - 0x230]
push ecx
push str.PROTECTEDFILE
call esi
call edi
test eax, eax
jne 0x1000cb52
lea edx, [ebp - 0x230]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
lea ecx, [ebp - 0x230]
push ecx
push 0x105
lea edx, [ebp - 0x12c]
push edx
jmp 0x1000cb63
push str._DATA
push 0x105
lea eax, [ebp - 0x12c]
push eax
call fcn.10010495
add esp, 0xc
push str..licx
lea ecx, [ebp - 0x12c]
push 0x105
push ecx
call fcn.10010495
add esp, 0xc
push 1
push 0x40
push 1
lea edx, [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x9f0]
call fcn.1000c790
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x98c], esi
je 0x1000cd04
push 0x1ff
lea eax, [ebp - 0x42f]
push esi
push eax
mov byte [ebp - 0x430], 0
call fcn.1000e7d0
push 0x1ff
lea ecx, [ebp - 0x92f]
push esi
push ecx
mov byte [ebp - 0x930], 0
call fcn.1000e7d0
push 0x1ff
lea edx, [ebp - 0x72f]
push esi
push edx
mov byte [ebp - 0x730], 0
call fcn.1000e7d0
mov ecx, dword [0x10025618]
mov edx, dword [0x1002561c]
mov eax, dword [str.0123456789ABCDEF]
add esp, 0x24
mov dword [ebp - 0x20], ecx
mov cl, byte [0x10025624]
push esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
mov eax, dword [0x10025620]
push 0x200
lea edx, [ebp - 0x430]
mov byte [ebp - 0x14], cl
push edx
lea ecx, [ebp - 0x9f0]
mov dword [ebp - 0x18], eax
lea edi, [ebp - 0x930]
call fcn.1000c730
lea eax, [ebp - 0x430]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000cc50
sub eax, edx
shr eax, 1
mov dword [ebp - 0x940], eax
test eax, eax
jle 0x1000ccd8
lea ecx, [ebp - 0x24]
mov al, cl
shl al, 4
add al, cl
mov byte [ebp - 0x931], al
jmp 0x1000cc80
movsx eax, byte [ebp + esi*2 - 0x430]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.100106de
mov ebx, eax
movsx eax, byte [ebp + esi*2 - 0x42f]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.100106de
shl bl, 4
sub bl, byte [ebp - 0x931]
add esp, 0x10
add al, bl
cmp al, 0x2a
jne 0x1000ccc3
mov byte [edi], 0
lea edi, [ebp - 0x730]
jmp 0x1000ccc6
mov byte [edi], al
inc edi
inc esi
mov byte [edi], 0
cmp esi, dword [ebp - 0x940]
jl 0x1000cc80
mov ebx, dword [ebp - 0x93c]
lea ecx, [ebp - 0x9f0]
call fcn.1000c760
lea edx, [ebp - 0x730]
push edx
lea eax, [ebp - 0x930]
push eax
call dword [ebp - 0x938]
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x988]
mov dword [ebp - 4], 0xffffffff
call fcn.1000c900
lea edx, [ebp - 0x988]
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1000deaa
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000ed3f
mov esp, ebp
pop ebp
ret