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

Disassembly:
push 0x144
mov eax, 0x10009d3c
call fcn.1000966c
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
push str._callRegistry__mode:__d_n
push dword [0x1000f74c]
call fcn.10003a9a
push dword [0x1000f74c]
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.10001b3f
and dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push str.remember
call fcn.10001b3f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
jb 0x10005a1d
mov ecx, dword [ebp - 0x12c]
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x10005a32
mov eax, dword [ebp - 0x144]
push ecx
push eax
push str._callRegistry__subKey:__s__valueName:__s_n
push dword [0x1000f74c]
call fcn.10003a9a
push dword [0x1000f74c]
call esi
xor edx, edx
mov dword [ebp - 0x150], 0xff
add esp, 0x14
mov dword [ebp - 0x14c], edx
test edi, edi
jne 0x10005b78
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x10005a7e
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 0x10005ce6
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
jb 0x10005ab4
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 0x10005b6d
cmp dword [ebp - 0x14c], 1
jne 0x10005b4d
lea eax, [ebp - 0x114]
push eax
push str._callRegistry__Value:__s_n
push dword [0x1000f74c]
call fcn.10003a9a
push dword [0x1000f74c]
call esi
lea eax, [ebp - 0x114]
mov byte [0x1000f700], 1
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
add esp, 0x14
mov edi, 0x1000f704
mov ecx, edi
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.10002651
cmp dword [0x1000f718], 0x10
jb 0x10005b42
mov edi, dword [0x1000f704]
push edi
push str._callRegistry__rememberData:__s_n
jmp 0x10005cc2
push str._callRegistry__Unexpected_value_type._n
push dword [0x1000f74c]
call fcn.10003a9a
push dword [0x1000f74c]
call esi
add esp, 0xc
jmp 0x10005cd8
push eax
push str._callRegistry__Failed_to_read_the_value__status:__d._n
jmp 0x10005cc2
cmp edi, 1
jne 0x10005c25
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x10005b96
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 0x10005ce6
cmp dword [ebp - 0x118], 0x10
lea edi, [ebp - 0x12c]
jb 0x10005bd0
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 0x10005c1a
push ebx
push str._callRegistry__Value__s_written_successfully._n
push dword [0x1000f74c]
call fcn.10003a9a
push dword [0x1000f74c]
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 0x10005cb0
push eax
push str._callRegistry__Failed_to_write_the_value__status:__d._n
jmp 0x10005cc2
cmp edi, 2
jne 0x10005d02
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x10005c43
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 0x10005ce6
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
jb 0x10005c76
mov eax, dword [ebp - 0x12c]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x10005cbc
push str._callRegistry__Value_deleted_successfully._n
push dword [0x1000f74c]
call fcn.10003a9a
push dword [0x1000f74c]
call esi
mov esi, 0x1000b71c
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, 0x1000f704
call fcn.10002651
jmp 0x10005cd8
push eax
push str._callRegistry__Failed_to_delete_the_value__status:__d._n
push dword [0x1000f74c]
call fcn.10003a9a
push dword [0x1000f74c]
call esi
add esp, 0x10
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10005d02
push eax
push str._callRegistry__Failed_to_open_the_registry_key__status:__d._n
push dword [0x1000f74c]
call fcn.10003a9a
push dword [0x1000f74c]
call esi
add esp, 0x10
lea ecx, [ebp - 0x12c]
call fcn.10001b1c
lea ecx, [ebp - 0x144]
call fcn.10001b1c
call fcn.1000962a
ret 8