Function at 0x107e660
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x440], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x20]
push edi
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x2c]
xor edi, edi
mov esi, 0x1028898
push esi
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0x30]
push 0x77
push 0x1028884
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x41c], edi
call fcn.01071b3e
push dword [ebp + 8]
push esi
push 0x78
push 0x1028868
call fcn.01071b3e
add esp, 0x1c
cmp ebx, edi
je 0x107e714
cmp byte [ebx], 0
je 0x107e714
push ebx
push esi
push 0x7a
push 0x1028848
call fcn.01071b3e
add esp, 0x10
push dword [ebp - 0x440]
push esi
push 0x7c
push 0x102882c
call fcn.01071b3e
push dword [ebp - 0x428]
push esi
push 0x7d
push 0x102880c
call fcn.01071b3e
add esp, 0x20
cmp dword [ebp - 0x434], edi
je 0x107e771
push dword [ebp - 0x434]
push esi
push 0x80
push 0x10287f0
call fcn.01071b3e
push dword [ebp + 0x1c]
push esi
push 0x81
push 0x10287d4
call fcn.01071b3e
add esp, 0x20
cmp dword [ebp - 0x424], edi
je 0x107e794
push dword [ebp - 0x424]
push esi
push 0x85
push 0x10287b0
call fcn.01071b3e
add esp, 0x10
jmp 0x107e7a7
push esi
push 0x87
push 0x1028768
call fcn.01071b3e
add esp, 0xc
movzx eax, word [ebp + 0x24]
push eax
push esi
push 0x8a
push 0x102874c
call fcn.01071b3e
push dword [ebp + 0x28]
push esi
push 0x8b
push 0x1028730
call fcn.01071b3e
add esp, 0x20
cmp dword [ebp - 0x438], edi
je 0x107e7f5
push dword [ebp - 0x438]
push esi
push 0x8e
push 0x1028710
call fcn.01071b3e
add esp, 0x10
jmp 0x107e808
push esi
push 0x90
push 0x10286f4
call fcn.01071b3e
add esp, 0xc
push edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
test edi, edi
jge 0x107e827
push edi
push esi
push 0x95
push 0x10286e4
jmp 0x107ec82
lea eax, [ebp - 0x418]
push eax
push 0x1023788
push 1
push 0
push 0x1023798
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jge 0x107e851
push edi
push esi
push 0x9c
jmp 0x107e81d
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
lea edx, [ebp - 0x42c]
push edx
push 0x10237a8
push eax
call dword [ecx]
mov edi, eax
test edi, edi
jge 0x107e877
push edi
push esi
push 0xa4
jmp 0x107e81d
test ebx, ebx
je 0x107e8a9
cmp byte [ebx], 0
je 0x107e8a9
lea eax, [ebp - 0x420]
push eax
push ebx
call fcn.0107e607
cmp eax, 0xffffffff
je 0x107e8a9
push eax
push esi
push 0xb1
push 0x10286a0
mov dword [ebp + 8], eax
call fcn.01071b3e
add esp, 0x10
cmp dword [ebp + 8], 0
mov byte [ebp - 0x108], 0
je 0x107e8de
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x107e8de
push esi
push 0xb7
push 0x1028674
jmp 0x107ecb1
mov eax, dword [ebp - 0x420]
test eax, eax
mov ebx, 0x104
je 0x107e952
cmp byte [eax], 0
je 0x107e952
cmp byte [ebp - 0x108], 0
je 0x107e923
lea eax, [ebp - 0x41c]
push eax
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.0107bc6c
test eax, eax
jne 0x107e92f
push esi
push 0xbf
push 0x1028658
jmp 0x107ecb1
lea eax, [ebp - 0x108]
mov dword [ebp - 0x41c], ebx
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push eax
call int.01037469
mov edi, eax
test edi, edi
jge 0x107e952
push esi
push 0xca
jmp 0x107ecac
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.01073070
test eax, eax
jne 0x107e991
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x107e991
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push 0xd6
push 0x1028620
call fcn.01071aea
add esp, 0x14
jmp 0x107eccd
lea eax, [ebp - 0x41c]
push eax
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.0107bc6c
test eax, eax
mov dword [ebp - 0x420], eax
jne 0x107e9ba
push esi
push 0xe2
jmp 0x107e919
push dword [ebp - 0x440]
push dword [ebp - 0x41c]
push eax
call int.01037469
mov edi, eax
test edi, edi
jge 0x107e9dd
push esi
push 0xe9
jmp 0x107ecac
push 0x102838c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
call fcn.0107bd01
mov edi, eax
test edi, edi
jge 0x107ea09
push esi
push 0xf0
push 0x1028604
jmp 0x107ecb1
push dword [ebp - 0x428]
lea eax, [ebp - 0x310]
push ebx
push eax
call fcn.0108c975
mov edi, eax
test edi, edi
jge 0x107ea2d
push esi
push 0xfc
jmp 0x107ecac
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsA]
cmp byte [eax], 0
mov dword [ebp - 0x428], eax
je 0x107ea76
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
call fcn.0108c975
mov edi, eax
test edi, edi
jge 0x107ea64
push esi
push 0x106
jmp 0x107ecac
mov eax, dword [ebp - 0x428]
dec eax
cmp byte [eax], 0x20
je 0x107ea6a
mov byte [eax + 1], 0
jmp 0x107ea7d
mov byte [ebp - 0x414], 0
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesA]
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0107d284
mov edi, eax
test edi, edi
jge 0x107eab5
push edi
push esi
push 0x117
push 0x10285d4
jmp 0x107ec82
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x50]
mov edi, eax
test edi, edi
jge 0x107eadf
push edi
push esi
push 0x11e
push 0x10285a8
jmp 0x107ec82
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
lea edx, [ebp - 0x414]
push edx
push eax
call dword [ecx + 0x2c]
mov edi, eax
test edi, edi
jge 0x107eb09
push edi
push esi
push 0x124
push 0x1028574
jmp 0x107ec82
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x434]
call fcn.0107d284
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jge 0x107eb30
push edi
push esi
push 0x12a
jmp 0x107eaab
push dword [ebp + 0x1c]
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x44]
mov edi, eax
cmp edi, ebx
jge 0x107eb5d
push edi
push esi
push 0x130
push 0x1028540
jmp 0x107ec82
cmp dword [ebp - 0x424], ebx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
je 0x107eb8e
push dword [ebp - 0x424]
push eax
call dword [ecx + 0x24]
mov edi, eax
cmp edi, ebx
jge 0x107eba6
push edi
push esi
push 0x137
push 0x1028508
jmp 0x107ec82
push 0x10284f0
push eax
call dword [ecx + 0x24]
mov edi, eax
cmp edi, ebx
jge 0x107eba6
push edi
push esi
push 0x13d
jmp 0x107eb84
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov edi, eax
cmp edi, ebx
jge 0x107ebcc
push edi
push esi
push 0x143
push 0x10284c0
jmp 0x107ec82
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov edi, eax
cmp edi, ebx
jge 0x107ebf2
push edi
push esi
push 0x149
push 0x1028490
jmp 0x107ec82
mov eax, dword [ebp - 0x418]
push dword [ebp - 0x438]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov edi, eax
cmp edi, ebx
jge 0x107ec18
push edi
push esi
push 0x14f
push 0x102845c
jmp 0x107ec82
cmp dword [0x10bd0a8], ebx
je 0x107ec8c
lea eax, [ebp - 0x108]
push eax
call fcn.01076bee
mov edi, dword [ebp - 0x444]
cmp edi, ebx
mov dword [ebp - 0x430], eax
je 0x107ec8c
cmp byte [edi], 0
je 0x107ec8c
lea eax, [ebp - 0x108]
push eax
push 0x1028420
call fcn.01071b3e
pop ecx
pop ecx
push edi
call fcn.01076bee
push dword [ebp + 0x34]
mov dword [ebp - 0x43c], eax
push eax
push dword [ebp - 0x430]
call dword [0x10bd0a8]
mov edi, eax
cmp edi, ebx
jge 0x107ec8c
push edi
push esi
push 0x161
push 0x10283e8
call fcn.01071aea
add esp, 0x10
jmp 0x107eccd
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax]
push 1
push dword [ebp - 0x430]
push eax
call dword [ecx + 0x18]
mov edi, eax
cmp edi, ebx
jge 0x107ecbb
push esi
push 0x16b
push 0x10283c8
call fcn.01071aea
add esp, 0xc
jmp 0x107eccd
push ebx
lea eax, [ebp - 0x108]
push eax
push 1
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x107ecdd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x107eced
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x43c], 0
je 0x107ed02
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0x30