Function at 0x40bee0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41058a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2080
call fcn.0040f5f0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x204c], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x40c07b
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040bdd0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40bf5f
lea edx, [ebp - 0x203c]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
mov ecx, dword [ebp - 0x204c]
or ecx, 1
mov dword [ebp - 0x204c], ecx
mov eax, dword [ebp + 8]
jmp 0x40c0dc
lea edx, [ebp - 0x2040]
push edx
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::allocator_unsigned_short_int__const__]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push 0
lea ecx, [ebp - 0x28]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40bfff
mov ecx, dword [ebp - 0x2c]
add ecx, 2
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40bfff
mov edx, dword [ebp - 0x2c]
shr edx, 1
mov eax, dword [ebp - 0x34]
mov word [eax + edx*2], 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
lea eax, [ebp - 0x28]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40bff2
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_const__]
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x30], 0
jne 0x40c043
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov ecx, dword [ebp - 0x204c]
or ecx, 1
mov dword [ebp - 0x204c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov eax, dword [ebp + 8]
jmp 0x40c0dc
lea edx, [ebp - 0x2044]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
mov ecx, dword [ebp - 0x204c]
or ecx, 1
mov dword [ebp - 0x204c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov eax, dword [ebp + 8]
jmp 0x40c0dc
cmp dword [ebp + 0x14], 0
jne 0x40c088
mov dword [ebp + 0x14], 0x411628
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
push eax
push 0x1000
lea ecx, [ebp - 0x2034]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x2038], eax
lea edx, [ebp - 0x2048]
push edx
lea eax, [ebp - 0x2034]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
mov ecx, dword [ebp - 0x204c]
or ecx, 1
mov dword [ebp - 0x204c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10