Function at 0x407190
Capabilities:
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
sub esp, 0xbdc
mov eax, dword [0x43832c]
push ebx
push ebp
push esi
push edi
push str._BR_
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0
call fcn.00421d85
push str._CR_
lea ecx, [esp + 0x28]
call fcn.00421d85
mov ebp, dword [esp + 0xbfc]
mov ecx, dword [0x43832c]
mov edi, dword [esp + 0xc00]
cmp ebp, 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], 0xbb8
je 0x4071f3
mov edi, dword [esp + 0xc04]
mov eax, dword [esp + 0xc10]
test eax, eax
jne 0x4073b7
mov eax, dword [esp + 0xbf4]
test eax, eax
je 0x4072e8
mov edx, dword [esp + 0xbf8]
mov esi, dword [esp + 0xc08]
mov eax, dword [esp + 0xc0c]
push edx
push 0xbb7
push esi
push eax
push edi
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 2
jge 0x407247
mov dword [esp + 0x20], 0xfffffffe
test eax, eax
jne 0x407253
mov dword [esp + 0x20], 0xfffffffd
cmp ebp, 1
jne 0x407266
push 0x43d31c
push esi
call fcn.00405d80
add esp, 8
push esi
lea ecx, [esp + 0x18]
call fcn.00421ea0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x437ec0
call fcn.00421d85
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00421a8c
lea eax, [esp + 0x1c]
push eax
call fcn.00407a70
add esp, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x437ebc
call fcn.00421d85
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00421a8c
lea eax, [esp + 0x1c]
push eax
call fcn.00407a70
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xbb7
call fcn.00422132
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4074d7
mov eax, dword [esp + 0xbf0]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0xc08]
test eax, eax
je 0x40732e
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x30]
push ecx
push esi
push edx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40732e
cmp ebp, 1
jne 0x407339
push 0x43d31c
push esi
call fcn.00405d80
add esp, 8
jmp 0x407339
mov eax, dword [esp + 0xc0c]
push eax
push esi
call ebx
push esi
lea ecx, [esp + 0x1c]
call fcn.00421ea0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x437ec0
call fcn.00421d85
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00421a8c
lea eax, [esp + 0x20]
push eax
call fcn.00407a70
add esp, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x437ebc
call fcn.00421d85
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00421a8c
lea eax, [esp + 0x20]
push eax
call fcn.00407a70
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xbb7
call fcn.00422132
push eax
push esi
call ebx
jmp 0x4074d7
mov esi, dword [esp + 0xc08]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x34]
push esi
push ecx
call ebx
mov edx, dword [0x43832c]
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.00421ea0
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00421a8c
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x437ec0
call fcn.00421d85
lea ecx, [esp + 0x18]
push ecx
call fcn.00407a70
add esp, 8
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00421a8c
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x437ebc
call fcn.00421d85
lea eax, [esp + 0x18]
push eax
call fcn.00407a70
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xbb7
call fcn.00422132
cmp ebp, 1
mov esi, eax
jne 0x407460
push 0x43d31c
push esi
call fcn.00405d80
add esp, 8
mov eax, dword [esp + 0xbf4]
push esi
test eax, eax
je 0x4074aa
lea ecx, [esp + 0x18]
call fcn.00421ea0
push 0x12b
lea ecx, [esp + 0x18]
call fcn.00422132
push eax
push esi
call ebx
mov ecx, dword [esp + 0xbf8]
push ecx
push esi
push edi
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x4074c6
mov dword [esp + 0x20], 0xffffffff
jmp 0x4074c6
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0xbf0]
inc eax
push eax
push esi
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x34]
push eax
push esi
call ebx
lea ecx, [esp + 0x10]
call fcn.00421d17
lea ecx, [esp + 0x14]
call fcn.00421d17
lea ecx, [esp + 0x24]
call fcn.00421d17
lea ecx, [esp + 0x1c]
call fcn.00421d17
lea ecx, [esp + 0x18]
call fcn.00421d17
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbdc
ret