Function at 0x42f930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d858
mov eax, dword fs:[0]
push eax
sub esp, 0xca4
mov eax, dword [0x4612c0]
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 0x42f9a9
cmp dword [ebp - 0x10], 0
jne 0x42f9b3
mov eax, 0x80004005
jmp 0x42fd55
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x42fb36
mov cl, byte [0x452337]
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 0x42fa2d
jmp 0x42fb31
lea eax, [ebp - 0x424]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
test eax, eax
jne 0x42fa45
jmp 0x42fb31
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.00411450
mov dword [ebp - 0xc98], eax
mov ecx, dword [ebp - 0xc98]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x42fab9
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 0x42fb31
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.0042d100
mov dword [ebp - 0xca0], eax
mov ecx, dword [ebp - 0xca0]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x42fb10
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 0x42fb31
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 0x42fb31
jmp 0x42fd36
mov dword [ebp - 0x44c], 0
jmp 0x42fb51
mov edx, dword [ebp - 0x44c]
add edx, 1
mov dword [ebp - 0x44c], edx
cmp dword [ebp - 0x44c], 0xc8
jae 0x42fd36
mov al, byte [0x452349]
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 [0x45234a]
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 0x42fc06
jmp 0x42fd36
cmp dword [ebp - 0x450], 1
je 0x42fc14
jmp 0x42fb42
lea edx, [ebp - 0x854]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
test eax, eax
jne 0x42fc2c
jmp 0x42fb42
lea eax, [ebp - 0xc54]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
test eax, eax
jne 0x42fc44
jmp 0x42fb42
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.00411360
mov dword [ebp - 0xca8], eax
mov ecx, dword [ebp - 0xca8]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x42fcbb
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 0x42fb42
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.0042d100
mov dword [ebp - 0xcb0], eax
mov ecx, dword [ebp - 0xcb0]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x42fd15
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 0x42fb42
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 0x42fd36
cmp dword [ebp - 0x10], 0
je 0x42fd46
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x42fd50
xor eax, eax
jmp 0x42fd55
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.00449600
mov esp, ebp
pop ebp
ret 4