Function at 0x4019b0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x406f24
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x40d02c]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
push edi
mov eax, dword [0x40d02c]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], edi
call dword [sym.imp.NCRRetailFoundation.dll_public:_void___thiscall_NCRRetailCommon::NCRString::constructor_void_]
push str.jre.dll
lea ecx, [esp + 0x40]
mov dword [esp + 0x17c], edi
call dword [sym.imp.NCRRetailFoundation.dll_public:_void___thiscall_NCRRetailCommon::NCRString::constructor_char_const__]
mov byte [esp + 0x178], 1
mov ebx, dword [sym.imp.NCRRetailFoundation.dll_public:_char_const____thiscall_NCRRetailCommon::NCRString::operator_char_const__void_const]
lea ecx, [esi + 4]
call ebx
push eax
lea eax, [esp + 0x2c]
push str.CLASSPATH_from_config_file_is__s
push eax
call dword [sym.imp.NCRRetailFoundation.dll_public:_void___cdecl_NCRRetailCommon::NCRString::Format_char_const__]
add esp, 0xc
lea ecx, [esp + 0x28]
call ebx
mov ecx, dword [esi + 0x30]
mov ebx, dword [sym.imp.NCRRetailFoundation.dll_public:_void___cdecl_NCRRetailCommon::NCRSystemTrace::Trace_unsigned_int__unsigned_int__char_const___char_const___char_const__]
push eax
push 0x409dc6
push 0x408ec8
push 0x200
push 0xffffffffffffffff
push ecx
call ebx
add esp, 0x18
push edi
push edi
push str._CLASSPATH_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edi, eax
push edi
call fcn.00406462
add esp, 4
mov dword [esp + 0x18], eax
test edi, edi
jne 0x401aaa
mov eax, dword [esi + 0x30]
push str.Unable_to_read_CLASSPATH_environment_variable
push 0x409dc6
push 0x408ec8
push 0x200
push 0xffffffffffffffff
push eax
call ebx
mov edi, dword [sym.imp.NCRRetailFoundation.dll_public:_char_const____thiscall_NCRRetailCommon::NCRString::operator_char_const__void_const]
jmp 0x401b1b
test eax, eax
jne 0x401ad2
mov eax, dword [esi + 0x30]
push str.Unable_to_allocate_a_buffer_to_hold_the_CLASSPATH
push 0x409dc6
push 0x408ec8
push 0x200
push 0xffffffffffffffff
push eax
call ebx
mov edi, dword [sym.imp.NCRRetailFoundation.dll_public:_char_const____thiscall_NCRRetailCommon::NCRString::operator_char_const__void_const]
jmp 0x401b1b
push edi
push eax
push str._CLASSPATH_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push str.CLASSPATH_environment_variable_is__s
push edx
call dword [sym.imp.NCRRetailFoundation.dll_public:_void___cdecl_NCRRetailCommon::NCRString::Format_char_const__]
mov edi, dword [sym.imp.NCRRetailFoundation.dll_public:_char_const____thiscall_NCRRetailCommon::NCRString::operator_char_const__void_const]
add esp, 0xc
lea ecx, [esp + 0x28]
call edi
mov ecx, dword [esi + 0x30]
push eax
push 0x409dc6
push 0x408ec8
push 0x200
push 0xffffffffffffffff
push ecx
call ebx
add esp, 0x18
push 0x408610
lea ecx, [esi + 4]
call dword [0x4081f0]
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esi + 4]
call dword [0x4081f0]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401b4b
push eax
call fcn.00406842
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
push str.SoftwareJavaSoftJava_Runtime_Environment
push 0x80000002
mov byte [esp + 0x2b], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401b99
lea edx, [esp + 0x1c]
push edx
push 0x20019
push 0
push str.SoftwareJavaSoftJava_Development_Kit
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [esp + 0x17], 1
cmp dword [esp + 0x1c], 0
je 0x401d2e
lea ecx, [esp + 0x4c]
call dword [sym.imp.NCRRetailFoundation.dll_public:_void___thiscall_NCRRetailCommon::NCRString::constructor_void_]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
mov byte [esp + 0x188], 2
mov eax, dword [esp + 0x2c]
push str.CurrentVersion
push eax
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401cd4
cmp dword [esp + 0x24], 1
jne 0x401cd4
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x68]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401cc3
mov dword [esp + 0x18], 0x104
cmp byte [esp + 0x17], al
je 0x401c6f
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push str.JavaHome
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401c5e
cmp dword [esp + 0x24], 1
jne 0x401c5e
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x40]
call dword [sym.imp.NCRRetailFoundation.dll_public:_class_NCRRetailCommon::NCRString____thiscall_NCRRetailCommon::NCRString::operator_char_const__]
push str.jre_binclientjvm.dll
lea ecx, [esp + 0x40]
call dword [0x4081f0]
jmp 0x401ca0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x60]
push ecx
push 0
push 0
push str.RuntimeLib
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401ca0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.NCRRetailFoundation.dll_public:_class_NCRRetailCommon::NCRString____thiscall_NCRRetailCommon::NCRString::operator_char_const__]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x3c]
push edx
lea ecx, [esi + 0x34]
call dword [sym.imp.NCRRetailFoundation.dll_public:_class_NCRRetailCommon::NCRString____thiscall_NCRRetailCommon::NCRString::operator_class_NCRRetailCommon::NCRString_const__]
mov dword [esp + 0x38], 1
jmp 0x401d0d
lea eax, [esp + 0x5c]
push eax
push str.NCRJavaLoaderOSSpecific_could_not_open_JRE_Version_key__s
lea ecx, [esp + 0x30]
push ecx
jmp 0x401ce3
push str.CurrentVersion
push str.NCRJavaLoaderOSSpecific_could_not_open_JRE_Version_key__s
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.NCRRetailFoundation.dll_public:_void___cdecl_NCRRetailCommon::NCRString::Format_char_const__]
add esp, 0xc
lea ecx, [esp + 0x28]
call edi
mov esi, dword [esi + 0x30]
push eax
push 0x409dc6
push 0x408ec8
push 0x200
push 0xffffffffffffffff
push esi
call ebx
add esp, 0x18
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x178], 1
mov esi, dword [sym.imp.NCRRetailFoundation.dll_public_virtual:_void___thiscall_NCRRetailCommon::NCRString::destructor_void_]
lea ecx, [esp + 0x4c]
call esi
jmp 0x401d72
push str.SoftwareJavaSoftJava_Development_Kit
push str.SoftwareJavaSoftJava_Runtime_Environment
lea ecx, [esp + 0x30]
push str.NCRJavaLoaderOSSpecific_could_not_open__s_or__s
push ecx
call dword [sym.imp.NCRRetailFoundation.dll_public:_void___cdecl_NCRRetailCommon::NCRString::Format_char_const__]
add esp, 0x10
lea ecx, [esp + 0x28]
call edi
mov esi, dword [esi + 0x30]
push eax
push 0x409dc6
push 0x408ec8
push 0x200
push 0xffffffffffffffff
push esi
call ebx
mov esi, dword [sym.imp.NCRRetailFoundation.dll_public_virtual:_void___thiscall_NCRRetailCommon::NCRString::destructor_void_]
add esp, 0x18
lea ecx, [esp + 0x3c]
mov byte [esp + 0x178], 0
call esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x178], 0xffffffff
call esi
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.00406719
mov esp, ebp
pop ebp
ret 4