Function at 0x1000b320
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1000a
mov dword [ebp - 0x14], 0
lea ebx, [eax + 0x1e]
call fcn.1005218a
add esp, 4
mov edi, eax
mov dword [ebp - 8], edi
push 0x2000a
call fcn.1005218a
add esp, 4
mov esi, eax
test edi, edi
je 0x1000b417
test esi, esi
je 0x1000b417
push dword [ebp - 0xc]
push str._MM__Getting_VBAW_value_for_key_0x_p...
push 0xffff
push esi
call fcn.1005211a
add esp, 0x10
test eax, eax
jle 0x1000b402
xor eax, eax
push 0xfffffffffffffffe
push esi
mov word [esi + 0x1fffe], ax
call fcn.10051b84
push 0xffffffffffffffff
push esi
inc eax
push eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.10052d14
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x1c
test eax, eax
je 0x1000b3e2
push ebx
push esi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push esi
call edi
push ebx
mov ebx, dword [ebp - 8]
mov edx, 0x6d
push ebx
push str._GetVBAWarningsValue
push 4
mov ecx, str...MacroManager.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1000b434
push ebx
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x1000b429
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call edi
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000b441
push ebx
call fcn.10052152
add esp, 4
test esi, esi
je 0x1000b44e
push esi
call fcn.10052152
add esp, 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.VBAWarnings
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000b474
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x1e
mov dword [ebp - 0x14], 0
push 0x1000a
mov dword [ebp - 8], eax
call fcn.1005218a
add esp, 4
mov ebx, eax
push 0x2000a
call fcn.1005218a
add esp, 4
mov esi, eax
test ebx, ebx
je 0x1000b543
test esi, esi
je 0x1000b543
push dword [ebp - 4]
push dword [ebp - 0xc]
push str._MM__Returning_VBAW_value_for_key_0x_p:__d
push 0xffff
push esi
call fcn.1005211a
add esp, 0x14
test eax, eax
jle 0x1000b52c
xor eax, eax
push 0xfffffffffffffffe
push esi
mov word [esi + 0x1fffe], ax
call fcn.10051b84
push 0xffffffffffffffff
push esi
inc eax
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.10052d14
add esp, 0x1c
test eax, eax
je 0x1000b50d
push dword [ebp - 8]
push esi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push esi
call edi
push dword [ebp - 8]
mov edx, 0x72
mov ecx, str...MacroManager.cpp
push ebx
push str._GetVBAWarningsValue
push 4
call fcn.10001cf0
add esp, 0x10
jmp 0x1000b557
push dword [ebp - 8]
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x1000b555
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call edi
test ebx, ebx
je 0x1000b564
push ebx
call fcn.10052152
add esp, 4
test esi, esi
je 0x1000b571
push esi
call fcn.10052152
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret