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

Disassembly:
push 0x144
mov eax, 0x1000c02c
call fcn.1000b95c
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
push str._callRegistry__mode:__d_n
push dword [0x1001275c]
call fcn.10005d95
push dword [0x1001275c]
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.10003540
and dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push str.remember
call fcn.10003540
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
jb 0x10007d18
mov ecx, dword [ebp - 0x12c]
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x10007d2d
mov eax, dword [ebp - 0x144]
push ecx
push eax
push str._callRegistry__subKey:__s__valueName:__s_n
push dword [0x1001275c]
call fcn.10005d95
push dword [0x1001275c]
call esi
xor edx, edx
mov dword [ebp - 0x150], 0xff
add esp, 0x14
mov dword [ebp - 0x14c], edx
test edi, edi
jne 0x10007e73
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x10007d79
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 0x10007fe1
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
jb 0x10007daf
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 0x10007e68
cmp dword [ebp - 0x14c], 1
jne 0x10007e48
lea eax, [ebp - 0x114]
push eax
push str._callRegistry__Value:__s_n
push dword [0x1001275c]
call fcn.10005d95
push dword [0x1001275c]
call esi
lea eax, [ebp - 0x114]
mov byte [0x10012710], 1
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
add esp, 0x14
mov edi, 0x10012714
mov ecx, edi
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.100035f2
cmp dword [0x10012728], 0x10
jb 0x10007e3d
mov edi, dword [0x10012714]
push edi
push str._callRegistry__rememberData:__s_n
jmp 0x10007fbd
push str._callRegistry__Unexpected_value_type._n
push dword [0x1001275c]
call fcn.10005d95
push dword [0x1001275c]
call esi
add esp, 0xc
jmp 0x10007fd3
push eax
push str._callRegistry__Failed_to_read_the_value__status:__d._n
jmp 0x10007fbd
cmp edi, 1
jne 0x10007f20
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x10007e91
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 0x10007fe1
cmp dword [ebp - 0x118], 0x10
lea edi, [ebp - 0x12c]
jb 0x10007ecb
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 0x10007f15
push ebx
push str._callRegistry__Value__s_written_successfully._n
push dword [0x1001275c]
call fcn.10005d95
push dword [0x1001275c]
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 0x10007fab
push eax
push str._callRegistry__Failed_to_write_the_value__status:__d._n
jmp 0x10007fbd
cmp edi, 2
jne 0x10007ffd
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x10007f3e
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 0x10007fe1
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
jb 0x10007f71
mov eax, dword [ebp - 0x12c]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x10007fb7
push str._callRegistry__Value_deleted_successfully._n
push dword [0x1001275c]
call fcn.10005d95
push dword [0x1001275c]
call esi
mov esi, 0x1000d3dc
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, 0x10012714
call fcn.100035f2
jmp 0x10007fd3
push eax
push str._callRegistry__Failed_to_delete_the_value__status:__d._n
push dword [0x1001275c]
call fcn.10005d95
push dword [0x1001275c]
call esi
add esp, 0x10
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10007ffd
push eax
push str._callRegistry__Failed_to_open_the_registry_key__status:__d._n
push dword [0x1001275c]
call fcn.10005d95
push dword [0x1001275c]
call esi
add esp, 0x10
lea ecx, [ebp - 0x12c]
call fcn.100034e6
lea ecx, [ebp - 0x144]
call fcn.100034e6
call fcn.1000b91a
ret 8