Function at 0x413ffe
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592f15
mov eax, dword fs:[0]
push eax
mov eax, 0x126c
call fcn.00566840
mov eax, dword [0x61ea64]
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 esi, ecx
mov ebx, 0x208
lea eax, [ebp - 0x628]
push ebx
xor edi, edi
push edi
push eax
call fcn.0056c460
push ebx
lea eax, [ebp - 0xa38]
push edi
push eax
call fcn.0056c460
push ebx
lea eax, [ebp - 0xc40]
push edi
push eax
call fcn.0056c460
push ebx
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0056c460
push ebx
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.0056c460
push ebx
lea eax, [ebp - 0x1258]
push edi
push eax
call fcn.0056c460
add esp, 0x48
lea eax, [ebp - 0xe48]
push ebx
push edi
push eax
call fcn.0056c460
lea eax, [ebp - 0xe48]
push 0x597864
push eax
call fcn.005780bc
lea eax, [ebp - 0xe48]
push 0x613198
push eax
call fcn.0057804b
add esp, 0x1c
lea eax, [ebp - 0x1274]
push eax
push 0x20019
push edi
lea eax, [ebp - 0xe48]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4141e6
lea eax, [ebp - 0x1278]
mov dword [ebp - 0x1278], ebx
push eax
lea eax, [ebp - 0x1258]
push eax
push edi
push edi
push str.InstallPath
push dword [ebp - 0x1274]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4141e6
lea eax, [ebp - 0x1258]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005780bc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.005780bc
lea eax, [ebp - 0x420]
push eax
call fcn.004160cb
add esp, 0x14
test al, al
je 0x4141e6
push ebx
lea eax, [ebp - 0x830]
push edi
push eax
call fcn.0056c460
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.005780bc
lea eax, [ebp - 0x830]
push str.BKPdf.exe
push eax
call fcn.0057804b
lea eax, [ebp - 0x830]
push eax
call fcn.004160cb
add esp, 0x20
test al, al
je 0x4141e6
push dword [ebp - 0x1274]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
call fcn.005780de
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x44]
call fcn.00401730
lea eax, [ebp - 0x420]
push eax
call fcn.005780de
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [esi + 0x74]
call fcn.00401730
jmp 0x41449c
push dword [ebp - 0x1274]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0x2b
lea eax, [ebp - 0x628]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x628]
push 0x613124
push eax
call fcn.0057804b
lea eax, [ebp - 0x628]
push 0x613198
push eax
call fcn.0057804b
lea eax, [ebp - 0x628]
push 0x613124
push eax
call fcn.0057804b
lea eax, [ebp - 0x628]
push 0x613198
push eax
call fcn.0057804b
lea eax, [ebp - 0x628]
push str..ini
push eax
call fcn.0057804b
add esp, 0x28
lea eax, [ebp - 0x628]
push eax
push 0x104
lea eax, [ebp - 0xa38]
push eax
push 0x612278
push str.InstallPath
push str.BKCfg
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005780bc
lea eax, [ebp - 0x218]
push eax
call fcn.005780de
add esp, 0xc
test eax, eax
jle 0x414318
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.005780bc
lea eax, [ebp - 0x420]
push eax
call fcn.004160cb
add esp, 0xc
test al, al
je 0x414318
push ebx
lea eax, [ebp - 0x830]
push edi
push eax
call fcn.0056c460
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.005780bc
lea eax, [ebp - 0x830]
push str.BKPdf.exe
push eax
call fcn.0057804b
lea eax, [ebp - 0x830]
push eax
call fcn.004160cb
add esp, 0x20
test al, al
jne 0x4141a7
sub esp, 0x18
mov ecx, esp
push str.roaming
call fcn.00401650
lea eax, [ebp - 0x1270]
push eax
call fcn.0041ca9c
cmp dword [ebp - 0x125c], 8
lea eax, [ebp - 0x1270]
mov dword [ebp - 4], edi
cmovae eax, dword [ebp - 0x1270]
push eax
lea eax, [ebp - 0xc40]
push eax
call fcn.005780bc
lea eax, [ebp - 0xc40]
push str.BKPDF
push eax
call fcn.0057804b
lea eax, [ebp - 0xc40]
push 0x613124
push eax
call fcn.0057804b
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005780bc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.005780bc
add esp, 0x44
lea eax, [ebp - 0x420]
push eax
call fcn.004160cb
pop ecx
test al, al
je 0x414407
push ebx
lea eax, [ebp - 0x1050]
push edi
push eax
call fcn.0056c460
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x1050]
push eax
call fcn.005780bc
lea eax, [ebp - 0x1050]
push str.BKPdf.exe
push eax
call fcn.0057804b
lea eax, [ebp - 0x1050]
push eax
call fcn.004160cb
add esp, 0x20
test al, al
je 0x414407
lea eax, [ebp - 0x218]
push eax
call fcn.005780de
pop ecx
jmp 0x414464
lea eax, [ebp - 0xa38]
push eax
call fcn.005780de
pop ecx
test eax, eax
jle 0x41442f
lea eax, [ebp - 0xa38]
push eax
call fcn.004160cb
test al, al
lea eax, [ebp - 0xa38]
pop ecx
jne 0x414435
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005780bc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.005780bc
lea eax, [ebp - 0x218]
push eax
call fcn.005780de
add esp, 0x14
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x44]
call fcn.00401730
lea eax, [ebp - 0x420]
push eax
call fcn.005780de
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [esi + 0x74]
call fcn.00401730
lea ecx, [ebp - 0x1270]
call fcn.004015f0
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.00565c59
leave
ret