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

Disassembly:
push 0x89c
mov eax, 0x592e92
call fcn.005663f8
mov esi, ecx
mov edi, 0x208
lea eax, [ebp - 0x420]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.0056c410
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0056c410
add esp, 0x18
lea ecx, [ebp - 0x860]
mov edi, 0x612278
push edi
call fcn.00401650
push edi
lea ecx, [ebp - 0x8a8]
mov dword [ebp - 4], ebx
call fcn.00401650
push edi
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 1
call fcn.00401650
push edi
lea ecx, [ebp - 0x878]
mov byte [ebp - 4], 2
call fcn.00401650
push ebx
push 0x2b
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 3
push eax
push ebx
call fcn.0041d64b
mov ebx, 0x613124
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00577ffb
mov edi, 0x613198
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.00577ffb
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00577ffb
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.00577ffb
lea eax, [ebp - 0x420]
push str..ini
push eax
call fcn.00577ffb
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x420]
add esp, 0x38
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x612278
push str.UsrPath
push str.BKCfg
call ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0057808e
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
test eax, eax
jle 0x413b49
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x413b49
lea eax, [ebp - 0x218]
push eax
call fcn.0057808e
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x860]
call fcn.00401730
lea eax, [ebp - 0x218]
push eax
call fcn.0057808e
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x14]
call fcn.00401730
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x413ddd
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0056c410
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.0056c410
lea eax, [esi + 0x5c]
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x413b7d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0057806c
push str.BKPDFReader.ini
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x628]
push 0x597804
push eax
call fcn.004078e0
add esp, 0x18
lea eax, [ebp - 0x628]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x612278
push str.UsrPath
push str.BKApp
call ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0057808e
pop ecx
test eax, eax
jle 0x413c37
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x413c37
lea eax, [ebp - 0x218]
push eax
call fcn.0057808e
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x8a8]
call fcn.00401730
lea eax, [ebp - 0x218]
push eax
call fcn.0057808e
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x14]
call fcn.00401730
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x413ddd
lea eax, [esi + 0x74]
cmp dword [eax + 0x14], 8
jb 0x413c42
mov eax, dword [eax]
push str.BKPDFReader.ini
push eax
lea eax, [ebp - 0x628]
push 0x597804
push eax
call fcn.004078e0
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x612278
push str.UsrPath
push str.BKApp
call ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0057808e
pop ecx
test eax, eax
jle 0x413ce9
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x413ce9
lea eax, [ebp - 0x218]
push eax
call fcn.0057808e
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x890]
call fcn.00401730
lea eax, [ebp - 0x218]
push eax
call fcn.0057808e
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x14]
call fcn.00401730
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x413ddd
push 0x612278
push str.UsrPath
push str.BKApp
lea eax, [ebp - 0x848]
mov ecx, esi
push eax
call fcn.00413226
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x848]
push eax
call fcn.0057808e
pop ecx
test eax, eax
jle 0x413d6f
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
call edi
test eax, eax
je 0x413d6f
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x878]
call fcn.00406fd0
lea eax, [ebp - 0x848]
push eax
lea ecx, [esi + 0x14]
call fcn.00406fd0
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x413dd2
cmp byte [esi + 8], 0
je 0x413dd2
cmp byte [esi + 7], 0
je 0x413dd2
lea eax, [ebp - 0x8a8]
push eax
lea ecx, [ebp - 0x860]
call fcn.004072c0
test al, al
jne 0x413d95
mov byte [esi + 9], 1
lea eax, [ebp - 0x890]
push eax
lea ecx, [ebp - 0x860]
call fcn.004072c0
test al, al
jne 0x413daf
mov byte [esi + 9], 1
lea eax, [ebp - 0x878]
push eax
lea ecx, [ebp - 0x860]
call fcn.004072c0
test al, al
jne 0x413dd2
push 1
lea ecx, [ebp - 0x860]
call fcn.00413096
lea ecx, [ebp - 0x848]
call fcn.004015f0
lea ecx, [ebp - 0x878]
call fcn.004015f0
lea ecx, [ebp - 0x890]
call fcn.004015f0
lea ecx, [ebp - 0x8a8]
call fcn.004015f0
lea ecx, [ebp - 0x860]
call fcn.004015f0
call fcn.005663b3
ret