Function at 0x4283aa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4a97d8]
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
cmp eax, edi
mov dword [ebp - 8], edi
mov esi, 0x43ef68
je 0x4283f9
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov ecx, dword [eax]
push edx
push 0x442dd8
push eax
call dword [ecx]
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x4283f9
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 0x4283f9
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 0x428632
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 0x43ef88
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 0x428440
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 0x42847e
lea ecx, [ebp - 0xc]
call fcn.0040d8da
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x10]
push eax
push 0x43f1b8
push 1
push edi
push esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp + 0x10], edi
je 0x4285c1
push 0x18
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
cmp esi, edi
je 0x4284cf
mov ecx, esi
call fcn.004287b7
push 0x47ec44
mov dword [esi], 0x43ed4c
mov dword [esi + 4], 0x43ed3c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4284d1
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.004053ae
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x4284fb
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x4463f8
push eax
call dword [ecx]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x42851c
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 0x428586
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 0x42859f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x4285ac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x4285c1
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push 0x4463e8
push eax
call dword [ecx]
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x4285d9
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x4463d8
push eax
call dword [ecx]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x4285f4
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edx
push 0x4463c8
push ecx
call dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 4], edi
jne 0x42864e
cmp eax, edi
je 0x428606
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x428610
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x42861d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0xc]
call fcn.0040d8da
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x428632
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x42863f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp + 0x14]
call fcn.004017ee
xor eax, eax
jmp 0x4287b0
cmp eax, edi
je 0x42865b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x428665
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x428672
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0xc]
call fcn.0040d8da
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 0x43efb8
push 1
lea eax, [ebp - 0x44]
push edi
push eax
call esi
lea eax, [ebp - 0x24]
push eax
push 0x43f1c8
push 1
push edi
push 0x43ef48
call esi
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x4286d2
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push edx
push 0x4463e8
push eax
call dword [ecx]
mov edx, dword [ebp + 0x10]
cmp edx, edi
je 0x4286e5
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 0x4286f8
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 0x428734
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 0x428734
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x428741
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x42874e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x4a97d8
push edi
push esi
call fcn.004053ae
mov eax, dword [ebp - 4]
push esi
push 0x446368
push eax
mov ecx, dword [eax]
call dword [ecx]
cmp dword [0x4a97d8], edi
mov eax, dword [ebp - 4]
jne 0x42878c
cmp eax, edi
je 0x42877d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x4287a6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4287a6
cmp eax, edi
je 0x428796
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x4287a3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop edi
lea ecx, [ebp + 0x14]
call fcn.004017ee
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10