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

Disassembly:
push 0x144
mov eax, 0x10006cb9
call fcn.100068ba
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
push str._callRegistry__mode:__d_n
push dword [0x1000a50c]
call fcn.100022ba
push dword [0x1000a50c]
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_Tibiantic
call fcn.100011f8
and dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push str.remember
call fcn.100011f8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
jb 0x10004540
mov ecx, dword [ebp - 0x12c]
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x10004555
mov eax, dword [ebp - 0x144]
push ecx
push eax
push str._callRegistry__subKey:__s__valueName:__s_n
push dword [0x1000a50c]
call fcn.100022ba
push dword [0x1000a50c]
call esi
xor edx, edx
mov dword [ebp - 0x150], 0xff
add esp, 0x14
mov dword [ebp - 0x14c], edx
test edi, edi
jne 0x1000469b
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x100045a1
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 0x10004809
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
jb 0x100045d7
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 0x10004690
cmp dword [ebp - 0x14c], 1
jne 0x10004670
lea eax, [ebp - 0x114]
push eax
push str._callRegistry__Value:__s_n
push dword [0x1000a50c]
call fcn.100022ba
push dword [0x1000a50c]
call esi
lea eax, [ebp - 0x114]
mov byte [0x1000a4c0], 1
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
add esp, 0x14
mov edi, 0x1000a4c4
mov ecx, edi
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.100018ad
cmp dword [0x1000a4d8], 0x10
jb 0x10004665
mov edi, dword [0x1000a4c4]
push edi
push str._callRegistry__rememberData:__s_n
jmp 0x100047e5
push str._callRegistry__Unexpected_value_type._n
push dword [0x1000a50c]
call fcn.100022ba
push dword [0x1000a50c]
call esi
add esp, 0xc
jmp 0x100047fb
push eax
push str._callRegistry__Failed_to_read_the_value__status:__d._n
jmp 0x100047e5
cmp edi, 1
jne 0x10004748
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x100046b9
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 0x10004809
cmp dword [ebp - 0x118], 0x10
lea edi, [ebp - 0x12c]
jb 0x100046f3
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 0x1000473d
push ebx
push str._callRegistry__Value__s_written_successfully._n
push dword [0x1000a50c]
call fcn.100022ba
push dword [0x1000a50c]
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 0x100047d3
push eax
push str._callRegistry__Failed_to_write_the_value__status:__d._n
jmp 0x100047e5
cmp edi, 2
jne 0x10004825
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x10004766
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 0x10004809
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
jb 0x10004799
mov eax, dword [ebp - 0x12c]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x100047df
push str._callRegistry__Value_deleted_successfully._n
push dword [0x1000a50c]
call fcn.100022ba
push dword [0x1000a50c]
call esi
mov esi, 0x100073a0
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, 0x1000a4c4
call fcn.100018ad
jmp 0x100047fb
push eax
push str._callRegistry__Failed_to_delete_the_value__status:__d._n
push dword [0x1000a50c]
call fcn.100022ba
push dword [0x1000a50c]
call esi
add esp, 0x10
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004825
push eax
push str._callRegistry__Failed_to_open_the_registry_key__status:__d._n
push dword [0x1000a50c]
call fcn.100022ba
push dword [0x1000a50c]
call esi
add esp, 0x10
lea ecx, [ebp - 0x12c]
call fcn.100011d5
lea ecx, [ebp - 0x144]
call fcn.100011d5
call fcn.10006878
ret 8