Function at 0x40a47b
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1c94
call fcn.00412030
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x1c88], eax
mov ebx, edx
xor eax, eax
mov dword [ebp - 0x1c80], ecx
push 0x410
mov word [ebp - 0xa38], ax
lea eax, [ebp - 0xa36]
push esi
push eax
mov dword [ebp - 0x1c8c], edi
mov dword [ebp - 0x1c84], esi
call sub.msvcrt.dll_memset
xor eax, eax
push 0x410
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x1c84]
push eax
push 0x20019
push esi
push 0x401588
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a601
lea eax, [ebp - 0x1c90]
mov dword [ebp - 0x1c90], 0x104
push eax
lea eax, [ebp - 0x624]
push eax
push esi
push esi
push ebx
push dword [ebp - 0x1c84]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a601
mov eax, dword [ebp - 0x1c90]
and eax, 0xfffffffe
cmp eax, 0x20a
jae 0x40a8a0
xor ecx, ecx
mov word [ebp + eax - 0x624], cx
lea ecx, [ebp - 0x624]
call fcn.00410767
test eax, eax
je 0x40a601
lea eax, [ebp - 0x624]
push eax
lea ecx, [ebp - 0x1c7c]
call fcn.0040eb66
lea eax, [ebp - 0x1866]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40a62b
cmp dword [ebp + 0x14], esi
jne 0x40a5fe
mov edi, 0x209
lea eax, [ebp - 0xa38]
push edi
push eax
push 0xe9
push dword [ebp - 0x1c80]
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
lea eax, [ebp - 0x1866]
push eax
push dword [ebp - 0x1c8c]
lea eax, [ebp - 0xa38]
push eax
push 0x900
push esi
push esi
lea eax, [ebp - 0x418]
push edi
push eax
call fcn.00410f98
add esp, 0x24
push esi
push ebx
lea eax, [ebp - 0x418]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
or esi, 0xffffffff
cmp dword [ebp - 0x1c84], 0
je 0x40a616
push dword [ebp - 0x1c84]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411980
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebp - 0x624]
push eax
push esi
push 0x402860
push 0x4028d4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0x4134a8
push 0x402ec4
push 0x900
push esi
push esi
mov dword [ebp - 0x1c94], eax
lea eax, [ebp - 0xc44]
push 0x105
push eax
call fcn.00410f98
add esp, 0x20
test eax, eax
js 0x40a5fe
lea eax, [ebp - 0xc44]
push eax
push esi
push 0x402860
push 0x4028d4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x1c94]
cmp ecx, eax
jle 0x40a6e5
cmp dword [ebp + 0x14], esi
jne 0x40a5fe
mov edi, 0x209
lea eax, [ebp - 0xa38]
push edi
push eax
push 0xdd
push dword [ebp - 0x1c80]
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
lea eax, [ebp - 0xa38]
push eax
push 0x900
push esi
push esi
lea eax, [ebp - 0x418]
push edi
push eax
call fcn.00410f98
add esp, 0x1c
push 0x41000
jmp 0x40a5ef
cmp ecx, 4
jge 0x40a601
call fcn.00408fdb
test eax, eax
jne 0x40a742
cmp dword [ebp + 0x14], esi
jne 0x40a5fe
mov edi, 0x209
lea eax, [ebp - 0xa38]
push edi
push eax
push 0xdf
push dword [ebp - 0x1c80]
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
lea eax, [ebp - 0xa38]
push eax
push 0x900
push esi
push esi
lea eax, [ebp - 0x418]
push edi
push eax
call fcn.00410f98
add esp, 0x1c
jmp 0x40a5ee
mov edi, 0x209
cmp dword [ebp + 0x14], esi
jne 0x40a79a
push edi
lea eax, [ebp - 0xa38]
push eax
push 0xde
push dword [ebp - 0x1c80]
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
lea eax, [ebp - 0xa38]
push eax
push 0x900
push esi
push esi
lea eax, [ebp - 0x418]
push edi
push eax
call fcn.00410f98
add esp, 0x1c
lea eax, [ebp - 0x418]
push 0x41004
push ebx
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40a79d
push 6
pop eax
cmp eax, 6
jne 0x40a5fe
mov ecx, dword [ebp - 0x1c8c]
lea eax, [ebp - 0xc44]
push eax
lea edx, [ebp - 0x624]
call fcn.00409fd3
test eax, eax
je 0x40a5fe
lea eax, [ebp - 0x624]
push eax
lea ecx, [ebp - 0x1460]
call fcn.0040eb66
push 0x104
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40a898
lea eax, [ebp - 0x104a]
mov ebx, 0x900
push eax
lea eax, [ebp - 0xa38]
push eax
push 0x402ed8
push ebx
push esi
push esi
lea eax, [ebp - 0x418]
push edi
push eax
call fcn.00410f98
add esp, 0x20
test eax, eax
js 0x40a830
lea ecx, [ebp - 0x418]
call fcn.00410767
test eax, eax
jne 0x40a871
lea eax, [ebp - 0x104a]
push eax
push eax
lea eax, [ebp - 0x124c]
push eax
lea eax, [ebp - 0x1256]
push eax
push 0x402eec
push ebx
push esi
push esi
lea eax, [ebp - 0x418]
push edi
push eax
call fcn.00410f98
add esp, 0x28
test eax, eax
js 0x40a88d
lea ecx, [ebp - 0x418]
call fcn.00410767
test eax, eax
je 0x40a88d
push ebx
push ecx
push ecx
mov ecx, dword [ebp - 0x1c88]
lea eax, [ebp - 0x418]
push eax
mov edx, 0x105
call fcn.00410ebe
jmp 0x40a898
mov eax, dword [ebp - 0x1c88]
xor ecx, ecx
mov word [eax], cx
xor esi, esi
inc esi
jmp 0x40a601
call fcn.00411ad9
int3