Function at 0x1024980
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x102c22c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov esi, 0x1009fb0
push esi
mov dword [ebp - 0x118], eax
xor eax, eax
push 0x1ad
push 0x1009e2c
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], eax
call fcn.01015cf6
push dword [ebp + 8]
push esi
push 0x1ae
push 0x1009f98
call fcn.01015cf6
add esp, 0x1c
test edi, edi
je 0x1024a07
cmp byte [edi], 0
je 0x1024a07
push edi
push esi
push 0x1b0
push 0x1009df0
call fcn.01015cf6
add esp, 0x10
push ebx
push esi
push 0x1b2
push 0x1009dd4
call fcn.01015cf6
push dword [ebp + 0x18]
push esi
push 0x1b3
push 0x1009f74
call fcn.01015cf6
xor ebx, ebx
add esp, 0x20
cmp edi, ebx
je 0x1024a61
cmp byte [edi], bl
je 0x1024a61
lea eax, [ebp - 0x114]
push eax
push edi
call fcn.01024264
cmp eax, 0xffffffff
je 0x1024a61
push eax
push esi
push 0x1c2
push 0x1009c48
mov dword [ebp + 8], eax
call fcn.01015cf6
add esp, 0x10
cmp dword [ebp + 8], ebx
mov byte [ebp - 0x108], 0
je 0x1024a9d
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x1024a9d
push ebx
push esi
push 0x1c8
push 0x1009f38
call fcn.01015c8e
add esp, 0x10
jmp 0x1024c2b
mov ebx, dword [ebp - 0x114]
test ebx, ebx
mov edi, 0x104
je 0x1024b12
cmp byte [ebx], 0
je 0x1024b12
cmp byte [ebp - 0x108], 0
je 0x1024ae2
lea eax, [ebp - 0x10c]
push eax
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.0101cf7a
test eax, eax
jne 0x1024aee
push esi
push 0x1d2
push 0x1009f18
jmp 0x1024b7f
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], edi
push ebx
push dword [ebp - 0x10c]
push eax
call fcn.0100d9cc
test eax, eax
mov dword [ebp - 0x110], eax
jge 0x1024b12
push esi
push 0x1de
push 0x1009ef8
jmp 0x1024b7f
lea eax, [ebp - 0x10c]
push eax
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.0101cf7a
mov ebx, eax
test ebx, ebx
jne 0x1024b34
push esi
push 0x1ea
jmp 0x1024ad8
push dword [ebp - 0x11c]
push dword [ebp - 0x10c]
push ebx
call fcn.0100d9cc
test eax, eax
mov dword [ebp - 0x110], eax
jge 0x1024b58
push esi
push 0x1f1
jmp 0x1024b0b
push dword [ebp - 0x118]
push dword [ebp - 0x10c]
push ebx
call fcn.0101d014
test eax, eax
mov dword [ebp - 0x110], eax
jge 0x1024b89
push esi
push 0x1f8
push 0x1009ed8
call fcn.01015c8e
jmp 0x1024c28
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1024bbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push 0x201
push 0x1009eac
call fcn.01015cf6
add esp, 0x14
jmp 0x1024c2b
mov edi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
lea eax, [ebp - 0x108]
push eax
push 1
push 4
call edi
cmp dword [ebp + 0x18], 0
je 0x1024c18
lea eax, [ebp - 0x108]
push eax
mov byte [ebx - 1], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
lea eax, [ebp - 0x108]
je 0x1024bfe
push 0
push eax
push 1
push 0x10
call edi
jmp 0x1024c18
push dword [ebp - 0x110]
push eax
push esi
push 0x210
push 0x1009e74
call fcn.01015c8e
add esp, 0x14
push esi
push 0x218
push 0x1009e54
call fcn.01015cf6
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret 0x14