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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x114], eax
cmp dword [ebp + 0xc], 0
je 0x10084ea
and dword [ebp - 8], 0
jmp 0x10086f2
mov eax, dword [ebp - 0x114]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x120]
mov al, byte [eax]
mov byte [ebp - 0x129], al
mov eax, dword [ebp - 0x124]
mov cl, byte [ebp - 0x129]
mov byte [eax], cl
mov eax, dword [ebp - 0x120]
inc eax
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x124]
inc eax
mov dword [ebp - 0x124], eax
cmp byte [ebp - 0x129], 0
jne 0x1008523
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
lea eax, [ebp + eax - 0x110]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x10085a6
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x110]
cmp eax, ecx
jb 0x10085a6
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
jmp 0x1008585
mov eax, dword [ebp - 4]
and byte [eax + 1], 0
lea eax, [ebp - 0x110]
push eax
push 0
push 0x1001a84
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1008685
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1008605
mov byte [ebp - 0x110], 0x2e
mov byte [ebp - 0x10f], 0x5c
and byte [ebp - 0x10e], 0
lea eax, [ebp - 0x110]
push eax
push 0
push 0x1001a84
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1008634
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1008683
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 8]
call fcn.010081bf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100866d
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x11c]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x1008683
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10086d4
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 8]
call fcn.010081bf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10086be
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x11c]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x10086d4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x114]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x114]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x114]
call fcn.01006305
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
leave
ret 8