Function at 0x10005410
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1001a634
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10023050]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov esi, dword [esp + 0x120]
mov byte [esi], 0
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 4]
add esi, 4
push ecx
mov ecx, esi
call fcn.1000c0c0
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x124]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
xor edi, edi
mov dword [esi + 0x1c], edi
mov dword [eax], eax
mov esi, dword [esi + 0x18]
mov dword [esi + 8], esi
call fcn.10005270
cmp eax, edi
je 0x10005515
mov dword [esp + 0x20], edi
lea edx, [esp + 0x20]
push edx
push 1
push edi
push eax
push SysReAllocStringLen
mov dword [esp + 0x12c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10005506
push edi
push edi
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x4c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, edi
jne 0x10005506
cmp dword [esp + 0x18], edi
jbe 0x10005506
mov ecx, dword [esp + 0x28]
inc ecx
push ecx
call fcn.1001905b
mov ebp, eax
add esp, 4
mov dword [esp + 0x54], ebp
mov byte [esp + 0x118], 1
cmp ebp, edi
jne 0x10005533
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x10005515
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8
mov edx, dword [esp + 0x1c]
inc edx
push edx
call fcn.1001905b
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov byte [esp + 0x118], 2
cmp ebx, edi
jne 0x1000555f
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
push ebp
jmp 0x100054fe
xor esi, esi
mov dword [esp + 0x30], esi
cmp dword [esp + 0x18], edi
jbe 0x1000571f
nop
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
inc eax
push eax
push edi
push ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], edi
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x28]
add esp, 0xc
inc edx
push edx
push edi
push ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x40]
push ecx
push edi
lea edx, [esp + 0x44]
push edx
push ebp
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, edi
jne 0x1000570c
mov esi, dword [esp + 0x2c]
inc esi
push esi
call fcn.1001905b
mov edi, eax
add esp, 4
mov dword [esp + 0x4c], edi
mov byte [esp + 0x118], 3
test edi, edi
jne 0x100055ec
push eax
jmp 0x100056fa
push esi
push 0
push edi
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
mov eax, ebx
mov ecx, esi
call fcn.1000cff0
add esp, 4
push edi
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push ebp
lea ecx, [esp + 0x7c]
mov byte [esp + 0x11c], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
mov byte [esp + 0x134], 5
lea eax, [esp + 0x78]
mov esi, esp
mov dword [esp + 0x5c], esp
call fcn.10005250
sub esp, 0x1c
lea eax, [esp + 0xb0]
mov esi, esp
mov byte [esp + 0x150], 6
mov dword [esp + 0x74], esp
call fcn.10005250
lea esi, [esp + 0x110]
mov byte [esp + 0x150], 5
call fcn.1000c7f0
add esp, 0x38
lea ecx, [esp + 0xa0]
push ecx
mov ecx, eax
mov byte [esp + 0x11c], 7
call fcn.1000c790
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x98]
push eax
mov eax, dword [esp + 0x128]
add eax, 4
push eax
mov byte [esp + 0x124], 8
call fcn.1000bdf0
lea ecx, [esp + 0xa0]
push ecx
mov byte [esp + 0x11c], 7
call fcn.10005890
mov edx, esi
push edx
mov byte [esp + 0x11c], 5
call fcn.10005890
lea ecx, [esp + 0x78]
mov byte [esp + 0x118], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x118], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push edi
mov byte [esp + 0x11c], 2
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor edi, edi
mov esi, dword [esp + 0x30]
inc esi
mov dword [esp + 0x30], esi
cmp esi, dword [esp + 0x18]
jb 0x10005570
mov ecx, dword [esp + 0x120]
cmp dword [ecx + 0x20], edi
push ebx
setne al
mov byte [esp + 0x1b], al
mov byte [ecx], al
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
push ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, edi
je 0x10005753
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x17]
jmp 0x10005517