Function at 0x401cd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x403f10
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
mov ebp, dword [esp + 0x14c]
push esi
mov esi, dword [esp + 0x14c]
push edi
push ebp
push esi
call fcn.00401c40
add esp, 8
test eax, eax
jne 0x401dec
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x158]
lea edx, [esp + 0x10]
mov dword [esp + 0x148], 0
mov ecx, dword [eax]
push ecx
push ebp
push 0x407290
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x18]
push str.1040100301
call fcn.00403864
push str.ReadKeyVal
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 1
call fcn.00403864
mov bl, 2
push str.CIVYRegeditBase
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], bl
call fcn.00403864
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x158], 3
call fcn.00401bf0
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4021ab
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0x3e8
push ecx
push 0x20019
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401eed
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x158]
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 4
mov eax, dword [edx]
push eax
push ebp
push 0x407234
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x1c]
push str.1040100302
call fcn.00403864
push str.ReadKeyVal
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 5
call fcn.00403864
mov bl, 6
push str.CIVYRegeditBase
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], bl
call fcn.00403864
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x158], 7
call fcn.00401bf0
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4021ab
mov esi, dword [esp + 0x158]
lea ecx, [esp + 0x24]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
mov eax, dword [esi]
lea edx, [esp + 0x3c]
push 0
push edx
push 0
push eax
mov eax, dword [esp + 0x34]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x401ffd
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esi]
lea eax, [esp + 0x10]
push edx
push ebp
push 0x407200
push eax
mov dword [esp + 0x158], 8
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x1c]
push str.1040100303
call fcn.00403864
push str.ReadKeyVal
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 9
call fcn.00403864
mov bl, 0xa
push str.CIVYRegeditBase
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], bl
call fcn.00403864
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x158], 0xb
call fcn.00401bf0
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4021ab
mov eax, dword [esp + 0x38]
dec eax
je 0x402060
sub eax, 3
jne 0x4020c0
mov edx, dword [esp + 0x15c]
mov eax, dword [edx]
test eax, eax
jne 0x40203c
mov edx, dword [esp + 0x160]
mov eax, dword [esi]
lea ecx, [esp + 0x24]
push ecx
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x34]
push eax
call ebx
mov edi, eax
jmp 0x4020c0
cmp eax, 4
jne 0x4020c0
mov edx, dword [esp + 0x160]
mov eax, dword [esi]
lea ecx, [esp + 0x24]
push ecx
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x34]
push eax
call ebx
mov edi, eax
jmp 0x4020c0
mov eax, dword [esi]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x34]
push eax
call ebx
mov ecx, dword [esp + 0x15c]
mov edi, eax
mov eax, dword [ecx]
cmp eax, 2
jne 0x4020a4
mov eax, dword [esp + 0x160]
lea edx, [esp + 0x3c]
push edx
push 0x407038
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x4020c0
cmp eax, 1
jne 0x4020c0
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.MSVCRT.dll_atof]
mov edx, dword [esp + 0x164]
add esp, 4
fstp qword [edx]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4021a6
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi]
lea edx, [esp + 0x28]
push ecx
push ebp
push 0x4071cc
push edx
mov dword [esp + 0x158], 0xc
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x30]
push str.1040100304
call fcn.00403864
push str.ReadKeyVal
lea ecx, [esp + 0x38]
mov byte [esp + 0x14c], 0xd
call fcn.00403864
mov bl, 0xe
push str.CIVYRegeditBase
lea ecx, [esp + 0x30]
mov byte [esp + 0x14c], bl
call fcn.00403864
lea eax, [esp + 0x30]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
mov byte [esp + 0x158], 0xf
call fcn.00401bf0
add esp, 0x10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x148], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x148], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x148], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x148], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4021ab
mov eax, 1
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret