Function at 0x6790d495
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6798e358
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0xc
add eax, 0xfffffffe
cmp eax, 6
push ebx
push ebp
push esi
push edi
mov edi, ecx
ja case.0x6790d48e.3
jmp dword [eax*4 + 0x6790d758]
mov eax, dword [edi + 0xf8]
xor ebx, ebx
mov ecx, dword [eax + 0x24]
cmp ecx, ebx
je 0x6790d4a7
push ecx
jmp 0x6790d4b2
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ebp, eax
cmp ebp, ebx
je case.0x6790d48e.3
mov esi, dword [esp + 0x30]
cmp esi, ebx
je case.0x6790d48e.3
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x6790d642
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ebx
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x6790d4ef
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
cmp eax, ebx
je case.0x6790d48e.3
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jge 0x6790d52d
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
cmp eax, ebx
je case.0x6790d48e.3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp case.0x6790d48e.3
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push edx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x6790d56b
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
cmp eax, ebx
je case.0x6790d48e.3
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp case.0x6790d48e.3
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [esi + 4]
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push edx
push ebx
push eax
call dword [ecx + 0x1c]
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x6790d591
mov dword [esp + 0x14], eax
jmp 0x6790d5b0
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 4]
push 0x679bc25c
push ebx
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
push eax
push esi
mov ecx, edi
call dword [edx + 0x6c]
mov edi, dword [edi + 0x110]
cmp edi, ebx
je 0x6790d5e9
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
push edi
push edx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x6790d5e9
mov eax, dword [ebp + 0x20]
push ebx
push 5
push 0x273c
push eax
jmp 0x6790d5f4
mov ecx, dword [ebp + 0x20]
push ebx
push ebx
push 0x273c
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
cmp ecx, ebx
je 0x6790d615
cmp eax, ebx
je 0x6790d615
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x6790d627
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x24], 0xffffffff
je case.0x6790d48e.3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp case.0x6790d48e.3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov edx, dword [eax]
push ecx
mov ecx, dword [esi]
push 0x679bc25c
push ebx
push ecx
push eax
call dword [edx + 0x14]
test eax, eax
jl 0x6790d6d1
mov eax, dword [esp + 0x2c]
mov edx, dword [edi]
push eax
push esi
mov ecx, edi
call dword [edx + 0x6c]
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl case.0x6790d48e.3
mov edi, dword [edi + 0x110]
cmp edi, ebx
je 0x6790d6b4
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 4]
push edi
push edx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x6790d6b4
mov eax, dword [ebp + 0x20]
push ebx
push 5
push 0x273c
push eax
jmp 0x6790d6bf
mov ecx, dword [ebp + 0x20]
push ebx
push ebx
push 0x273c
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x2c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
jmp case.0x6790d48e.3
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl case.0x6790d48e.3
mov edi, dword [edi + 0x110]
cmp edi, ebx
je 0x6790d710
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 4]
push edi
push edx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x6790d710
mov eax, dword [ebp + 0x20]
push ebx
push 5
push 0x273c
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp case.0x6790d48e.3
mov eax, dword [esp + 0x30]
test eax, eax
je case.0x6790d48e.3
mov ecx, dword [eax + 8]
mov edx, dword [edi]
push ecx
push eax
mov ecx, edi
call dword [edx + 0x6c]
jmp case.0x6790d48e.3
mov eax, dword [esp + 0x30]
test eax, eax
je case.0x6790d48e.3
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x78]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8