Function at 0x430460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a5f45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x498
mov eax, dword [0x4cbba0]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
xor eax, ebp
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x498], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], ecx
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x4ac], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x30], ebx
push esi
lea eax, [esp + 0x14]
push str.Software_sUserProfile
push eax
mov byte [esp + 0x4b8], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push ebx
push eax
push reloc.WS2_32.dll_accept
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x43076f
mov esi, dword [esp + 0x14]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
lea ecx, [esp + 0x50]
call fcn.00497f50
lea ecx, [esp + 0x68]
mov byte [esp + 0x4ac], 3
call fcn.00487c70
mov bl, 4
lea ecx, [esp + 0x50]
mov byte [esp + 0x4ac], bl
call fcn.00497b90
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
push 0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
push eax
lea ecx, [esp + 0x58]
call fcn.00497bf0
lea ecx, [esp + 0x50]
call fcn.00497c10
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x54]
call fcn.00497bc0
push 0
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.00497c70
add esp, 0xc
mov ecx, eax
mov byte [esp + 0x4ac], 5
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x34]
mov byte [esp + 0x4ac], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x430742
cmp dword [esp + 0x2c], 3
jne 0x430742
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x430742
lea ecx, [esp + 0x68]
call fcn.00487ea0
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x70]
call fcn.00487f40
mov edi, dword [sym.imp.MSVCR71.dll_strtok]
lea edx, [esp + 0x98]
push 0x4aec44
push edx
call edi
add esp, 8
xor esi, esi
test eax, eax
je 0x430715
mov ebx, dword [sym.imp.MSVCR71.dll_atoi]
mov ecx, esi
sub ecx, 2
je 0x4306a3
dec ecx
je 0x430698
dec ecx
jne 0x4306b3
push eax
call ebx
mov ecx, dword [esp + 0x24]
jmp 0x4306ae
push eax
call ebx
mov edx, dword [esp + 0x2c]
mov dword [edx], eax
jmp 0x4306b0
push eax
call dword [sym.imp.MSVCR71.dll_atol]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
add esp, 4
push 0x4aec44
push 0
call edi
add esp, 8
inc esi
test eax, eax
jne 0x430682
cmp esi, 6
jl 0x430715
lea ecx, [esp + 0x68]
mov byte [esp + 0x4ac], 3
call fcn.00487c80
lea ecx, [esp + 0x50]
mov byte [esp + 0x4ac], 2
call fcn.00497b80
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4306fa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
jmp 0x430785
lea ecx, [esp + 0x68]
mov byte [esp + 0x4ac], 3
call fcn.00487c80
lea ecx, [esp + 0x50]
mov byte [esp + 0x4ac], 2
call fcn.00497b80
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43076f
push eax
jmp 0x430769
lea ecx, [esp + 0x68]
mov byte [esp + 0x4ac], 3
call fcn.00487c80
lea ecx, [esp + 0x50]
mov byte [esp + 0x4ac], 2
call fcn.00497b80
test esi, esi
je 0x43076f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
mov ecx, dword [esp + 0x4a4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x49c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a17d1
mov esp, ebp
pop ebp
ret