Function at 0x407000
Capabilities:
Access peb ldr_data
Check if file exists
Get common file path
Get ntdll base address
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0bd3
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x521284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x254], esi
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 7
mov word [esi + 0x30], ax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x407218
push 0x104
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x407112
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4070f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00402a90
lea ecx, [ebp - 0x230]
call fcn.004156f0
lea ecx, [ebp - 0x230]
call fcn.004156f0
push 5
xor eax, eax
mov dword [ebp - 0x24c], 0
push str.HDBox
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
call fcn.00402a90
push 0
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004157c0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
call fcn.00402a30
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x250]
call fcn.00422b40
test al, al
je 0x407230
cmp dword [ebp - 0x234], 2
jne 0x407230
push 3
xor eax, eax
mov dword [ebp - 0x24c], 0
push 0x50dac8
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
call fcn.00402a90
push 0
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004157c0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
call fcn.00402a30
jmp 0x407230
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x230]
push eax
call fcn.00402a90
push 9
xor eax, eax
mov dword [ebp - 0x24c], 0
push str.HDPIM.dll
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
call fcn.00402a90
push 0
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004157c0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
call fcn.00402a30
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40748e
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x250]
call fcn.00422b40
cmp dword [ebp - 0x234], 2
jne 0x4072e9
lea ecx, [ebp - 0x230]
call fcn.004152b0
test al, al
je 0x407344
push 0x15
push str.Adobe_Desktop_Common
jmp 0x407339
push 0
push 0x2b
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x407344
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407310
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00402a90
push 0x1b
push str.AdobeAdobe_Desktop_Common
lea ecx, [ebp - 0x230]
call fcn.00403260
push 5
xor eax, eax
mov dword [ebp - 0x24c], 0
push str.HDBox
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
call fcn.00402a90
push 0
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004157c0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
call fcn.00402a30
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x250]
call fcn.00422b40
test al, al
je 0x40742a
cmp dword [ebp - 0x234], 2
jne 0x40742a
push 3
xor eax, eax
mov dword [ebp - 0x24c], 0
push 0x50dac8
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
call fcn.00402a90
push 0
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004157c0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
call fcn.00402a30
push 9
xor eax, eax
mov dword [ebp - 0x24c], 0
push str.HDPIM.dll
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
call fcn.00402a90
push 0
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004157c0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
call fcn.00402a30
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4075c6
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00425640
test al, al
je 0x4075c6
mov eax, dword [esi]
xor ecx, ecx
test eax, eax
je 0x4074dd
push str.hdpimCreateSession
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [esi + 4], ecx
xor eax, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x4074f4
push str.hdpimTerminateSession
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
xor eax, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x40750b
push str.hdpimSetLogger
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xc], eax
xor eax, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x407522
push str.hdpimGetProductInstallStatus
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x14], eax
xor eax, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x407539
push str.hdpimLaunchProduct
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x18], eax
xor eax, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x407550
push str.hdpimGetProductInstalledVersions
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x1c], eax
xor eax, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x407567
push str.hdpimGetProductReferenceInfo
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
xor eax, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x40757e
push str.hdpimSetLoggerFnPtr
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x10], eax
xor eax, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x407595
push str.hdpimAreUpdatesEnabled
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x24], eax
xor eax, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x4075ac
push str.hdpimGetProductInstallDirIsMoved
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x28], eax
xor eax, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x4075c3
push str.hdpimGetInstalledProductsList
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x2c], eax
lea ecx, [ebp - 0x230]
call fcn.00402a30
lea ecx, [ebp + 8]
call fcn.00402a30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret 0x18