Function at 0x107ed19
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1099a38]
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, 0x1028a08
push esi
mov dword [ebp - 0x118], eax
xor eax, eax
push 0x1ad
push 0x1028884
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], eax
call fcn.01071b3e
push dword [ebp + 8]
push esi
push 0x1ae
push 0x10289f0
call fcn.01071b3e
add esp, 0x1c
test edi, edi
je 0x107eda0
cmp byte [edi], 0
je 0x107eda0
push edi
push esi
push 0x1b0
push 0x1028848
call fcn.01071b3e
add esp, 0x10
push ebx
push esi
push 0x1b2
push 0x102882c
call fcn.01071b3e
push dword [ebp + 0x18]
push esi
push 0x1b3
push 0x10289cc
call fcn.01071b3e
xor ebx, ebx
add esp, 0x20
cmp edi, ebx
je 0x107edfa
cmp byte [edi], bl
je 0x107edfa
lea eax, [ebp - 0x114]
push eax
push edi
call fcn.0107e607
cmp eax, 0xffffffff
je 0x107edfa
push eax
push esi
push 0x1c2
push 0x10286a0
mov dword [ebp + 8], eax
call fcn.01071b3e
add esp, 0x10
cmp dword [ebp + 8], ebx
mov byte [ebp - 0x108], 0
je 0x107ee36
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 0x107ee36
push ebx
push esi
push 0x1c8
push 0x1028990
call fcn.01071aea
add esp, 0x10
jmp 0x107efc4
mov ebx, dword [ebp - 0x114]
test ebx, ebx
mov edi, 0x104
je 0x107eeab
cmp byte [ebx], 0
je 0x107eeab
cmp byte [ebp - 0x108], 0
je 0x107ee7b
lea eax, [ebp - 0x10c]
push eax
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.0107bc6c
test eax, eax
jne 0x107ee87
push esi
push 0x1d2
push 0x1028970
jmp 0x107ef18
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], edi
push ebx
push dword [ebp - 0x10c]
push eax
call int.01037469
test eax, eax
mov dword [ebp - 0x110], eax
jge 0x107eeab
push esi
push 0x1de
push 0x1028950
jmp 0x107ef18
lea eax, [ebp - 0x10c]
push eax
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.0107bc6c
mov ebx, eax
test ebx, ebx
jne 0x107eecd
push esi
push 0x1ea
jmp 0x107ee71
push dword [ebp - 0x11c]
push dword [ebp - 0x10c]
push ebx
call int.01037469
test eax, eax
mov dword [ebp - 0x110], eax
jge 0x107eef1
push esi
push 0x1f1
jmp 0x107eea4
push dword [ebp - 0x118]
push dword [ebp - 0x10c]
push ebx
call fcn.0107bd01
test eax, eax
mov dword [ebp - 0x110], eax
jge 0x107ef22
push esi
push 0x1f8
push 0x1028930
call fcn.01071aea
jmp 0x107efc1
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x107ef56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push 0x201
push 0x1028904
call fcn.01071b3e
add esp, 0x14
jmp 0x107efc4
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 0x107efb1
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 0x107ef97
push 0
push eax
push 1
push 0x10
call edi
jmp 0x107efb1
push dword [ebp - 0x110]
push eax
push esi
push 0x210
push 0x10288cc
call fcn.01071aea
add esp, 0x14
push esi
push 0x218
push 0x10288ac
call fcn.01071b3e
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0x14