Function at 0x435c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x466eb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x435cc4
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435cb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438fc8
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
je 0x435cea
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x435ca7
push ebx
lea ecx, [ebp + 0x10]
push 0x45ad0c
push ecx
mov dword [ebp - 0x21c], 0
call fcn.00435bc0
add esp, 8
test al, al
je 0x435d97
push 0x457c54
push 1
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp + 0x10]
call fcn.0040f090
push eax
call fcn.0040b9f0
mov bl, al
mov eax, dword [ebp - 0x210]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435d51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x435d97
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx - 0xc]
dec eax
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp + 0x10]
call fcn.0040f120
push eax
lea ecx, [ebp + 0x10]
call fcn.00409e00
mov eax, dword [ebp - 0x210]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435d97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x214]
push ecx
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [ebp - 0x214]
xor eax, eax
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x234], eax
mov eax, 0x51
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x230], 0x457c48
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x23c], esi
je 0x435e13
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x228], 0x4347a0
mov ecx, 1
sub ecx, dword [eax - 4]
or ecx, dword [eax - 8]
jge 0x435e3a
push 0
lea ecx, [ebp + 0x10]
call fcn.00409fa0
mov eax, dword [ebp + 0x10]
push edi
lea edx, [ebp - 0x23c]
push edx
mov dword [ebp - 0x224], eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, eax
test esi, esi
je 0x435edf
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x435ed5
mov ebx, dword [ebp - 0x218]
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, ebx
call fcn.00409cb0
push 0x45ad0c
push ebx
call fcn.00435bc0
add esp, 8
test al, al
je 0x435ed5
push 0x457c54
push 1
lea edx, [ebp - 0x210]
push edx
mov ecx, ebx
call fcn.0040f090
push eax
call fcn.00435bc0
add esp, 8
lea ecx, [ebp - 0x210]
mov bl, al
call fcn.00409de0
test bl, bl
je 0x435ed5
mov ecx, dword [ebp - 0x218]
push 0x457c54
call fcn.00435b50
push esi
mov ebx, 1
call edi
jmp 0x435ee5
mov ebx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x435ef2
push eax
call edi
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
test edx, edx
jg 0x435f20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
xor ecx, ebp
pop esi
call fcn.00438fc8
mov esp, ebp
pop ebp
ret