Function at 0x10006510
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0x144
mov eax, 0x10008cc3
call fcn.100088bc
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
push str._callRegistry__mode:__d_n
push dword [0x1000c510]
call fcn.1000460b
push dword [0x1000c510]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
call esi
add esp, 0x10
lea ecx, [ebp - 0x144]
push str.SOFTWARETibiazQt_DLL_Osiem
call fcn.10003509
and dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push str.remember
call fcn.10003509
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
jb 0x10006584
mov ecx, dword [ebp - 0x12c]
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x10006599
mov eax, dword [ebp - 0x144]
push ecx
push eax
push str._callRegistry__subKey:__s__valueName:__s_n
push dword [0x1000c510]
call fcn.1000460b
push dword [0x1000c510]
call esi
xor edx, edx
mov dword [ebp - 0x150], 0xff
add esp, 0x14
mov dword [ebp - 0x14c], edx
test edi, edi
jne 0x100066df
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x100065e5
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x148]
push ecx
push 0x20019
push edx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000684d
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
jb 0x1000661b
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x14c]
push ecx
push 0
push eax
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100066d4
cmp dword [ebp - 0x14c], 1
jne 0x100066b4
lea eax, [ebp - 0x114]
push eax
push str._callRegistry__Value:__s_n
push dword [0x1000c510]
call fcn.1000460b
push dword [0x1000c510]
call esi
lea eax, [ebp - 0x114]
mov byte [0x1000c4c4], 1
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
add esp, 0x14
mov edi, 0x1000c4c8
mov ecx, edi
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.100035c5
cmp dword [0x1000c4dc], 0x10
jb 0x100066a9
mov edi, dword [0x1000c4c8]
push edi
push str._callRegistry__rememberData:__s_n
jmp 0x10006829
push str._callRegistry__Unexpected_value_type._n
push dword [0x1000c510]
call fcn.1000460b
push dword [0x1000c510]
call esi
add esp, 0xc
jmp 0x1000683f
push eax
push str._callRegistry__Failed_to_read_the_value__status:__d._n
jmp 0x10006829
cmp edi, 1
jne 0x1000678c
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x100066fd
mov eax, dword [ebp - 0x144]
push edx
lea ecx, [ebp - 0x148]
push ecx
push edx
push 0x20006
push edx
push edx
push edx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000684d
cmp dword [ebp - 0x118], 0x10
lea edi, [ebp - 0x12c]
jb 0x10006737
mov edi, dword [ebp - 0x12c]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
inc eax
push eax
push ebx
push 1
push 0
push edi
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10006781
push ebx
push str._callRegistry__Value__s_written_successfully._n
push dword [0x1000c510]
call fcn.1000460b
push dword [0x1000c510]
call esi
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
add esp, 0x14
push eax
push ebx
jmp 0x10006817
push eax
push str._callRegistry__Failed_to_write_the_value__status:__d._n
jmp 0x10006829
cmp edi, 2
jne 0x10006869
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x100067aa
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x148]
push ecx
push 2
push edx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000684d
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
jb 0x100067dd
mov eax, dword [ebp - 0x12c]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x10006823
push str._callRegistry__Value_deleted_successfully._n
push dword [0x1000c510]
call fcn.1000460b
push dword [0x1000c510]
call esi
mov esi, 0x1000930c
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
add esp, 0x10
push eax
push esi
mov ecx, 0x1000c4c8
call fcn.100035c5
jmp 0x1000683f
push eax
push str._callRegistry__Failed_to_delete_the_value__status:__d._n
push dword [0x1000c510]
call fcn.1000460b
push dword [0x1000c510]
call esi
add esp, 0x10
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10006869
push eax
push str._callRegistry__Failed_to_open_the_registry_key__status:__d._n
push dword [0x1000c510]
call fcn.1000460b
push dword [0x1000c510]
call esi
add esp, 0x10
lea ecx, [ebp - 0x12c]
call fcn.100034e6
lea ecx, [ebp - 0x144]
call fcn.100034e6
call fcn.1000887a
ret 8