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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bd27
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4bf070]
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 0x4a4d44
push 0x49f8e8
push str.active_flow
call fcn.00434c20
add esp, 0xc
lea ecx, [ebp - 0x21c]
push str.Activate
call fcn.004075e0
push dword [edi + 0x30]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x404bbc
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 0x404bdc
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.00462960
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.004075e0
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x404cb0
mov edx, dword [ebp - 0x21c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404c4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x4c32bc], 0
jne 0x404c83
push 0x18c
call fcn.0045fcc9
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.00449a70
mov dword [ebp - 4], 0xffffffff
mov dword [0x4c32bc], eax
call fcn.00450550
push str.DelayCreateLink
lea ecx, [ebp - 0x21c]
call fcn.004075e0
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x404ec0
mov edx, dword [ebp - 0x21c]
jmp 0x404f80
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 0x404cef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x404c4d
call fcn.00402960
mov ecx, eax
test ecx, ecx
jne 0x404d0c
push 0x80004005
call fcn.004029e0
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.004075e0
mov ecx, edi
call fcn.00404a40
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.00407890
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov eax, dword [0x4c32bc]
test eax, eax
jne 0x404d9a
push 0x18c
call fcn.0045fcc9
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00449a70
mov byte [ebp - 4], 1
mov dword [0x4c32bc], eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.0044a9f0
push str.DelayPid
lea ecx, [ebp - 0x220]
call fcn.004075e0
push dword [edi + 0x30]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x404de1
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 0x404dfe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Version
lea ecx, [ebp - 0x220]
call fcn.004075e0
push dword [edi + 0x30]
call esi
test eax, eax
je 0x404e2d
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 0x404e4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayCreateRegisterKey
lea ecx, [ebp - 0x220]
call fcn.004075e0
push dword [edi + 0x30]
call esi
test eax, eax
je 0x404e79
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 0x404e96
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 0x404c88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x404c88
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 0x404eff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x404f97
mov eax, dword [0x4c32bc]
test eax, eax
jne 0x404f3d
push 0x18c
call fcn.0045fcc9
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.00449a70
mov dword [ebp - 4], 0xffffffff
mov dword [0x4c32bc], eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.0044abb0
push str.DelayCreateLink
lea ecx, [ebp - 0x220]
call fcn.004075e0
push dword [edi + 0x30]
call esi
test eax, eax
je 0x404f7a
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 0x404f97
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayAssociatePdf
lea ecx, [ebp - 0x21c]
call fcn.004075e0
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x404fbb
mov edx, dword [ebp - 0x21c]
jmp 0x4050ba
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 0x404ffa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4050d1
push ecx
mov ecx, esp
push 0x4a4d44
call fcn.004075e0
call fcn.004291a0
add esp, 4
cmp dword [0x4c32c0], 0
jne 0x405067
push 0xc
call fcn.0045fcc9
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.0044cc50
mov dword [ebp - 4], 0xffffffff
mov dword [0x4c32c0], esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call fcn.0044c240
push dword [edi + 0x30]
push 0x4a4bb4
push 0x4a4bb8
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.DelayAssociatePdf
lea ecx, [ebp - 0x220]
call fcn.004075e0
push dword [edi + 0x30]
call esi
test eax, eax
je 0x4050b4
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 0x4050d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayCreateShellMenu
lea ecx, [ebp - 0x21c]
call fcn.004075e0
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x4050f5
mov edx, dword [ebp - 0x21c]
jmp 0x4051b5
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 0x405134
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4051cc
mov eax, dword [0x4c32bc]
test eax, eax
jne 0x405172
push 0x18c
call fcn.0045fcc9
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, eax
mov dword [ebp - 4], 7
call fcn.00449a70
mov dword [ebp - 4], 0xffffffff
mov dword [0x4c32bc], eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.0044ad10
push str.DelayCreateShellMenu
lea ecx, [ebp - 0x220]
call fcn.004075e0
push dword [edi + 0x30]
call esi
test eax, eax
je 0x4051af
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 0x4051cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.DelayAutoRun
lea ecx, [ebp - 0x21c]
call fcn.004075e0
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x4051ed
mov edx, dword [ebp - 0x21c]
jmp 0x405265
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 0x40522c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x40527c
push str.DelayAutoRun
lea ecx, [ebp - 0x220]
call fcn.004075e0
push dword [edi + 0x30]
call esi
test eax, eax
je 0x40525f
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 0x40527c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x4a4d44
push 0x49f8c4
push str.active_app
call fcn.00434c20
add esp, 0xc
push 0x4a4d44
push 0x49f8a4
push str.active_flow
call fcn.00434c20
add esp, 0xc
lea ecx, [ebp - 0x224]
push str.InstallTime
call fcn.004075e0
push dword [edi + 0x30]
call esi
test eax, eax
je 0x4052d9
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 0x4052f4
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.0045f7d8
mov esp, ebp
pop ebp
ret