Function at 0x42b080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49aa45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c0
mov eax, dword [0x4bc410]
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 + 0x4c0], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], ecx
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
call dword [0x49f754]
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x4d4], ebx
call dword [0x49f754]
mov dword [esp + 0x28], ebx
push esi
lea eax, [esp + 0x10]
push str.Software_sUserProfile
push eax
mov byte [esp + 0x4e0], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0xc]
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.libdb43.dll_Ordinal_1
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x42b397
mov esi, dword [esp + 0x14]
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_3]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
lea ecx, [esp + 0x30]
call fcn.0048cb40
lea ecx, [esp + 0x90]
mov byte [esp + 0x4d4], 3
call fcn.0047cd00
mov bl, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x4d4], bl
call fcn.0048c8e0
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x38]
call fcn.0048c960
lea ecx, [esp + 0x30]
call fcn.0048c980
lea edx, [esp + 0xac]
push edx
lea ecx, [esp + 0x34]
call fcn.0048c920
push 0
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0048c9e0
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x4d8], 5
call dword [0x49f214]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4d4], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0xc0]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0x400
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42b367
cmp dword [esp + 0x1c], 3
jne 0x42b367
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x42b367
lea ecx, [esp + 0x90]
call fcn.0047cf30
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x98]
call fcn.0047cff0
mov edi, dword [sym.imp.MSVCR71.dll_strtok]
lea edx, [esp + 0xc0]
push 0x4a2338
push edx
call edi
add esp, 8
xor esi, esi
test eax, eax
je 0x42b337
mov ebx, dword [sym.imp.MSVCR71.dll_atoi]
mov ecx, esi
sub ecx, 2
je 0x42b2c2
dec ecx
je 0x42b2b7
dec ecx
jne 0x42b2d2
push eax
call ebx
mov ecx, dword [esp + 0x24]
jmp 0x42b2cd
push eax
call ebx
mov edx, dword [esp + 0x30]
mov dword [edx], eax
jmp 0x42b2cf
push eax
call dword [sym.imp.MSVCR71.dll_atol]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
add esp, 4
push 0x4a2338
push 0
call edi
add esp, 8
inc esi
test eax, eax
jne 0x42b2a1
cmp esi, 6
jl 0x42b337
lea ecx, [esp + 0x90]
mov byte [esp + 0x4d4], 3
call fcn.0047cd10
lea ecx, [esp + 0x30]
mov byte [esp + 0x4d4], 2
call fcn.00406f90
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42b31c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
jmp 0x42b3ad
lea ecx, [esp + 0x90]
mov byte [esp + 0x4d4], 3
call fcn.0047cd10
lea ecx, [esp + 0x30]
mov byte [esp + 0x4d4], 2
call fcn.00406f90
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42b397
push eax
jmp 0x42b391
lea ecx, [esp + 0x90]
mov byte [esp + 0x4d4], 3
call fcn.0047cd10
lea ecx, [esp + 0x30]
mov byte [esp + 0x4d4], 2
call fcn.00406f90
test esi, esi
je 0x42b397
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
mov ecx, dword [esp + 0x4cc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4c4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496ace
mov esp, ebp
pop ebp
ret