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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x110], eax
cmp dword [ebp + 0xc], 0
je 0x1002463
and dword [ebp - 0x10c], 0
jmp 0x100265b
mov eax, dword [ebp - 0x110]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x118], eax
mov edi, dword [ebp - 0x118]
lea edx, [ebp - 0x108]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x108]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp - 0x114]
lea eax, [ebp + eax - 0x108]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x10024e8
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x108]
cmp eax, ecx
jb 0x10024e8
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
jmp 0x10024c7
mov eax, dword [ebp - 4]
and byte [eax + 1], 0
lea eax, [ebp - 0x108]
push eax
push 0
push 0x100126c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x10025e5
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x1002553
mov byte [ebp - 0x108], 0x2e
mov byte [ebp - 0x107], 0x5c
and byte [ebp - 0x106], 0
lea eax, [ebp - 0x108]
push eax
push 0
push 0x100126c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x100258b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10c], eax
jmp 0x10025e3
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.01004562
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x10025ca
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x118]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x10025e3
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x100263d
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.01004562
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x1002624
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x118]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x100263d
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x110]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x110]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x110]
call fcn.01002871
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 - 0x10c], 0
sete al
pop edi
pop esi
leave
ret 8