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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f0a7
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x6039b0]
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 0x5dfc54
push 0x5da7d8
push str.active_flow
call fcn.00435f50
add esp, 0xc
lea ecx, [ebp - 0x21c]
push str.Activate
call fcn.00407740
push dword [edi + 0x30]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x404c9c
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 0x404cbc
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.00553bc0
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.00407740
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x404d90
mov edx, dword [ebp - 0x21c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404d2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x60a084], 0
jne 0x404d63
push 0x18c
call fcn.0055091d
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.00453ee0
mov dword [ebp - 4], 0xffffffff
mov dword [0x60a084], eax
call fcn.0045a940
push str.DelayCreateLink
lea ecx, [ebp - 0x21c]
call fcn.00407740
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x404fa0
mov edx, dword [ebp - 0x21c]
jmp 0x405060
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 0x404dcf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x404d2d
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x404dec
push 0x80004005
call fcn.00402a80
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.00407740
mov ecx, edi
call fcn.00404b20
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.00407a70
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov eax, dword [0x60a084]
test eax, eax
jne 0x404e7a
push 0x18c
call fcn.0055091d
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00453ee0
mov byte [ebp - 4], 1
mov dword [0x60a084], eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.00454e60
push str.DelayPid
lea ecx, [ebp - 0x220]
call fcn.00407740
push dword [edi + 0x30]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x404ec1
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 0x404ede
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Version
lea ecx, [ebp - 0x220]
call fcn.00407740
push dword [edi + 0x30]
call esi
test eax, eax
je 0x404f0d
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 0x404f2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayCreateRegisterKey
lea ecx, [ebp - 0x220]
call fcn.00407740
push dword [edi + 0x30]
call esi
test eax, eax
je 0x404f59
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 0x404f76
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 0x404d68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x404d68
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 0x404fdf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x405077
mov eax, dword [0x60a084]
test eax, eax
jne 0x40501d
push 0x18c
call fcn.0055091d
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.00453ee0
mov dword [ebp - 4], 0xffffffff
mov dword [0x60a084], eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.00455020
push str.DelayCreateLink
lea ecx, [ebp - 0x220]
call fcn.00407740
push dword [edi + 0x30]
call esi
test eax, eax
je 0x40505a
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 0x405077
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayAssociatePdf
lea ecx, [ebp - 0x21c]
call fcn.00407740
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x40509b
mov edx, dword [ebp - 0x21c]
jmp 0x40519a
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 0x4050da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4051b1
push ecx
mov ecx, esp
push 0x5dfc54
call fcn.00407740
call fcn.0042a640
add esp, 4
cmp dword [0x60a088], 0
jne 0x405147
push 0xc
call fcn.0055091d
mov esi, eax
add esp, 4
mov dword [ebp - 0x228], esi
mov dword [ebp - 4], 6
mov ecx, esi
mov dword [esi], vtable.CPDFExDriver.0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
call fcn.004570e0
mov dword [ebp - 4], 0xffffffff
mov dword [0x60a088], esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call fcn.004566c0
push dword [edi + 0x30]
push 0x5dfac4
push 0x5dfac8
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.DelayAssociatePdf
lea ecx, [ebp - 0x220]
call fcn.00407740
push dword [edi + 0x30]
call esi
test eax, eax
je 0x405194
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 0x4051b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayCreateShellMenu
lea ecx, [ebp - 0x21c]
call fcn.00407740
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x4051d5
mov edx, dword [ebp - 0x21c]
jmp 0x405295
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 0x405214
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4052ac
mov eax, dword [0x60a084]
test eax, eax
jne 0x405252
push 0x18c
call fcn.0055091d
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, eax
mov dword [ebp - 4], 7
call fcn.00453ee0
mov dword [ebp - 4], 0xffffffff
mov dword [0x60a084], eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.00455180
push str.DelayCreateShellMenu
lea ecx, [ebp - 0x220]
call fcn.00407740
push dword [edi + 0x30]
call esi
test eax, eax
je 0x40528f
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 0x4052ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayAutoRun
lea ecx, [ebp - 0x21c]
call fcn.00407740
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x4052cd
mov edx, dword [ebp - 0x21c]
jmp 0x405345
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 0x40530c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x40535c
push str.DelayAutoRun
lea ecx, [ebp - 0x220]
call fcn.00407740
push dword [edi + 0x30]
call esi
test eax, eax
je 0x40533f
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 0x40535c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5dfc54
push 0x5da7b4
push str.active_app
call fcn.00435f50
add esp, 0xc
push 0x5dfc54
push 0x5da794
push str.active_flow
call fcn.00435f50
add esp, 0xc
lea ecx, [ebp - 0x224]
push str.InstallTime
call fcn.00407740
push dword [edi + 0x30]
call esi
test eax, eax
je 0x4053b9
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 0x4053d4
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.0055042c
mov esp, ebp
pop ebp
ret