Function at 0x100910a
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1014b48]
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x11c], eax
cmp dword [ebp + 0xc], 0
je 0x1009143
and dword [ebp - 8], 0
jmp 0x100934b
mov eax, dword [ebp - 0x11c]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x128]
mov al, byte [eax]
mov byte [ebp - 0x131], al
mov eax, dword [ebp - 0x12c]
mov cl, byte [ebp - 0x131]
mov byte [eax], cl
mov eax, dword [ebp - 0x128]
inc eax
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x12c]
inc eax
mov dword [ebp - 0x12c], eax
cmp byte [ebp - 0x131], 0
jne 0x100917c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
lea eax, [ebp + eax - 0x118]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x10091ff
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x118]
cmp eax, ecx
jb 0x10091ff
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
jmp 0x10091de
mov eax, dword [ebp - 4]
mov byte [eax + 1], 0
lea eax, [ebp - 0x118]
push eax
push 0
push 0x1001a88
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10092de
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100925e
mov byte [ebp - 0x118], 0x2e
mov byte [ebp - 0x117], 0x5c
mov byte [ebp - 0x116], 0
lea eax, [ebp - 0x118]
push eax
push 0
push 0x1001a88
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100928d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10092dc
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call fcn.01008de6
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10092c6
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x124]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x10092dc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x100932d
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call fcn.01008de6
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1009317
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x124]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x100932d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x11c]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x11c]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x11c]
call fcn.01006e7f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
cmp dword [ebp - 8], 0
sete al
mov ecx, dword [ebp - 0xc]
call fcn.0100c759
leave
ret 8