Function at 0x404da0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584bb7
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x60e9b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x5e90d4
push 0x5e07d8
push str.active_flow
call fcn.00438690
add esp, 0xc
lea ecx, [ebp - 0x21c]
push str.Activate
call fcn.004078d0
push dword [edi + 0x30]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x404e1c
push dword [edi + 0x30]
push 0
push dword [ebp - 0x21c]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x21c]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404e3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00559270
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.DelayCreateRegisterKey
lea ecx, [ebp - 0x21c]
call fcn.004078d0
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x404f10
mov edx, dword [ebp - 0x21c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404ead
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x615484], 0
jne 0x404ee3
push 0x18c
call fcn.0055602b
add esp, 4
mov dword [ebp - 0x22c], eax
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.00458b20
mov dword [ebp - 4], 0xffffffff
mov dword [0x615484], eax
call fcn.0045fea0
push str.DelayCreateLink
lea ecx, [ebp - 0x21c]
call fcn.004078d0
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x405120
mov edx, dword [ebp - 0x21c]
jmp 0x4051e0
push dword [edi + 0x30]
push 0
push dword [ebp - 0x21c]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x21c]
mov ecx, ebx
mov dword [ebp - 0x224], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x404f4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x404ead
call fcn.00402a90
mov ecx, eax
test ecx, ecx
jne 0x404f6c
push 0x80004005
call fcn.00402b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push ecx
mov ecx, esp
push str.DelayPid
call fcn.004078d0
mov ecx, edi
call fcn.00404c90
push ecx
mov esi, esp
mov dword [ebp - 0x220], esp
mov dword [ebp - 0x224], esi
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov ecx, eax
mov dword [ebp - 0x224], eax
call fcn.00407c00
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov eax, dword [0x615484]
test eax, eax
jne 0x404ffa
push 0x18c
call fcn.0055602b
add esp, 4
mov dword [ebp - 0x22c], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00458b20
mov byte [ebp - 4], 1
mov dword [0x615484], eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.00459aa0
push str.DelayPid
lea ecx, [ebp - 0x220]
call fcn.004078d0
push dword [edi + 0x30]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x405041
push dword [edi + 0x30]
push 0
push dword [ebp - 0x220]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40505e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Version
lea ecx, [ebp - 0x220]
call fcn.004078d0
push dword [edi + 0x30]
call esi
test eax, eax
je 0x40508d
push dword [edi + 0x30]
push 0
push dword [ebp - 0x220]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4050aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayCreateRegisterKey
lea ecx, [ebp - 0x220]
call fcn.004078d0
push dword [edi + 0x30]
call esi
test eax, eax
je 0x4050d9
push dword [edi + 0x30]
push 0
push dword [ebp - 0x220]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4050f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x224]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404ee8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x404ee8
push dword [edi + 0x30]
push 0
push dword [ebp - 0x21c]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x21c]
mov ecx, ebx
mov dword [ebp - 0x224], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40515f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4051f7
mov eax, dword [0x615484]
test eax, eax
jne 0x40519d
push 0x18c
call fcn.0055602b
add esp, 4
mov dword [ebp - 0x22c], eax
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.00458b20
mov dword [ebp - 4], 0xffffffff
mov dword [0x615484], eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.00459c60
push str.DelayCreateLink
lea ecx, [ebp - 0x220]
call fcn.004078d0
push dword [edi + 0x30]
call esi
test eax, eax
je 0x4051da
push dword [edi + 0x30]
push 0
push dword [ebp - 0x220]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4051f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayAssociatePdf
lea ecx, [ebp - 0x21c]
call fcn.004078d0
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x40521b
mov edx, dword [ebp - 0x21c]
jmp 0x405326
push dword [edi + 0x30]
push 0
push dword [ebp - 0x21c]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x21c]
mov ecx, ebx
mov dword [ebp - 0x224], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40525a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x40533d
push ecx
mov ecx, esp
mov byte [ebp - 0x225], 0
push 0x5e90d4
call fcn.004078d0
mov dl, byte [ebp - 0x225]
call fcn.0042cc20
mov ecx, dword [0x615488]
add esp, 4
test ecx, ecx
jne 0x4052d3
push 0xc
call fcn.0055602b
add esp, 4
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 6
mov ecx, eax
mov dword [eax], vtable.CPDFExDriver.0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
call fcn.0045bf50
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x224]
mov dword [0x615488], ecx
push ecx
call fcn.0045b490
push dword [edi + 0x30]
push 0x5e8f44
push 0x5e8f48
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.DelayAssociatePdf
lea ecx, [ebp - 0x220]
call fcn.004078d0
push dword [edi + 0x30]
call esi
test eax, eax
je 0x405320
push dword [edi + 0x30]
push 0
push dword [ebp - 0x220]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40533d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayCreateShellMenu
lea ecx, [ebp - 0x21c]
call fcn.004078d0
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x405361
mov edx, dword [ebp - 0x21c]
jmp 0x405421
push dword [edi + 0x30]
push 0
push dword [ebp - 0x21c]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x21c]
mov ecx, ebx
mov dword [ebp - 0x224], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4053a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x405438
mov eax, dword [0x615484]
test eax, eax
jne 0x4053de
push 0x18c
call fcn.0055602b
add esp, 4
mov dword [ebp - 0x22c], eax
mov ecx, eax
mov dword [ebp - 4], 7
call fcn.00458b20
mov dword [ebp - 4], 0xffffffff
mov dword [0x615484], eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.00459dc0
push str.DelayCreateShellMenu
lea ecx, [ebp - 0x220]
call fcn.004078d0
push dword [edi + 0x30]
call esi
test eax, eax
je 0x40541b
push dword [edi + 0x30]
push 0
push dword [ebp - 0x220]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405438
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayAutoRun
lea ecx, [ebp - 0x21c]
call fcn.004078d0
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x405459
mov edx, dword [ebp - 0x21c]
jmp 0x4054d1
push dword [edi + 0x30]
push 0
push dword [ebp - 0x21c]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x21c]
mov ecx, ebx
mov dword [ebp - 0x224], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x405498
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4054e8
push str.DelayAutoRun
lea ecx, [ebp - 0x220]
call fcn.004078d0
push dword [edi + 0x30]
call esi
test eax, eax
je 0x4054cb
push dword [edi + 0x30]
push 0
push dword [ebp - 0x220]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4054e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5e90d4
push 0x5e07b4
push str.active_app
call fcn.00438690
add esp, 0xc
push 0x5e90d4
push 0x5e0794
push str.active_flow
call fcn.00438690
add esp, 0xc
lea ecx, [ebp - 0x224]
push str.InstallTime
call fcn.004078d0
push dword [edi + 0x30]
call esi
test eax, eax
je 0x405545
push dword [edi + 0x30]
push 0
push dword [ebp - 0x224]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x405560
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00555b37
mov esp, ebp
pop ebp
ret