Function at 0x10007b30
Capabilities:
Delete file
Get common file path
Get session user name
Set file attributes

Disassembly:
sub esp, 0x33c
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x338], eax
push 0x1002a7cf
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0
call fcn.100077e0
push 0x1002a7cf
lea ecx, [esp + 8]
call fcn.100077e0
push 0x1002a7cf
lea ecx, [esp + 4]
call fcn.100077e0
push 0x1002a7cf
lea ecx, [esp + 0x10]
call fcn.100077e0
lea ecx, [esp + 0x14]
call fcn.1000cb01
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x238]
push 0x104
push eax
call fcn.100156f9
lea ecx, [esp + 0x38]
push 0x20
push ecx
call fcn.10014ba0
add esp, 0x14
test eax, eax
je 0x10007d12
lea edx, [esp + 0x2c]
sub eax, edx
test eax, eax
jle 0x10007d12
mov byte [esp + eax + 0x2c], 0
push 0x104
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x10007c17
push str.C:Windows
lea ecx, [esp + 0x134]
push 0x104
push ecx
call fcn.100156f9
add esp, 0xc
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10007c21
sub eax, edx
push eax
lea edx, [esp + 0x134]
push edx
lea ecx, [esp + 0xc]
call fcn.100062b0
push str.Users
push str.Windows
lea ecx, [esp + 0xc]
call fcn.100063c0
mov ecx, dword [esp + 4]
lea eax, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 8]
push str._s_s
push edx
call fcn.10006900
lea eax, [esp + 0x244]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10007c77
push esi
sub eax, edx
push eax
lea eax, [esp + 0x23c]
push eax
lea ecx, [esp + 0x14]
call fcn.100062b0
push 0x1002aa30
push 0x1002aa2c
lea ecx, [esp + 0x14]
call fcn.100063c0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
call fcn.10006900
mov ecx, dword [esp + 0x14]
add esp, 0x10
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.1000cb8d
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.1000c74a
test esi, esi
pop esi
je 0x10007d12
mov edx, dword [esp]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
push eax
push ecx
call fcn.100167fa
add esp, 8
test eax, eax
je 0x10007d12
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call fcn.1000cb25
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007d3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007d5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007d7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007d9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.1001530a
add esp, 0x33c
ret