Function at 0x4305f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fb28
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 0x430669
cmp dword [ebp - 0x10], 0
jne 0x430673
mov eax, 0x80004005
jmp 0x430a15
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x4307f6
mov cl, byte [0x4547a2]
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 0x4306ed
jmp 0x4307f1
lea eax, [ebp - 0x424]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
test eax, eax
jne 0x430705
jmp 0x4307f1
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.004138d0
mov dword [ebp - 0xc98], eax
mov ecx, dword [ebp - 0xc98]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x430779
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 0x4307f1
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.0042de20
mov dword [ebp - 0xca0], eax
mov ecx, dword [ebp - 0xca0]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x4307d0
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 0x4307f1
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 0x4307f1
jmp 0x4309f6
mov dword [ebp - 0x44c], 0
jmp 0x430811
mov edx, dword [ebp - 0x44c]
add edx, 1
mov dword [ebp - 0x44c], edx
cmp dword [ebp - 0x44c], 0xc8
jae 0x4309f6
mov al, byte [0x4547a3]
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 [0x4547bb]
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 0x4308c6
jmp 0x4309f6
cmp dword [ebp - 0x450], 1
je 0x4308d4
jmp 0x430802
lea edx, [ebp - 0x854]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
test eax, eax
jne 0x4308ec
jmp 0x430802
lea eax, [ebp - 0xc54]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
test eax, eax
jne 0x430904
jmp 0x430802
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.004137e0
mov dword [ebp - 0xca8], eax
mov ecx, dword [ebp - 0xca8]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x43097b
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 0x430802
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.0042de20
mov dword [ebp - 0xcb0], eax
mov ecx, dword [ebp - 0xcb0]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jge 0x4309d5
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 0x430802
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 0x4309f6
cmp dword [ebp - 0x10], 0
je 0x430a06
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x430a10
xor eax, eax
jmp 0x430a15
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.0044b84a
mov esp, ebp
pop ebp
ret 4