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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x101a5034]
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 0x10074159
push str.Failed_to_open_registry_key.
push 3
push 0x70
push 0x1017116c
push 0x1017118c
call fcn.101426f0
add esp, 0x14
jmp 0x10074333
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 0x100741bc
push str.Failed_to_query_registry_value.
push 3
push 0x7b
push 0x101711c8
push 0x101711e8
call fcn.101426f0
add esp, 0x14
jmp 0x10074333
cmp dword [ebp - 0x108], 1
jne 0x1007428c
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 0x1007423f
cmp byte [ebp - 0x112], 0
je 0x10074233
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 0x1007423f
add dword [ebp - 0x120], 2
add dword [ebp - 0x11c], 2
cmp byte [ebp - 0x114], 0
jne 0x100741e1
mov dword [ebp - 0x12c], 0
jmp 0x1007424a
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 0x1007428c
push 0x1004ac10
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.1003c4a0
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 0x10074333
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 0x100742a7
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 0x10074324
push str.Failed_to_set_registry_value_to_Allow.
push 3
push 0x8a
push str..._srcMoniterHelperpch.cpp
push str.SetRegistryValueIfNotAllow
call fcn.101426f0
add esp, 0x14
jmp 0x10074333
mov byte [ebp - 0x111], 1
xor eax, eax
jne 0x10074118
cmp dword [ebp - 0x110], 0
je 0x10074349
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.1014c66b
mov esp, ebp
pop ebp
ret