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

Disassembly:
push 0xffffffffffffffff
push 0x40df26
mov eax, dword fs:[0]
push eax
mov eax, 0x14c4
call fcn.0040cfc0
mov eax, dword [0x415120]
xor eax, esp
mov dword [esp + 0x14c0], eax
push ebx
push esi
push edi
mov eax, dword [0x415120]
xor eax, esp
push eax
lea eax, [esp + 0x14d4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x14e4]
mov edi, dword [esp + 0x14ec]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xec2]
push ecx
mov word [esp + 0xec4], ax
call sub.MSVCR90.dll_memset
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x8b6]
push eax
mov word [esp + 0x8b8], dx
call sub.MSVCR90.dll_memset
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12ea]
push edx
mov word [esp + 0x12ec], cx
call sub.MSVCR90.dll_memset
add esp, 0x24
push 0x104
lea eax, [esp + 0x8a4]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x12cc]
push edx
push 0x104
lea eax, [esp + 0x8ac]
push eax
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.kernel32.dll_lstrlenW]
push ecx
call ebx
lea edx, [esp + 0x8a0]
mov esi, 1
push edx
sub esi, eax
call ebx
add eax, esi
push eax
lea eax, [esp + 0x8a4]
push eax
lea ecx, [esp + 0xec0]
push ecx
call dword [sym.imp.kernel32.dll_lstrcpynW]
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xab2]
push eax
mov word [esp + 0xab4], dx
call sub.MSVCR90.dll_memset
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x10d6]
push edx
mov word [esp + 0x10d8], cx
call sub.MSVCR90.dll_memset
push 0x41019c
lea eax, [esp + 0xac4]
push eax
lea ecx, [esp + 0x38]
push ecx
xor esi, esi
push edi
mov dword [esp + 0x40], esi
call fcn.00401720
add esp, 0x28
cmp dword [esp + 0x18], 0xffffffff
je 0x40bdce
push 0x41019c
lea edx, [esp + 0x10c4]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call fcn.00401720
lea ecx, [esp + 0x10d0]
push ecx
call dword [sym.imp.MSVCR90.dll__wtoi64]
add esp, 0x14
mov esi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x6a2]
xor edx, edx
push ecx
mov word [esp + 0x698], dx
mov dword [esp + 0x69a], eax
mov dword [esp + 0x69e], eax
mov word [esp + 0x6a4], ax
call sub.MSVCR90.dll_memset
lea edx, [esp + 0xec4]
push edx
lea eax, [esp + 0x69c]
push eax
call fcn.004017f0
mov ebx, dword [sym.imp.kernel32.dll_lstrcpyW]
add esp, 0x14
lea ecx, [esp + 0xeb8]
push ecx
lea edx, [esp + 0x69c]
push edx
call ebx
mov edi, dword [sym.imp.kernel32.dll_lstrcatW]
push str.Legal_
lea eax, [esp + 0x69c]
push eax
call edi
lea ecx, [esp + 0x68c]
push ecx
lea edx, [esp + 0x69c]
push edx
call edi
push 0x410198
lea eax, [esp + 0x69c]
push eax
call edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xcba]
push edx
mov dword [esp + 0x1c], 0
mov word [esp + 0xcbc], cx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x698]
push eax
lea ecx, [esp + 0xcb4]
push ecx
call ebx
push str.eula.ini
lea edx, [esp + 0xcb4]
push edx
call edi
lea eax, [esp + 0xcb0]
push eax
push 0
push str.RightToLeft
push str.labels
call dword [sym.imp.kernel32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x40bf33
lea ecx, [esp + 0x698]
push ecx
lea edx, [esp + 0xaac]
push edx
lea ecx, [esp + 0x2c]
call fcn.004054c0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0x415294
mov dword [esp + 0x14e8], 0
call fcn.00402430
mov edx, dword [0x415264]
push 0
push 0x405230
push esi
push 0xca
push edx
call fcn.0040bb40
mov dword [esp + 0x38], vtable.CDlgEula_202_.1.0
mov dword [esp + 0x58], vtable.CDlgEula_202_.0
jmp 0x40bf94
lea eax, [esp + 0x698]
push eax
lea ecx, [esp + 0xaac]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00405770
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
push 0x415294
mov dword [esp + 0x14e8], 1
call fcn.00402430
mov ecx, dword [0x415264]
push 0
push 0x405230
push esi
push 0xc9
push ecx
call fcn.0040bb40
mov dword [esp + 0x38], vtable.CDlgEula_201_.1.0
mov dword [esp + 0x58], vtable.CDlgEula_201_.0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
add esp, 0x14
mov dword [esp + 0x14dc], 0xffffffff
test eax, eax
je 0x40bfb4
push eax
call fcn.00403260
cmp dword [esp + 0x10], 1
jne 0x40c05b
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareAdobeAcrobat_Reader10.0AdobeViewer
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40c016
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push 0x410114
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareAdobeAcrobat_Reader10.0AdobeViewer
push SysReAllocStringLen
call esi
test eax, eax
jne 0x40c05b
mov ecx, dword [esp + 0x14]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push 0x410114
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call ebx
xor eax, eax
cmp dword [esp + 0x10], eax
sete al
mov ecx, dword [esp + 0x14d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14c0]
xor ecx, esp
call fcn.0040cef9
add esp, 0x14d0
ret 0x10