Function at 0x40c739
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e9e8
mov eax, dword fs:[0]
push eax
mov eax, 0x14e0
call fcn.0040d3b0
mov eax, dword [0x415190]
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, 0x41007c
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, 0x410088
push edi
push eax
lea eax, [ebp - 0x14dc]
push eax
push ebx
call fcn.0040b2c6
add esp, 0x28
cmp dword [ebp - 0x14dc], 0xffffffff
je 0x40c8bc
push edi
lea eax, [ebp - 0xc60]
push eax
lea eax, [ebp - 0x14dc]
push eax
push ebx
call fcn.0040b2c6
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 0x40c8bc
push edi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14dc]
push eax
push ebx
call fcn.0040b2c6
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.0040734c
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 0x40f9d0
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 0x41008c
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 0x40c9cd
call fcn.00402683
push ebx
push esi
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 4], ebx
call fcn.00406234
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 0x14e4], eax
call fcn.00402e95
jmp 0x40c9fb
call fcn.004025f7
push ebx
push esi
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 4], 1
call fcn.004061da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 0x14e4], eax
call fcn.00402e47
cmp dword [ebp - 0x14e4], 1
jne 0x40cabb
mov edi, str.SoftwareAdobeAcrobat_ReaderDCAdobeViewer
call fcn.004010e0
test al, al
mov esi, str.SoftwareAdobeAdobe_AcrobatDCAdobeViewer
lea eax, [ebp - 0x14ec]
push eax
lea eax, [ebp - 0x14e0]
cmove esi, edi
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 4
pop edi
test eax, eax
jne 0x40ca6d
push edi
lea eax, [ebp - 0x14e4]
push eax
push edi
push ebx
push 0x410180
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 esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40cabb
push edi
lea eax, [ebp - 0x14e4]
push eax
push edi
push ebx
push 0x410180
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.0040caf0
leave
ret 0x10