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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10007e7b
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x1000b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push str._callRegistry__mode:__d_n
push dword [0x1000b50c]
mov dword [ebp - 0x154], eax
call fcn.100025b0
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 0xc
push dword [0x1000b50c]
call ebx
add esp, 4
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
push 0x20
call fcn.10006a31
mov dword [ebp - 0x144], eax
mov ecx, 7
mov dword [ebp - 0x134], 0x1c
mov esi, str.SOFTWARETibiazQt_DLL_Osiem
mov dword [ebp - 0x130], 0x1f
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add esp, 4
mov byte [eax + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 8
mov dword [ebp - 0x114], 0xf
mov dword [ebp - 0x128], 0x656d6572
mov dword [ebp - 0x124], 0x7265626d
mov byte [ebp - 0x120], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x144]
cmp dword [ebp - 0x130], 0x10
jb 0x10005291
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x128]
push ecx
push eax
push str._callRegistry__subKey:__s__valueName:__s_n
push dword [0x1000b50c]
call fcn.100025b0
push dword [0x1000b50c]
call ebx
mov eax, dword [ebp + 8]
add esp, 0x14
mov dword [ebp - 0x150], 0xff
mov dword [ebp - 0x14c], 0
test eax, eax
jne 0x10005400
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x100052e8
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x148]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100055ab
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
jb 0x1000531f
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x110]
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 0x100053f5
cmp dword [ebp - 0x14c], 1
jne 0x100053c9
lea eax, [ebp - 0x110]
push eax
push str._callRegistry__Value:__s_n
push dword [0x1000b50c]
call fcn.100025b0
add esp, 0xc
push dword [0x1000b50c]
call ebx
lea ecx, [ebp - 0x110]
mov byte [0x1000b4c0], 1
add esp, 4
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005390
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, 0x1000b4c4
call fcn.10001ca0
cmp dword [0x1000b4d8], 0x10
mov eax, 0x1000b4c4
jb 0x100053be
mov eax, dword [0x1000b4c4]
push eax
push str._callRegistry__rememberData:__s_n
jmp 0x10005584
push str._callRegistry__Unexpected_value_type._n
push dword [0x1000b50c]
call fcn.100025b0
push dword [0x1000b50c]
call ebx
add esp, 0xc
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100055ca
push eax
push str._callRegistry__Failed_to_read_the_value__status:__d._n
jmp 0x10005584
cmp eax, 1
jne 0x100054e1
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x1000541e
mov eax, dword [ebp - 0x144]
push 0
lea ecx, [ebp - 0x148]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100055ab
mov esi, dword [ebp - 0x154]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005453
sub ecx, edx
cmp dword [ebp - 0x114], 0x10
lea edx, [ebp - 0x128]
jb 0x10005471
mov edx, dword [ebp - 0x128]
lea eax, [ecx + 1]
push eax
push esi
push 1
push 0
push edx
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100054d6
push esi
push str._callRegistry__Value__s_written_successfully._n
push dword [0x1000b50c]
call fcn.100025b0
add esp, 0xc
push dword [0x1000b50c]
call ebx
mov ecx, esi
add esp, 4
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100054b0
sub ecx, edx
push ecx
push esi
mov ecx, 0x1000b4c4
call fcn.10001ca0
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100055ca
push eax
push str._callRegistry__Failed_to_write_the_value__status:__d._n
jmp 0x10005584
cmp eax, 2
jne 0x100055ca
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
jb 0x100054ff
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x148]
push ecx
push 2
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100055ab
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
jb 0x10005533
mov eax, dword [ebp - 0x128]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x1000557e
push str._callRegistry__Value_deleted_successfully._n
push dword [0x1000b50c]
call fcn.100025b0
push dword [0x1000b50c]
call ebx
add esp, 0xc
mov ecx, 0x1000b4c4
push 0
push 0x10009388
call fcn.10001ca0
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100055ca
push eax
push str._callRegistry__Failed_to_delete_the_value__status:__d._n
push dword [0x1000b50c]
call fcn.100025b0
add esp, 0xc
push dword [0x1000b50c]
call ebx
add esp, 4
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100055ca
push eax
push str._callRegistry__Failed_to_open_the_registry_key__status:__d._n
push dword [0x1000b50c]
call fcn.100025b0
add esp, 0xc
push dword [0x1000b50c]
call ebx
add esp, 4
mov ecx, dword [ebp - 0x114]
cmp ecx, 0x10
jb 0x10005600
mov edx, dword [ebp - 0x128]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100055f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005647
push ecx
push edx
call fcn.10006a61
add esp, 8
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
cmp ecx, 0x10
jb 0x10005657
mov edx, dword [ebp - 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000564d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000564d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10006a61
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10006a23
mov esp, ebp
pop ebp
ret 8