Function at 0x40b919
Capabilities:
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40db8c
mov eax, dword fs:[0]
push eax
mov eax, 0x14e0
call fcn.0040caa0
mov eax, dword [0x414190]
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, dword [ebp + 8]
lea eax, [ebp - 0x648]
mov ebx, dword [ebp + 0x10]
xor edi, edi
push 0x208
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x440]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0xe68]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
lea eax, [ebp - 0x440]
mov edi, 0x104
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x14e8]
push eax
lea eax, [ebp - 0xe68]
push eax
push edi
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push dword [ebp - 0x14e8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
inc esi
sub esi, eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, esi
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov esi, 0x208
lea eax, [ebp - 0xa58]
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0xc60]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, 0x40ef9c
lea edi, [ebp - 0x30]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x26]
xor esi, esi
and dword [ebp - 0x14e0], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xa58]
mov edi, 0x40efa8
push edi
push eax
lea eax, [ebp - 0x14e0]
push eax
push ebx
call fcn.0040a4f6
add esp, 0x28
cmp dword [ebp - 0x14e0], 0xffffffff
je 0x40ba9c
push edi
lea eax, [ebp - 0xc60]
push eax
lea eax, [ebp - 0x14e0]
push eax
push ebx
call fcn.0040a4f6
lea eax, [ebp - 0xc60]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi64]
add esp, 0x14
mov esi, eax
cmp dword [ebp - 0x14e0], 0xffffffff
je 0x40ba9c
push edi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14e0]
push eax
push ebx
call fcn.0040a4f6
add esp, 0x10
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x238]
mov edi, 0x208
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004064ec
add esp, 0x18
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.Legal_
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x40e8f4
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
lea eax, [ebp - 0x850]
mov dword [ebp - 0x14dc], ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x850]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x40efac
lea eax, [ebp - 0x850]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x850]
push eax
push ebx
push str.RightToLeft
push str.labels
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
lea ecx, [ebp - 0x14d8]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0xa58]
push eax
je 0x40bbb3
call fcn.004022e2
push ebx
push esi
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 4], ebx
call fcn.00405929
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 0x14dc], eax
call fcn.00402b1d
jmp 0x40bbe1
call fcn.00402256
push ebx
push esi
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 4], 1
call fcn.004058cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 0x14dc], eax
call fcn.00402acf
cmp dword [ebp - 0x14dc], 1
jne 0x40bc92
lea eax, [ebp - 0x14ec]
push eax
lea eax, [ebp - 0x14e4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareAdobeAcrobat_ReaderDCAdobeViewer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, 0x40f044
push 4
pop esi
test eax, eax
jne 0x40bc44
push esi
lea eax, [ebp - 0x14dc]
push eax
push esi
push ebx
push edi
push dword [ebp - 0x14e4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14e4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14ec]
push eax
lea eax, [ebp - 0x14e4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareAdobeAcrobat_ReaderDCAdobeViewer
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40bc92
push esi
lea eax, [ebp - 0x14dc]
push eax
push esi
push ebx
push edi
push dword [ebp - 0x14e4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14e4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x14dc], eax
sete al
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.0040c4d0
leave
ret 0x10