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

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x520
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x1f
pop ecx
mov byte [ebp - 0xbc], bl
lea edi, [ebp - 0xbb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1f
xor eax, eax
pop ecx
mov byte [ebp - 0x3c], bl
lea edi, [ebp - 0x3b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x4bc], bl
xor eax, eax
mov ecx, 0xff
lea edi, [ebp - 0x4bb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x41f73c
push esi
push dword [ebp + 0x74]
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x5c], ebx
call edi
push esi
push dword [ebp + 0x78]
call edi
push esi
push dword [ebp + 0x7c]
call edi
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x60]
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 0x40be53
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x4bc]
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
jmp 0x40c118
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x44]
push eax
push ebx
push str.MachineCount
push dword [ebp + 0x60]
mov dword [ebp + 0x5c], 4
mov dword [ebp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp + 0x58], eax
jne 0x40bf0f
cmp dword [ebp + 0x70], ebx
jne 0x40bee3
push 4
pop eax
push eax
lea ecx, [ebp + 0x4c]
push ecx
push eax
push ebx
push str.MachineCount
push dword [ebp + 0x60]
mov dword [ebp + 0x4c], 1
mov dword [ebp + 0x5c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
mov dword [ebp + 0x58], eax
jne 0x40bed2
push str.false
push dword [ebp + 0x74]
call edi
push str.GetUpdatedJreMetrics_____MachineCount_registry_value_created_n
call fcn.0040b31c
pop ecx
jmp 0x40bf5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x58]
push str.GetUpdatedJreMetrics_____RegSetValue_for_MachineCount_failed:__l_Error_Code:__d_n
jmp 0x40bf45
push 0x4206d4
push dword [ebp + 0x74]
call edi
push dword [ebp + 0x70]
lea eax, [ebp - 0x4bc]
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 - 0x4bc]
push eax
call fcn.0040b31c
add esp, 0x10
jmp 0x40bf5d
cmp eax, ebx
jne 0x40bf36
push str.GetUpdatedJreMetrics_____MachineCount_registry_value_exists_n
call fcn.0040b31c
cmp dword [ebp + 0x70], ebx
pop ecx
jne 0x40bf2f
push str.true
push dword [ebp + 0x74]
call edi
jmp 0x40bf5d
push 0x41f748
jmp 0x40bf28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x58]
push str.GetUpdatedJreMetrics_____RegQueryValueEx_for_MachineCount_failed:__l_Error_Code:__d_n
lea eax, [ebp - 0x4bc]
push eax
call esi
lea eax, [ebp - 0x4bc]
push eax
call fcn.0040b31c
add esp, 0x14
push 4
pop edi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x50]
push eax
push str.InstallAttempts
push dword [ebp + 0x60]
mov dword [ebp + 0x5c], edi
call fcn.0040b8b2
add esp, 0x10
test eax, eax
jne 0x40bfb8
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x3c]
push eax
push str.NewJreVersion
push dword [ebp + 0x60]
mov dword [ebp + 0x5c], 0x80
call fcn.0040b8b2
add esp, 0x10
test eax, eax
jne 0x40bfb8
push dword [ebp + 0x6c]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40bfb8
inc dword [ebp + 0x50]
jmp 0x40bfbf
mov dword [ebp + 0x50], 1
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x54]
push eax
push str.UpdateCount
push dword [ebp + 0x60]
mov dword [ebp + 0x5c], edi
call fcn.0040b8b2
add esp, 0x10
test eax, eax
je 0x40bfe2
or dword [ebp + 0x54], 0xffffffff
cmp dword [ebp + 0x70], ebx
jne 0x40c12f
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0xbc]
push eax
mov edi, str.JreVersion
push edi
push dword [ebp + 0x60]
mov dword [ebp + 0x5c], 0x80
mov dword [ebp + 0x58], ebx
call fcn.0040b8b2
add esp, 0x10
test eax, eax
je 0x40c01c
mov dword [ebp + 0x58], 1
push dword [ebp + 0x6c]
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jl 0x40c039
cmp dword [ebp + 0x58], ebx
je 0x40c0c4
push dword [ebp + 0x6c]
inc dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x6c]
push 1
push ebx
push edi
push dword [ebp + 0x60]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
cmp eax, ebx
mov dword [ebp + 0x58], eax
je 0x40c086
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x58]
lea eax, [ebp - 0x4bc]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_JreVersion:__l_Error_Code:__d_n
push eax
call esi
lea eax, [ebp - 0x4bc]
push eax
call fcn.0040b31c
add esp, 0x14
push 4
lea eax, [ebp + 0x54]
push eax
push 4
push ebx
push str.UpdateCount
push dword [ebp + 0x60]
call edi
mov edi, eax
cmp edi, ebx
je 0x40c0c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x4bc]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_UpdateCount:__l_Error_Code:__d_n
push eax
call esi
lea eax, [ebp - 0x4bc]
push eax
call fcn.0040b31c
add esp, 0x14
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.InstallAttempts
push dword [ebp + 0x60]
call edi
push str.NewJreVersion
push dword [ebp + 0x60]
call edi
cmp dword [ebp + 0x54], 0xffffffff
jne 0x40c0e7
mov dword [ebp + 0x54], ebx
push dword [ebp + 0x54]
mov edi, 0x41fe84
push edi
push dword [ebp + 0x78]
call esi
push dword [ebp + 0x50]
push edi
push dword [ebp + 0x7c]
call esi
push dword [ebp + 0x78]
lea eax, [ebp - 0x4bc]
push dword [ebp + 0x7c]
push dword [ebp + 0x74]
push str.GetUpdatedJreMetrics_____MachineCounted:__s__InstallAttempts:__s__UpdateCount:__s_n
push eax
call esi
add esp, 0x2c
lea eax, [ebp - 0x4bc]
push eax
call fcn.0040b31c
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x64
leave
ret
cmp dword [ebp + 0x70], 0xffffff80
je 0x40c0c4
push edi
lea eax, [ebp + 0x50]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
push str.InstallAttempts
push dword [ebp + 0x60]
call edi
cmp eax, ebx
mov dword [ebp + 0x58], eax
je 0x40c17a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x58]
lea eax, [ebp - 0x4bc]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_InstallAttempts:__l_Error_Code:__d_n
push eax
call esi
lea eax, [ebp - 0x4bc]
push eax
call fcn.0040b31c
add esp, 0x14
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x6c]
push 1
push ebx
push str.NewJreVersion
push dword [ebp + 0x60]
call edi
mov edi, eax
cmp edi, ebx
je 0x40c0de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x4bc]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_NewJreVersion:__l_Error_Code:__d_n
push eax
call esi
lea eax, [ebp - 0x4bc]
push eax
call fcn.0040b31c
add esp, 0x14
jmp 0x40c0de