Function at 0x407ef3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4200a2
call fcn.00414f70
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x30], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov eax, dword [0x434828]
mov edi, 0x42274c
cmp eax, ebx
je 0x407f5b
mov dword [ebp - 0x2c], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push 0x4266c0
push eax
mov byte [ebp - 4], 4
call dword [ecx]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x407f4d
mov ecx, dword [eax]
push ebx
push ebx
push ebx
push 0x16
push edi
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x407f5b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
cmp dword [ebp - 0x1c], ebx
je 0x40819b
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
call esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push ebx
call esi
push dword [ebp - 0x18]
push dword [ebp - 0x34]
call dword [sym.imp.SHELL32.dll_ILCombine]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
push edx
push 0x42275c
push ebx
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x407fc3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 0xa
push eax
push 0x4227bc
push 1
push ebx
push edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp + 0x10], ebx
je 0x408116
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push 0x18
mov byte [ebp - 4], 0xc
call fcn.00415745
mov edi, eax
pop ecx
mov dword [ebp - 0x40], edi
cmp edi, ebx
mov byte [ebp - 4], 0xd
je 0x408032
mov ecx, edi
call fcn.004083b0
push 0x43484c
mov dword [edi], 0x4225bc
mov dword [edi + 4], 0x4225ac
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x408034
xor edi, edi
mov eax, edi
add edi, 4
neg eax
sbb eax, eax
mov byte [ebp - 4], 0xc
and eax, edi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00408387
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x408062
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push 0x4266b0
push eax
call dword [ecx]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x408086
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
push 0x800d
push dword [edx + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push 0x10000004
push 0xffffffffffffffff
mov edi, eax
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp + 0x10]
push 0x20000008
push dword [ebp - 0x2c]
mov ecx, dword [eax]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp + 0x10]
push 0x20000000
push ebx
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
cmp esi, ebx
jl 0x4080d3
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x18]
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], ebx
cmp eax, ebx
mov byte [ebp - 4], 0xb
je 0x4080f0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0xa
cmp eax, ebx
je 0x408101
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x408116
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push 0x4266a0
push eax
call dword [ecx]
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x40812e
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x426690
push eax
call dword [ecx]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x408149
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x426680
push ecx
call dword [eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x10], ebx
mov byte [ebp - 4], 9
jne 0x4081be
cmp eax, ebx
je 0x40815f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
mov byte [ebp - 4], 8
je 0x40816d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x40817e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00408370
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x40819b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4081ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00401cbe
xor eax, eax
jmp 0x40834a
cmp eax, ebx
je 0x4081cb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
mov byte [ebp - 4], 8
je 0x4081d9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x4081ea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00408370
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0x10
push eax
push str.ECD4FC4F_521C_11D0_B792_00A0C90312E1
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x30]
push eax
push 0x42276c
push 1
lea eax, [ebp - 0x64]
push ebx
push eax
call esi
lea eax, [ebp - 0x24]
push eax
push 0x4227cc
push 1
push ebx
push 0x42270c
call esi
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x408252
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x4266a0
push eax
call dword [ecx]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x408265
push dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
je 0x408278
push dword [ebp - 0x10]
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp eax, ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], ecx
je 0x4082aa
mov ecx, dword [eax]
lea edx, [ebp - 0x54]
push 0xc0000040
push edx
lea edx, [ebp - 0x44]
push edx
push eax
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
mov byte [ebp - 4], 0xf
je 0x4082b8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0xe
cmp eax, ebx
je 0x4082c9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x4082da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, 0x434828
push ebx
push edi
call fcn.00408387
mov eax, dword [ebp - 0x10]
push edi
push 0x426620
push eax
mov ecx, dword [eax]
call dword [ecx]
cmp dword [0x434828], ebx
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 3
jne 0x40831f
cmp eax, ebx
je 0x40830d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40833c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40833c
cmp eax, ebx
je 0x408329
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x408339
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00401cbe
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10