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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58be4c
mov eax, dword fs:[0]
push eax
mov eax, 0x126c
call fcn.0055f140
mov eax, dword [0x617a54]
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.00561510
push ebx
lea eax, [ebp - 0xa38]
push edi
push eax
call fcn.00561510
push ebx
lea eax, [ebp - 0xc40]
push edi
push eax
call fcn.00561510
push ebx
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00561510
push ebx
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.00561510
push ebx
lea eax, [ebp - 0x1258]
push edi
push eax
call fcn.00561510
add esp, 0x48
lea eax, [ebp - 0xe48]
push ebx
push edi
push eax
call fcn.00561510
lea eax, [ebp - 0xe48]
push 0x58fc74
push eax
call fcn.0056f7c8
lea eax, [ebp - 0xe48]
push 0x58f9c4
push eax
call fcn.00564c0b
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 0x40beda
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 0x40beda
lea eax, [ebp - 0x1258]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0056f7c8
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0056f7c8
lea eax, [ebp - 0x420]
push eax
call fcn.0040954c
add esp, 0x14
test al, al
je 0x40beda
push ebx
lea eax, [ebp - 0x830]
push edi
push eax
call fcn.00561510
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0056f7c8
lea eax, [ebp - 0x830]
push 0x58fba8
push eax
call fcn.00564c0b
lea eax, [ebp - 0x830]
push eax
call fcn.0040954c
add esp, 0x20
test al, al
je 0x40beda
push dword [ebp - 0x1274]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
call fcn.00564b19
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x44]
call fcn.00401589
lea eax, [ebp - 0x420]
push eax
call fcn.00564b19
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [esi + 0x74]
call fcn.00401589
jmp 0x40c190
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 0x58f93c
push eax
call fcn.00564c0b
lea eax, [ebp - 0x628]
push 0x58f9c4
push eax
call fcn.00564c0b
lea eax, [ebp - 0x628]
push 0x58f93c
push eax
call fcn.00564c0b
lea eax, [ebp - 0x628]
push 0x58f9c4
push eax
call fcn.00564c0b
lea eax, [ebp - 0x628]
push str..ini
push eax
call fcn.00564c0b
add esp, 0x28
lea eax, [ebp - 0x628]
push eax
push 0x104
lea eax, [ebp - 0xa38]
push eax
push 0x58f4c4
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.0056f7c8
lea eax, [ebp - 0x218]
push eax
call fcn.00564b19
add esp, 0xc
test eax, eax
jle 0x40c00c
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0056f7c8
lea eax, [ebp - 0x420]
push eax
call fcn.0040954c
add esp, 0xc
test al, al
je 0x40c00c
push ebx
lea eax, [ebp - 0x830]
push edi
push eax
call fcn.00561510
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0056f7c8
lea eax, [ebp - 0x830]
push 0x58fba8
push eax
call fcn.00564c0b
lea eax, [ebp - 0x830]
push eax
call fcn.0040954c
add esp, 0x20
test al, al
jne 0x40be9b
sub esp, 0x18
mov ecx, esp
push str.roaming
call fcn.00401302
lea eax, [ebp - 0x1270]
push eax
call fcn.0040d6c1
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.0056f7c8
lea eax, [ebp - 0xc40]
push str.BKPDF
push eax
call fcn.00564c0b
lea eax, [ebp - 0xc40]
push 0x58f93c
push eax
call fcn.00564c0b
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0056f7c8
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0056f7c8
add esp, 0x44
lea eax, [ebp - 0x420]
push eax
call fcn.0040954c
pop ecx
test al, al
je 0x40c0fb
push ebx
lea eax, [ebp - 0x1050]
push edi
push eax
call fcn.00561510
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x1050]
push eax
call fcn.0056f7c8
lea eax, [ebp - 0x1050]
push 0x58fba8
push eax
call fcn.00564c0b
lea eax, [ebp - 0x1050]
push eax
call fcn.0040954c
add esp, 0x20
test al, al
je 0x40c0fb
lea eax, [ebp - 0x218]
push eax
call fcn.00564b19
pop ecx
jmp 0x40c158
lea eax, [ebp - 0xa38]
push eax
call fcn.00564b19
pop ecx
test eax, eax
jle 0x40c123
lea eax, [ebp - 0xa38]
push eax
call fcn.0040954c
test al, al
lea eax, [ebp - 0xa38]
pop ecx
jne 0x40c129
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0056f7c8
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0056f7c8
lea eax, [ebp - 0x218]
push eax
call fcn.00564b19
add esp, 0x14
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x44]
call fcn.00401589
lea eax, [ebp - 0x420]
push eax
call fcn.00564b19
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [esi + 0x74]
call fcn.00401589
lea ecx, [ebp - 0x1270]
call fcn.004014e8
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.0055f02c
leave
ret