Function at 0x10036b40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10156580
mov eax, dword fs:[0]
push eax
sub esp, 0x544
mov eax, dword [0x101a4494]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x20]
xor esi, esi
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x298], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x18], esi
je 0x10036bee
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x29c], esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
lea eax, [ebp - 0x288]
mov dword [ebp - 0x288], esi
push eax
push esi
push esi
push 0xa
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x10036bee
mov ecx, dword [ebp - 0x29c]
lea edx, [ebp - 0x284]
push edx
push 0x101652f0
push esi
push dword [ebp - 0x288]
mov dword [ebp - 0x284], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
test eax, eax
je 0x10036bfd
push dword [ebp - 0x288]
call dword [sym.imp.SHELL32.dll_ILFree]
lea ecx, [ebp + 8]
call fcn.100098e0
xor al, al
jmp 0x10036ed6
mov ecx, dword [ebp - 0x284]
lea edx, [ebp - 0x2a0]
push edx
push 0xc0
mov dword [ebp - 0x2a0], 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x10]
test eax, eax
je 0x10036c4c
push dword [ebp - 0x288]
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x284]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp + 8]
call fcn.100098e0
xor al, al
jmp 0x10036ed6
mov ebx, dword [sym.imp.SHLWAPI.dll_StrRetToStrW]
xor al, al
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x28c], 0
mov byte [ebp - 0x27d], al
mov byte [ebp - 0x27e], al
mov ecx, dword [ebp - 0x2a0]
lea edx, [ebp - 0x2a8]
push edx
lea edx, [ebp - 0x28c]
push edx
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0xc]
cmp eax, 1
je 0x10036ec8
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x28c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10036c70
mov ecx, dword [ebp - 0x284]
lea edx, [ebp - 0x550]
push edx
push 0x8000
push dword [ebp - 0x28c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x2c]
test eax, eax
jne 0x10036c70
mov ecx, dword [ebp - 0x284]
lea edx, [ebp - 0x448]
push edx
push 0
push dword [ebp - 0x28c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x2c]
test eax, eax
jne 0x10036c70
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 1
push eax
push 0
lea eax, [ebp - 0x448]
push eax
call ebx
push dword [ebp - 0x290]
lea ecx, [ebp - 0x264]
call fcn.10014d60
cmp dword [ebp - 0x250], 8
lea eax, [ebp - 0x264]
push dword [ebp - 0x254]
cmovae eax, dword [ebp - 0x264]
xor ecx, ecx
mov word [ebp - 0x234], cx
lea ecx, [ebp - 0x234]
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
call fcn.1000bc10
or esi, 3
mov dword [ebp - 0x298], esi
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 4
call fcn.10038930
test al, al
je 0x10036eff
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x234]
call fcn.10038760
push eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 5
call fcn.1000da50
or esi, 4
mov dword [ebp - 0x298], esi
lea ecx, [ebp - 0x27c]
call fcn.100098e0
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
push dword [ebp - 0x23c]
cmovae eax, dword [ebp - 0x24c]
lea ecx, [ebp + 8]
push eax
call fcn.100386c0
test al, al
je 0x10036ef4
mov dword [ebp - 0x294], 0
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 8
push eax
push 0
lea eax, [ebp - 0x550]
push eax
call ebx
push dword [ebp - 0x294]
lea ecx, [ebp - 0x27c]
call fcn.10014d60
push 0x98
lea eax, [ebp - 0x340]
mov byte [ebp - 4], 9
push 0
push eax
call fcn.1012e610
add esp, 0xc
lea ecx, [ebp - 0x340]
call fcn.100090f0
mov esi, eax
push str.match_it._path:
push esi
mov byte [ebp - 4], 0xa
call fcn.100086f0
add esp, 8
lea eax, [ebp - 0x27c]
mov ecx, esi
push eax
call fcn.10033f00
lea ecx, [ebp - 0x340]
mov byte [ebp - 4], 9
call fcn.10009a70
mov ecx, dword [ebp - 0x2a4]
lea eax, [ebp - 0x27c]
push eax
call fcn.100352b0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 0x27d], 1
call fcn.100098e0
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x10036e9a
push eax
call edi
lea ecx, [ebp - 0x24c]
call fcn.100098e0
lea ecx, [ebp - 0x234]
call fcn.100098e0
lea ecx, [ebp - 0x264]
call fcn.100098e0
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x10036ec8
push eax
call edi
lea ecx, [ebp + 8]
call fcn.100098e0
mov al, byte [ebp - 0x27d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100f4dc3
mov esp, ebp
pop ebp
ret 0x1c
lea ecx, [ebp - 0x24c]
call fcn.100098e0
lea ecx, [ebp - 0x234]
call fcn.100098e0
jmp 0x10036f30
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 2
call fcn.100098e0
mov eax, dword [ebp - 0x290]
mov byte [ebp - 4], 0
test eax, eax
je 0x10036c70
push eax
call edi
jmp 0x10036c70