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

Disassembly:
sub esp, 0x150
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 + 0x170]
mov ecx, dword [0x43832c]
mov edi, dword [esp + 0x174]
cmp ebp, 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], 0x12b
je 0x406e73
mov edi, dword [esp + 0x178]
mov eax, dword [esp + 0x184]
test eax, eax
jne 0x407037
mov eax, dword [esp + 0x168]
test eax, eax
je 0x406f68
mov edx, dword [esp + 0x16c]
mov esi, dword [esp + 0x17c]
mov eax, dword [esp + 0x180]
push edx
push 0x12b
push esi
push eax
push edi
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 2
jge 0x406ec7
mov dword [esp + 0x20], 0xfffffffe
test eax, eax
jne 0x406ed3
mov dword [esp + 0x20], 0xfffffffd
cmp ebp, 1
jne 0x406ee6
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 0x12b
call fcn.00422132
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x407157
mov eax, dword [esp + 0x164]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x17c]
test eax, eax
je 0x406fae
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 0x406fae
cmp ebp, 1
jne 0x406fb9
push 0x43d31c
push esi
call fcn.00405d80
add esp, 8
jmp 0x406fb9
mov eax, dword [esp + 0x180]
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 0x12b
call fcn.00422132
push eax
push esi
call ebx
jmp 0x407157
mov esi, dword [esp + 0x17c]
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 0x12b
call fcn.00422132
cmp ebp, 1
mov esi, eax
jne 0x4070e0
push 0x43d31c
push esi
call fcn.00405d80
add esp, 8
mov eax, dword [esp + 0x168]
push esi
test eax, eax
je 0x40712a
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 + 0x16c]
push ecx
push esi
push edi
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x407146
mov dword [esp + 0x20], 0xffffffff
jmp 0x407146
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x164]
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, 0x150
ret