Function at 0x431900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f7f8
mov eax, dword fs:[0]
push eax
sub esp, 0xca4
mov eax, dword [0x4632c0]
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 0x431979
cmp dword [ebp - 0x10], 0
jne 0x431983
mov eax, 0x80004005
jmp 0x431d25
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x431b06
mov cl, byte [0x45479f]
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 0x4319fd
jmp 0x431b01
lea eax, [ebp - 0x424]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
test eax, eax
jne 0x431a15
jmp 0x431b01
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.004119e0
mov dword [ebp - 0xc98], eax
mov ecx, dword [ebp - 0xc98]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x431a89
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 0x431b01
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.0042f140
mov dword [ebp - 0xca0], eax
mov ecx, dword [ebp - 0xca0]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x431ae0
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 0x431b01
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 0x431b01
jmp 0x431d06
mov dword [ebp - 0x44c], 0
jmp 0x431b21
mov edx, dword [ebp - 0x44c]
add edx, 1
mov dword [ebp - 0x44c], edx
cmp dword [ebp - 0x44c], 0xc8
jae 0x431d06
mov al, byte [0x4547bb]
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 [0x4547d5]
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 0x431bd6
jmp 0x431d06
cmp dword [ebp - 0x450], 1
je 0x431be4
jmp 0x431b12
lea edx, [ebp - 0x854]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
test eax, eax
jne 0x431bfc
jmp 0x431b12
lea eax, [ebp - 0xc54]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
test eax, eax
jne 0x431c14
jmp 0x431b12
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.004118f0
mov dword [ebp - 0xca8], eax
mov ecx, dword [ebp - 0xca8]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x431c8b
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 0x431b12
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.0042f140
mov dword [ebp - 0xcb0], eax
mov ecx, dword [ebp - 0xcb0]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x431ce5
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 0x431b12
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 0x431d06
cmp dword [ebp - 0x10], 0
je 0x431d16
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x431d20
xor eax, eax
jmp 0x431d25
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.0044b4f4
mov esp, ebp
pop ebp
ret 4