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

Disassembly:
mov eax, dword [0x4271b8]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
mov byte [eax], 0
push ebp
mov eax, dword [ebx + 0x20]
xor ebp, ebp
push esi
push edi
test eax, eax
je 0x4126a9
push str.parent
push eax
call fcn.004192a0
add esp, 8
test eax, eax
je 0x4126a4
mov edi, dword [ebx + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [0x427648]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4126a9
mov ebp, 1
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x412714
mov ecx, dword [ebx + 0x28]
cmp ecx, 0x10
jb 0x4126c0
mov ecx, dword [0x422048]
jmp 0x4126c7
mov ecx, dword [ecx*4 + 0x422044]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412714
mov ecx, dword [0x4271b8]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebx + 0x30]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x4271b8]
cmp byte [edx], 0
jne 0x412796
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x41278d
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x41278d
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x41278d
mov edi, dword [0x427648]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x38]
mov edx, dword [0x427648]
mov eax, dword [0x4271b8]
push ecx
mov ecx, dword [ebx + 0x40]
push 0x104
push edx
mov edx, dword [ebx + 0x3c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
test eax, eax
jne 0x412787
mov eax, dword [0x4271b8]
mov byte [eax], 0
mov edx, dword [0x4271b8]
cmp byte [edx], 0
je 0x412859
push edx
call fcn.00418e68
add esp, 4
test eax, eax
je 0x4127ff
mov ecx, dword [0x4271b8]
push 0x5c
push ecx
call fcn.00418b20
mov esi, eax
add esp, 8
test esi, esi
je 0x4127f7
lea edx, [esi + 1]
push 0x2e
push edx
call fcn.00418b60
add esp, 8
test eax, eax
je 0x4127ec
mov byte [esi], 0
mov eax, dword [0x4271b8]
push eax
call fcn.00418e68
add esp, 4
test eax, eax
je 0x4127ff
mov ecx, dword [0x4271b8]
mov byte [ecx], 0
jmp 0x4127ff
mov edx, dword [0x4271b8]
mov byte [edx], 0
jmp 0x4127ff
mov eax, dword [0x4271b8]
mov byte [eax], 0
mov eax, dword [0x4271b8]
cmp byte [eax], 0
je 0x412859
test ebp, ebp
je 0x41281f
push 0x5c
push eax
call fcn.00418b20
add esp, 8
test eax, eax
je 0x41281f
mov byte [eax], 0
mov edi, dword [0x4271b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [0x427648]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x427648]
cmp byte [eax], 0
je 0x41285e
push eax
call fcn.00412880
add esp, 4
mov eax, dword [0x427648]
push 0x104
push eax
push eax
call fcn.0040bd90
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret