Function at 0x410ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42d1e3
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x43d2ac]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43d2ac]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xf4]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [0x43e04c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e04c
mov dword [esp + 0x1c], ebp
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
sub esp, 0x1c
mov dword [esp + 0x108], ebx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Usage
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], 0x80
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x3c]
push eax
call fcn.004108c0
add esp, 0x20
cmp al, bl
jne 0x410bb5
push 0x432d6e
xor edi, edi
lea eax, [esp + 0x18]
call fcn.004112e0
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0xec], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410bae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
jmp 0x410d24
mov ebp, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x64]
push edx
push ebx
push ebx
push str.GUID
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x410c75
lea eax, [esp + 0x60]
push eax
push 0x4335a8
lea edi, [esp + 0x1c]
call fcn.00411420
add esp, 8
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x14]
cmp dword [esi - 4], 1
jle 0x410c10
mov ecx, dword [esi - 0xc]
push ecx
mov edx, edi
push edx
call fcn.00411180
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp esi, ebx
mov byte [esp + 0xec], 1
jne 0x410c2b
xor eax, eax
jmp 0x410c3d
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x410c30
sub eax, edx
js 0x410c6b
cmp eax, dword [esi - 8]
jg 0x410c6b
mov dword [esi - 0xc], eax
mov byte [eax + esi], bl
lea esi, [esp + 0x14]
call fcn.00411120
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x44]
jmp 0x410cea
push 0x80070057
call fcn.00405520
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi - 4], 1
jle 0x410c94
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00411180
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp esi, ebx
mov byte [esp + 0xec], 3
jne 0x410caf
xor eax, eax
jmp 0x410cc1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x410cb4
sub eax, edx
js 0x410c6b
cmp eax, dword [esi - 8]
jg 0x410c6b
mov dword [esi - 0xc], eax
mov byte [eax + esi], bl
lea esi, [esp + 0x14]
call fcn.00411120
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x28]
mov byte [esp + 0xec], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esp + 0xec], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410d22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.00418c9a
add esp, 0xdc
ret