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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bbb5
mov eax, dword fs:[0]
push eax
mov eax, 0x14e4
call fcn.0040aeb0
mov eax, dword [0x411190]
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 eax, dword [ebp + 0x10]
mov edi, 0x206
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14f0], eax
xor eax, eax
push edi
mov word [ebp - 0x648], ax
lea eax, [ebp - 0x646]
push ebx
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
push edi
mov word [ebp - 0x440], ax
lea eax, [ebp - 0x43e]
push ebx
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
push edi
mov word [ebp - 0xe68], ax
lea eax, [ebp - 0xe66]
push ebx
push eax
call sub.MSVCR120.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]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
xor esi, esi
inc esi
sub esi, eax
lea eax, [ebp - 0x440]
push eax
call edi
add eax, esi
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0xa58], ax
lea eax, [ebp - 0xa56]
push ebx
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
push esi
mov word [ebp - 0xc60], ax
lea eax, [ebp - 0xc5e]
push ebx
push eax
call sub.MSVCR120.dll_memset
mov esi, str.1033
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]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, dword [ebp - 0x14f0]
stosw word es:[edi], ax
lea eax, [ebp - 0xa58]
push 0x40cb6c
push eax
lea eax, [ebp - 0x14e0]
xor edi, edi
push eax
push esi
mov dword [ebp - 0x14e0], edi
call fcn.00409356
add esp, 0x28
cmp dword [ebp - 0x14e0], 0xffffffff
je 0x40a5dd
push 0x40cb6c
lea eax, [ebp - 0xc60]
push eax
lea eax, [ebp - 0x14e0]
push eax
push esi
call fcn.00409356
lea eax, [ebp - 0xc60]
push eax
call dword [sym.imp.MSVCR120.dll__wtoi64]
add esp, 0x14
mov ebx, eax
cmp dword [ebp - 0x14e0], 0xffffffff
je 0x40a5dd
push 0x40cb6c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14e0]
push eax
push esi
call fcn.00409356
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x1a], edi
push 0x206
mov word [ebp - 0x1c], ax
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x236]
push edi
push eax
mov dword [ebp - 0x16], edi
call sub.MSVCR120.dll_memset
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040595e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x648]
add esp, 0x18
push eax
lea eax, [ebp - 0x238]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x238]
push str.Legal_
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x238]
push eax
call esi
push 0x40c4f0
lea eax, [ebp - 0x238]
push eax
call esi
and dword [ebp - 0x14dc], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x850], ax
lea eax, [ebp - 0x84e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x850]
push eax
call edi
push 0x40cb70
lea eax, [ebp - 0x850]
push eax
call esi
lea eax, [ebp - 0x850]
xor esi, esi
push eax
push esi
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 0x40a6ff
call fcn.00401ed4
push esi
push ebx
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 4], esi
call fcn.00404e48
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 0x14dc], eax
call fcn.00402467
jmp 0x40a72d
call fcn.00401e4c
push esi
push ebx
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 4], 1
call fcn.00404dee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 0x14dc], eax
call fcn.0040244b
cmp dword [ebp - 0x14dc], 1
jne 0x40a7e0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x14ec]
push eax
lea eax, [ebp - 0x14e4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareAdobeAcrobat_ReaderDCAdobeViewer
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40a795
push 4
lea eax, [ebp - 0x14dc]
push eax
push 4
push 0
push 0x40cc84
push dword [ebp - 0x14e4]
call esi
push dword [ebp - 0x14e4]
call edi
lea eax, [ebp - 0x14ec]
push eax
lea eax, [ebp - 0x14e4]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push eax
push eax
push str.SoftwareAdobeAcrobat_ReaderDCAdobeViewer
push SysReAllocStringLen
call ebx
test eax, eax
jne 0x40a7e0
push 4
lea eax, [ebp - 0x14dc]
push eax
push 4
push 0
push 0x40cc84
push dword [ebp - 0x14e4]
call esi
push dword [ebp - 0x14e4]
call edi
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.0040ad98
mov esp, ebp
pop ebp
ret 0x10