Function at 0x40d71d
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x4b4]
sub esp, 0x534
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x4b0], eax
mov eax, dword [ebp + 0x4bc]
push ebx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x4c8]
push esi
push edi
mov edi, dword [ebp + 0x4c4]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x4cc]
xor ebx, ebx
push 0x7f
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x431]
push ebx
push eax
mov dword [ebp - 0x6c], edi
mov byte [ebp + 0x430], bl
call fcn.00413c80
push 0x7f
lea eax, [ebp + 0x3b1]
push ebx
push eax
mov byte [ebp + 0x3b0], bl
call fcn.00413c80
push 0x3ff
lea eax, [ebp - 0x4f]
push ebx
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x50], bl
call fcn.00413c80
add esp, 0x24
mov esi, 0x427aa8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
push esi
push dword [ebp - 0x70]
call edi
push esi
push dword [ebp - 0x74]
call edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push 0x2021f
push ebx
push ebx
push ebx
push str.SoftwareJreMetrics
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebx
je 0x40d82e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x50]
push str.GetUpdatedJreMetrics_____RegCreateKeyEx_failed:__l_Error_Code:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, esi
lea eax, [ebp - 0x50]
push eax
call fcn.0040ca21
pop ecx
mov ecx, dword [ebp + 0x4b0]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004141fb
add ebp, 0x4b4
leave
ret
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push str.MachineCount
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 4
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x5c], eax
cmp eax, 2
jne 0x40d8ea
cmp dword [ebp + 0x4c0], ebx
jne 0x40d8c1
push 4
pop eax
push eax
lea ecx, [ebp - 0x78]
push ecx
push eax
push ebx
push str.MachineCount
push dword [ebp - 0x54]
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x58], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jne 0x40d8b0
push str.false
push dword [ebp - 0x6c]
call edi
push str.GetUpdatedJreMetrics_____MachineCount_registry_value_created_n
call fcn.0040ca21
pop ecx
jmp 0x40d935
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x5c]
push str.GetUpdatedJreMetrics_____RegSetValue_for_MachineCount_failed:__l_Error_Code:__d_n
jmp 0x40d923
push 0x428a84
push dword [ebp - 0x6c]
call edi
push dword [ebp + 0x4c0]
lea eax, [ebp - 0x50]
push str.GetUpdatedJreMetrics_____MachineCount_registry_value_does_not_exist_and_will_not_be_created__because_install_was_not_successful._Error:__d_n
push eax
call esi
lea eax, [ebp - 0x50]
push eax
call fcn.0040ca21
add esp, 0x10
jmp 0x40d935
cmp eax, ebx
jne 0x40d914
push str.GetUpdatedJreMetrics_____MachineCount_registry_value_exists_n
call fcn.0040ca21
pop ecx
cmp dword [ebp + 0x4c0], ebx
jne 0x40d908
push str.true
jmp 0x40d90d
push 0x427ab4
push dword [ebp - 0x6c]
call edi
jmp 0x40d935
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x5c]
push str.GetUpdatedJreMetrics_____RegQueryValueEx_for_MachineCount_failed:__l_Error_Code:__d_n
lea eax, [ebp - 0x50]
push eax
call esi
lea eax, [ebp - 0x50]
push eax
call fcn.0040ca21
add esp, 0x14
push 4
pop edi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x64]
push eax
push str.InstallAttempts
push dword [ebp - 0x54]
mov dword [ebp - 0x58], edi
call fcn.0040d170
add esp, 0x10
test eax, eax
jne 0x40d996
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0x3b0]
push eax
push str.NewJreVersion
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0x80
call fcn.0040d170
add esp, 0x10
test eax, eax
jne 0x40d996
push dword [ebp - 0x68]
lea eax, [ebp + 0x3b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40d996
inc dword [ebp - 0x64]
jmp 0x40d99d
mov dword [ebp - 0x64], 1
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x60]
push eax
push str.UpdateCount
push dword [ebp - 0x54]
mov dword [ebp - 0x58], edi
call fcn.0040d170
add esp, 0x10
test eax, eax
je 0x40d9c0
or dword [ebp - 0x60], 0xffffffff
cmp dword [ebp + 0x4c0], ebx
jne 0x40daeb
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0x430]
push eax
mov edi, str.JreVersion
push edi
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0x80
mov dword [ebp - 0x5c], ebx
call fcn.0040d170
add esp, 0x10
test eax, eax
je 0x40d9fd
mov dword [ebp - 0x5c], 1
push dword [ebp - 0x68]
lea eax, [ebp + 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
js 0x40da16
cmp dword [ebp - 0x5c], ebx
je 0x40da95
push dword [ebp - 0x68]
inc dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp - 0x68]
push 1
push ebx
push edi
push dword [ebp - 0x54]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
mov dword [ebp - 0x5c], eax
cmp eax, ebx
je 0x40da5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x5c]
lea eax, [ebp - 0x50]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_JreVersion:__l_Error_Code:__d_n
push eax
call esi
lea eax, [ebp - 0x50]
push eax
call fcn.0040ca21
add esp, 0x14
push 4
lea eax, [ebp - 0x60]
push eax
push 4
push ebx
push str.UpdateCount
push dword [ebp - 0x54]
call edi
mov edi, eax
cmp edi, ebx
je 0x40da95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x50]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_UpdateCount:__l_Error_Code:__d_n
push eax
call esi
lea eax, [ebp - 0x50]
push eax
call fcn.0040ca21
add esp, 0x14
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.InstallAttempts
push dword [ebp - 0x54]
call edi
push str.NewJreVersion
push dword [ebp - 0x54]
call edi
cmp dword [ebp - 0x60], 0xffffffff
jne 0x40dab8
mov dword [ebp - 0x60], ebx
push dword [ebp - 0x60]
mov edi, 0x428264
push edi
push dword [ebp - 0x70]
call esi
push dword [ebp - 0x64]
push edi
push dword [ebp - 0x74]
call esi
push dword [ebp - 0x70]
lea eax, [ebp - 0x50]
push dword [ebp - 0x74]
push dword [ebp - 0x6c]
push str.GetUpdatedJreMetrics_____MachineCounted:__s__InstallAttempts:__s__UpdateCount:__s_n
push eax
call esi
add esp, 0x2c
jmp 0x40d80a
cmp dword [ebp + 0x4c0], 0xffffff80
je 0x40da95
push edi
lea eax, [ebp - 0x64]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
push str.InstallAttempts
push dword [ebp - 0x54]
call edi
mov dword [ebp - 0x5c], eax
cmp eax, ebx
je 0x40db33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x5c]
lea eax, [ebp - 0x50]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_InstallAttempts:__l_Error_Code:__d_n
push eax
call esi
lea eax, [ebp - 0x50]
push eax
call fcn.0040ca21
add esp, 0x14
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp - 0x68]
push 1
push ebx
push str.NewJreVersion
push dword [ebp - 0x54]
call edi
mov edi, eax
cmp edi, ebx
je 0x40daaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x50]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_NewJreVersion:__l_Error_Code:__d_n
push eax
call esi
lea eax, [ebp - 0x50]
push eax
call fcn.0040ca21
add esp, 0x14
jmp 0x40daaf