Function at 0x42ac61
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4ccb98]
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
cmp eax, edi
mov dword [ebp - 8], edi
mov esi, 0x454010
je 0x42acb0
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov ecx, dword [eax]
push edx
push 0x458e20
push eax
call dword [ecx]
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x42acb0
mov ecx, dword [eax]
push edi
push edi
push edi
push 0x16
push esi
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x42acb0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
cmp dword [ebp - 0x10], edi
je 0x42aee9
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 8]
push edx
push 0x454030
mov ecx, dword [eax]
push edi
push dword [ebp - 0x14]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x42acf7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edi
push eax
push 0xf003f
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerMenuOrderFavorites
push SysReAllocString
mov dword [ebp - 0xc], edi
mov dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42ad35
lea ecx, [ebp - 0xc]
call fcn.0040df4e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x10]
push eax
push 0x454260
push 1
push edi
push esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp + 0x10], edi
je 0x42ae78
push 0x18
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
call fcn.00441dd1
mov esi, eax
pop ecx
cmp esi, edi
je 0x42ad86
mov ecx, esi
call fcn.0042b06e
push 0x4a1714
mov dword [esi], 0x453dd4
mov dword [esi + 4], 0x453dc4
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42ad88
xor esi, esi
mov eax, esi
add esi, 4
neg eax
sbb eax, eax
and eax, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040542e
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x42adb2
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x45c780
push eax
call dword [ecx]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x42add3
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x20]
push 0x800d
push dword [ebx + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push dword [ebp + 0x14]
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
mov ebx, eax
push 0x2b66
push 3
push ebx
call esi
push edi
push edi
push 0x800
push ebx
call esi
mov eax, dword [ebp + 0x10]
push 0x10000004
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp + 0x10]
push 0x20000008
push dword [ebp - 0xc]
mov ecx, dword [eax]
push dword [ebp - 0x14]
push dword [ebp - 8]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp + 0x10]
push 0x10000000
push edi
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x1c]
cmp esi, edi
jl 0x42ae3d
mov dword [ebp - 0xc], edi
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x42ae56
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x42ae63
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x42ae78
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push 0x45c770
push eax
call dword [ecx]
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x42ae90
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x45c760
push eax
call dword [ecx]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x42aeab
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edx
push 0x45c750
push ecx
call dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 4], edi
jne 0x42af05
cmp eax, edi
je 0x42aebd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x42aec7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x42aed4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0xc]
call fcn.0040df4e
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x42aee9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x42aef6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp + 0x14]
call fcn.00401802
xor eax, eax
jmp 0x42b067
cmp eax, edi
je 0x42af12
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x42af1c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x42af29
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0xc]
call fcn.0040df4e
lea eax, [ebp - 0x44]
mov dword [ebp - 0x20], edi
push eax
push str.ECD4FC4F_521C_11D0_B792_00A0C90312E1
mov dword [ebp - 0x24], edi
mov dword [ebp + 0x10], edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x20]
push eax
push 0x454060
push 1
lea eax, [ebp - 0x44]
push edi
push eax
call esi
lea eax, [ebp - 0x24]
push eax
push 0x454270
push 1
push edi
push 0x453ff0
call esi
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x42af89
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push edx
push 0x45c770
push eax
call dword [ecx]
mov edx, dword [ebp + 0x10]
cmp edx, edi
je 0x42af9c
push dword [ebp - 0x24]
mov eax, dword [edx]
push edx
call dword [eax + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x42afaf
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp edx, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
je 0x42afeb
mov eax, dword [edx]
lea ecx, [ebp - 0x34]
push 0xe0000040
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [eax + 0x20]
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x42afeb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x42aff8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x42b005
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x4ccb98
push edi
push esi
call fcn.0040542e
mov eax, dword [ebp - 4]
push esi
push 0x45c6f0
push eax
mov ecx, dword [eax]
call dword [ecx]
cmp dword [0x4ccb98], edi
mov eax, dword [ebp - 4]
jne 0x42b043
cmp eax, edi
je 0x42b034
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x42b05d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x42b05d
cmp eax, edi
je 0x42b04d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x42b05a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop edi
lea ecx, [ebp + 0x14]
call fcn.00401802
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10