Function at 0x10075850
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x101ac034]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x128], str.Value
mov dword [ebp - 0x124], str.Allow
mov byte [ebp - 0x111], 0
lea eax, [ebp - 0x110]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 8]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100758c9
push str.Failed_to_open_registry_key.
push 3
push 0x70
push 0x10176ea0
push 0x10176ec0
call fcn.10145f00
add esp, 0x14
jmp 0x10075aa3
mov dword [ebp - 0x10c], 0x100
mov dword [ebp - 0x108], 0
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
mov edx, dword [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1007592c
push str.Failed_to_query_registry_value.
push 3
push 0x7b
push 0x10176efc
push 0x10176f1c
call fcn.10145f00
add esp, 0x14
jmp 0x10075aa3
cmp dword [ebp - 0x108], 1
jne 0x100759fc
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x11c], ecx
lea edx, [ebp - 0x104]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x120]
mov cl, byte [eax]
mov byte [ebp - 0x112], cl
mov edx, dword [ebp - 0x11c]
cmp cl, byte [edx]
jne 0x100759af
cmp byte [ebp - 0x112], 0
je 0x100759a3
mov eax, dword [ebp - 0x120]
mov cl, byte [eax + 1]
mov byte [ebp - 0x114], cl
mov edx, dword [ebp - 0x11c]
cmp cl, byte [edx + 1]
jne 0x100759af
add dword [ebp - 0x120], 2
add dword [ebp - 0x11c], 2
cmp byte [ebp - 0x114], 0
jne 0x10075951
mov dword [ebp - 0x12c], 0
jmp 0x100759ba
sbb eax, eax
or eax, 1
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x138], ecx
cmp dword [ebp - 0x138], 0
jne 0x100759fc
push 0x1004a640
push str.The_registry_value_is_already_set_to_Allow.
mov edx, dword [sym.imp.MSVCP120.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push edx
call fcn.1003b600
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [ebp - 0x111], 1
jmp 0x10075aa3
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x118]
mov al, byte [edx]
mov byte [ebp - 0x113], al
add dword [ebp - 0x118], 1
cmp byte [ebp - 0x113], 0
jne 0x10075a17
mov ecx, dword [ebp - 0x118]
sub ecx, dword [ebp - 0x130]
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x134]
add edx, 1
push edx
mov eax, dword [ebp - 0x124]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10075a94
push str.Failed_to_set_registry_value_to_Allow.
push 3
push 0x8a
push str..._srcMoniterHelperpch.cpp
push str.SetRegistryValueIfNotAllow
call fcn.10145f00
add esp, 0x14
jmp 0x10075aa3
mov byte [ebp - 0x111], 1
xor eax, eax
jne 0x10075888
cmp dword [ebp - 0x110], 0
je 0x10075ab9
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x111]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101506bb
mov esp, ebp
pop ebp
ret