Function at 0x41c30f
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe44
mov eax, dword [0x5cb008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x208
lea eax, [ebp - 0x61c]
push ebx
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.004306b0
push ebx
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.004306b0
push ebx
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.004306b0
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004306b0
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004306b0
push ebx
lea eax, [ebp - 0xe3c]
push esi
push eax
call fcn.004306b0
add esp, 0x48
lea eax, [ebp - 0x61c]
push esi
push 0x2b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x61c]
push 0x5c29b0
push eax
call fcn.00440d50
lea eax, [ebp - 0x61c]
push str.PandaPdf
push eax
call fcn.00440d50
lea eax, [ebp - 0x61c]
push 0x5c29b0
push eax
call fcn.00440d50
lea eax, [ebp - 0x61c]
push str.PandaPdf
push eax
call fcn.00440d50
lea eax, [ebp - 0x61c]
push str..ini
push eax
call fcn.00440d50
add esp, 0x28
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0xa2c]
push eax
push 0x5c2948
push str.InstallPath
push str.AppConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00440dc1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00440dc1
add esp, 0x10
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0041c0eb
test eax, eax
jne 0x41c5fa
push ebx
lea eax, [ebp - 0xc34]
push esi
push eax
call fcn.004306b0
lea eax, [ebp - 0xc34]
push 0x569228
push eax
call fcn.00440dc1
lea eax, [ebp - 0xc34]
push str.PandaPdf
push eax
call fcn.00440d50
add esp, 0x1c
lea eax, [ebp - 0xe40]
push eax
push 0x20019
push esi
lea eax, [ebp - 0xc34]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c522
lea eax, [ebp - 0xe44]
mov dword [ebp - 0xe44], ebx
push eax
lea eax, [ebp - 0xe3c]
push eax
push esi
push esi
push str.InstallPath
push dword [ebp - 0xe40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c522
lea eax, [ebp - 0xe3c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00440dc1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00440dc1
add esp, 0x10
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0041c0eb
test eax, eax
je 0x41c522
push dword [ebp - 0xe40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41c5fa
push dword [ebp - 0xe40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x26
lea eax, [ebp - 0x824]
push eax
push esi
call fcn.00424d3f
mov ebx, 0x5c29b0
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.00440d50
lea eax, [ebp - 0x824]
push str.PandPdf
push eax
call fcn.00440d50
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.00440d50
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00440dc1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00440dc1
add esp, 0x38
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0041c0eb
test eax, eax
jne 0x41c5fa
lea eax, [ebp - 0xa2c]
push eax
call fcn.00440de3
pop ecx
test eax, eax
jle 0x41c5d1
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0xa2c]
jne 0x41c5d7
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00440dc1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00440dc1
add esp, 0x10
cmp word [ebp - 0x20c], si
jne 0x41c607
mov eax, esi
jmp 0x41c614
lea eax, [ebp - 0x20c]
push eax
call fcn.00440de3
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0x3c]
call fcn.00407d50
cmp word [ebp - 0x414], si
je 0x41c63c
lea eax, [ebp - 0x414]
push eax
call fcn.00440de3
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x414]
push eax
lea ecx, [edi + 0x6c]
call fcn.00407d50
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414f82
mov esp, ebp
pop ebp
ret