Function at 0x42fb80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e848
mov eax, dword fs:[0]
push eax
sub esp, 0xca4
mov eax, dword [0x4622c0]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc90], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x80004005
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 8]
add ecx, 4
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42fbf9
cmp dword [ebp - 0x10], 0
jne 0x42fc03
mov eax, 0x80004005
jmp 0x42ffa5
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x42fd86
mov cl, byte [0x4537db]
mov byte [ebp - 0x424], cl
push 0x3ff
push 0
lea edx, [ebp - 0x423]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x428], 0x400
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x424]
push ecx
push 0
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x20
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42fc7d
jmp 0x42fd81
lea eax, [ebp - 0x424]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
test eax, eax
jne 0x42fc95
jmp 0x42fd81
lea ecx, [ebp - 0x448]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x448]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xc80], esp
lea eax, [ebp - 0x424]
push eax
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__]
mov dword [ebp - 0xc94], eax
mov ecx, dword [ebp - 0xc90]
call fcn.00413530
mov dword [ebp - 0xc98], eax
mov ecx, dword [ebp - 0xc98]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x42fd09
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x448]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x42fd81
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xc84], esp
lea edx, [ebp - 0x424]
push edx
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__]
mov dword [ebp - 0xc9c], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc90]
call fcn.0042d320
mov dword [ebp - 0xca0], eax
mov ecx, dword [ebp - 0xca0]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x42fd60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x448]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x42fd81
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x448]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x42fd81
jmp 0x42ff86
mov dword [ebp - 0x44c], 0
jmp 0x42fda1
mov edx, dword [ebp - 0x44c]
add edx, 1
mov dword [ebp - 0x44c], edx
cmp dword [ebp - 0x44c], 0xc8
jae 0x42ff86
mov al, byte [0x4537f6]
mov byte [ebp - 0x854], al
push 0x3ff
push 0
lea ecx, [ebp - 0x853]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dl, byte [0x4537f7]
mov byte [ebp - 0xc54], dl
push 0x3ff
push 0
lea eax, [ebp - 0xc53]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0xc5c], 0x400
mov dword [ebp - 0xc58], 0x400
mov dword [ebp - 0x450], 0
lea ecx, [ebp - 0xc58]
push ecx
lea edx, [ebp - 0xc54]
push edx
lea eax, [ebp - 0x450]
push eax
push 0
lea ecx, [ebp - 0xc5c]
push ecx
lea edx, [ebp - 0x854]
push edx
mov eax, dword [ebp - 0x44c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42fe56
jmp 0x42ff86
cmp dword [ebp - 0x450], 1
je 0x42fe64
jmp 0x42fd92
lea edx, [ebp - 0x854]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
test eax, eax
jne 0x42fe7c
jmp 0x42fd92
lea eax, [ebp - 0xc54]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
test eax, eax
jne 0x42fe94
jmp 0x42fd92
lea ecx, [ebp - 0xc7c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xc60]
push ecx
lea edx, [ebp - 0xc7c]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xc88], esp
lea eax, [ebp - 0x854]
push eax
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__]
mov dword [ebp - 0xca4], eax
mov ecx, dword [ebp - 0xc90]
call fcn.00413440
mov dword [ebp - 0xca8], eax
mov ecx, dword [ebp - 0xca8]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x42ff0b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc7c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x42fd92
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xc8c], esp
lea edx, [ebp - 0xc54]
push edx
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__]
mov dword [ebp - 0xcac], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc90]
call fcn.0042d320
mov dword [ebp - 0xcb0], eax
mov ecx, dword [ebp - 0xcb0]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x42ff65
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc7c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x42fd92
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc7c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x42ff86
cmp dword [ebp - 0x10], 0
je 0x42ff96
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x42ffa0
xor eax, eax
jmp 0x42ffa5
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0044a380
mov esp, ebp
pop ebp
ret 4