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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e8a8
mov eax, dword fs:[0]
push eax
mov eax, 0x14e0
call fcn.0040d6f0
mov eax, dword [0x415194]
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, 0x40ffac
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 - 0x14dc], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xa58]
mov edi, 0x40ffb8
push edi
push eax
lea eax, [ebp - 0x14dc]
push eax
push ebx
call fcn.0040b196
add esp, 0x28
cmp dword [ebp - 0x14dc], 0xffffffff
je 0x40c78c
push edi
lea eax, [ebp - 0xc60]
push eax
lea eax, [ebp - 0x14dc]
push eax
push ebx
call fcn.0040b196
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 - 0x14dc], 0xffffffff
je 0x40c78c
push edi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14dc]
push eax
push ebx
call fcn.0040b196
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.0040721c
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 0x40f904
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
lea eax, [ebp - 0x850]
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 0x40ffbc
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 0x40c89d
call fcn.00402563
push ebx
push esi
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 4], ebx
call fcn.00406114
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 0x14e4], eax
call fcn.00402d75
jmp 0x40c8cb
call fcn.004024d7
push ebx
push esi
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 4], 1
call fcn.004060ba
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 0x14e4], eax
call fcn.00402d27
cmp dword [ebp - 0x14e4], 1
jne 0x40c97c
lea eax, [ebp - 0x14ec]
push eax
lea eax, [ebp - 0x14e0]
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, 0x410054
push 4
pop esi
test eax, eax
jne 0x40c92e
push esi
lea eax, [ebp - 0x14e4]
push eax
push esi
push ebx
push edi
push dword [ebp - 0x14e0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14ec]
push eax
lea eax, [ebp - 0x14e0]
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 0x40c97c
push esi
lea eax, [ebp - 0x14e4]
push eax
push esi
push ebx
push edi
push dword [ebp - 0x14e0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x14e4], 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.0040d1b0
leave
ret 0x10