Function at 0x405430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433640
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x44d1d0]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x445254
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40581f
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 4
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push str.EnableLogType
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40574c
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push str.EnableLogLevel
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40550f
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov dword [ebp - 0x1c], 0x104
mov word [ebp - 0x22c], 0
push 0x206
push 0
lea edx, [ebp - 0x22a]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
push str.EnableLogModule
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40574c
cmp dword [ebp - 0x1c], 0
jbe 0x40574c
mov word [ebp - 0x26], 0
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x268]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], 0
push 0x4452d8
lea ecx, [ebp - 0x24c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 1
push 0
lea edx, [ebp - 0x24c]
push edx
lea ecx, [ebp - 0x268]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int_const]
mov dword [ebp - 0x230], eax
lea ecx, [ebp - 0x268]
call dword [sym.imp.MSVCP80.dll_public:_bool___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::empty_void_const]
movzx eax, al
test eax, eax
jne 0x405729
push 0
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x268]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int_const]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jl 0x4056ea
mov edx, dword [ebp - 0x230]
push edx
push 0
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x268]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
mov dword [ebp - 0x2d8], eax
mov ecx, dword [ebp - 0x2d8]
mov dword [ebp - 0x2dc], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2dc]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
add esp, 4
mov dword [ebp - 0x26c], eax
lea edx, [ebp - 0x26c]
push edx
lea eax, [ebp - 0x294]
push eax
mov ecx, dword [ebp - 0x2d4]
add ecx, 8
call fcn.004058e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x288]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x268]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::length_void_const]
push eax
lea ecx, [ebp - 0x24c]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::length_void_const]
add eax, dword [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2b0]
push ecx
lea ecx, [ebp - 0x268]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
mov dword [ebp - 0x2e0], eax
mov edx, dword [ebp - 0x2e0]
mov dword [ebp - 0x2e4], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x268]
call dword [0x4351a4]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x405724
lea ecx, [ebp - 0x268]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
add esp, 4
mov dword [ebp - 0x2b4], eax
lea ecx, [ebp - 0x2b4]
push ecx
lea edx, [ebp - 0x2c0]
push edx
mov ecx, dword [ebp - 0x2d4]
add ecx, 8
call fcn.004058e0
jmp 0x405729
jmp 0x4055c3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx]
mov dword [ebp - 0x2e8], edx
cmp dword [ebp - 0x2e8], 1
je 0x40577b
cmp dword [ebp - 0x2e8], 3
je 0x4057ce
jmp 0x40581f
push 8
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
je 0x4057a7
mov ecx, dword [ebp - 0x2c8]
call fcn.0042db10
mov dword [ebp - 0x2ec], eax
jmp 0x4057b1
mov dword [ebp - 0x2ec], 0
mov eax, dword [ebp - 0x2ec]
mov dword [ebp - 0x2c4], eax
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ebp - 0x2c4]
mov dword [ecx + 0x14], edx
jmp 0x40581f
push 0xc
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x2d0], eax
cmp dword [ebp - 0x2d0], 0
je 0x4057fa
mov ecx, dword [ebp - 0x2d0]
call fcn.00405320
mov dword [ebp - 0x2f0], eax
jmp 0x405804
mov dword [ebp - 0x2f0], 0
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ebp - 0x2cc]
mov dword [ecx + 0x34], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00415da2
mov esp, ebp
pop ebp
ret