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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e2d7
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4ad070]
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 0x4994f4
push 0x491248
push str.active_flow
call fcn.00428070
add esp, 0xc
lea ecx, [ebp - 0x21c]
push str.Activate
call fcn.00407e20
push dword [edi + 0x30]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x40522c
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 0x40524c
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.00455270
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.00407e20
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x405320
mov edx, dword [ebp - 0x21c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4052bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x4b0ecc], 0
jne 0x4052f3
push 0x188
call fcn.004527fe
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.0043df90
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b0ecc], eax
call fcn.004441f0
push str.DelayCreateLink
lea ecx, [ebp - 0x21c]
call fcn.00407e20
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x405530
mov edx, dword [ebp - 0x21c]
jmp 0x4055f0
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 0x40535f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4052bd
call fcn.00402750
mov ecx, eax
test ecx, ecx
jne 0x40537c
push 0x80004005
call fcn.004027d0
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.00407e20
mov ecx, edi
call fcn.004050b0
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.00407fe0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov eax, dword [0x4b0ecc]
test eax, eax
jne 0x40540a
push 0x188
call fcn.004527fe
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0043df90
mov byte [ebp - 4], 1
mov dword [0x4b0ecc], eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.0043eba0
push str.DelayPid
lea ecx, [ebp - 0x220]
call fcn.00407e20
push dword [edi + 0x30]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x405451
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 0x40546e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Version
lea ecx, [ebp - 0x220]
call fcn.00407e20
push dword [edi + 0x30]
call esi
test eax, eax
je 0x40549d
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 0x4054ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayCreateRegisterKey
lea ecx, [ebp - 0x220]
call fcn.00407e20
push dword [edi + 0x30]
call esi
test eax, eax
je 0x4054e9
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 0x405506
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 0x4052f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4052f8
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 0x40556f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x405607
mov eax, dword [0x4b0ecc]
test eax, eax
jne 0x4055ad
push 0x188
call fcn.004527fe
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.0043df90
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b0ecc], eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.0043ed40
push str.DelayCreateLink
lea ecx, [ebp - 0x220]
call fcn.00407e20
push dword [edi + 0x30]
call esi
test eax, eax
je 0x4055ea
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 0x405607
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayAssociatePdf
lea ecx, [ebp - 0x21c]
call fcn.00407e20
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x40562b
mov edx, dword [ebp - 0x21c]
jmp 0x405723
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 0x40566a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x40573a
push ecx
mov ecx, esp
push 0x4994f4
call fcn.00407e20
call fcn.00424790
add esp, 4
cmp dword [0x4b0ed0], 0
jne 0x4056d0
push 8
call fcn.004527fe
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 + 4], 0
call fcn.00440a20
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b0ed0], esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call fcn.004403d0
push dword [edi + 0x30]
push 0x499370
push 0x499374
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.DelayAssociatePdf
lea ecx, [ebp - 0x220]
call fcn.00407e20
push dword [edi + 0x30]
call esi
test eax, eax
je 0x40571d
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 0x40573a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayCreateShellMenu
lea ecx, [ebp - 0x21c]
call fcn.00407e20
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x40575e
mov edx, dword [ebp - 0x21c]
jmp 0x40581e
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 0x40579d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x405835
mov eax, dword [0x4b0ecc]
test eax, eax
jne 0x4057db
push 0x188
call fcn.004527fe
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, eax
mov dword [ebp - 4], 7
call fcn.0043df90
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b0ecc], eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.0043eea0
push str.DelayCreateShellMenu
lea ecx, [ebp - 0x220]
call fcn.00407e20
push dword [edi + 0x30]
call esi
test eax, eax
je 0x405818
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 0x405835
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayAutoRun
lea ecx, [ebp - 0x21c]
call fcn.00407e20
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x405856
mov edx, dword [ebp - 0x21c]
jmp 0x4058ce
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 0x405895
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4058e5
push str.DelayAutoRun
lea ecx, [ebp - 0x220]
call fcn.00407e20
push dword [edi + 0x30]
call esi
test eax, eax
je 0x4058c8
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 0x4058e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x4994f4
push 0x491224
push str.active_app
call fcn.00428070
push 0x4994f4
push 0x491204
push str.active_flow
call fcn.00428070
add esp, 0x18
lea ecx, [ebp - 0x224]
push str.InstallTime
call fcn.00407e20
push dword [edi + 0x30]
call esi
test eax, eax
je 0x40593f
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 0x40595a
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.0045230d
mov esp, ebp
pop ebp
ret