Function at 0x419589
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
push ebx
push esi
push edi
xor ebx, ebx
push 0x7f
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call fcn.0041b5c0
push 0x7f
lea eax, [ebp - 0x97]
push ebx
push eax
mov byte [ebp - 0x98], bl
call fcn.0041b5c0
push 0x3ff
lea eax, [ebp - 0x517]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0x518], bl
call fcn.0041b5c0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x24
push 0x43a058
push dword [ebp + 0x10]
call esi
push 0x43a05c
push dword [ebp + 0x14]
call esi
push 0x43a060
push dword [ebp + 0x18]
call esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareJreMetrics
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, ebx
je 0x419666
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x518]
push str.GetUpdatedJreMetrics_____RegCreateKeyEx_failed:__l_Error_Code:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, edi
lea eax, [ebp - 0x518]
push eax
call fcn.00417d91
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
cmp dword [ebp - 0x18], 1
jne 0x419682
push str.GetUpdatedJreMetrics_____JreMetrics_registry_key_created_n
call fcn.00417d91
mov dword [esp], 0x43a0f8
push dword [ebp + 0x10]
call esi
push 4
pop edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x43a0fc
push dword [ebp - 4]
mov dword [ebp - 8], edi
call fcn.00418727
add esp, 0x10
test eax, eax
jne 0x4196e3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x43a10c
push dword [ebp - 4]
mov dword [ebp - 8], 0x80
call fcn.00418727
add esp, 0x10
test eax, eax
jne 0x4196e3
push dword [ebp + 8]
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4196e3
inc dword [ebp - 0x10]
jmp 0x4196ea
mov dword [ebp - 0x10], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x43a11c
push dword [ebp - 4]
mov dword [ebp - 8], edi
call fcn.00418727
add esp, 0x10
test eax, eax
je 0x41970d
or dword [ebp - 0xc], 0xffffffff
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
cmp dword [ebp + 0xc], ebx
jne 0x41984c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x118]
push eax
push 0x43a128
push dword [ebp - 4]
mov dword [ebp - 8], 0x80
xor edi, edi
call fcn.00418727
add esp, 0x10
test eax, eax
je 0x419745
inc edi
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
js 0x419761
cmp edi, ebx
je 0x4197f0
push dword [ebp + 8]
inc dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push dword [ebp + 8]
push 1
push ebx
push str.JreVersion
push dword [ebp - 4]
call edi
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4197b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x518]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_JreVersion:__l_Error_Code:__d_n
push eax
call esi
lea eax, [ebp - 0x518]
push eax
call fcn.00417d91
add esp, 0x14
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push ebx
push str.UpdateCount
push dword [ebp - 4]
call edi
mov edi, eax
cmp edi, ebx
je 0x4197f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x518]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_UpdateCount:__l_Error_Code:__d_n
push eax
call esi
lea eax, [ebp - 0x518]
push eax
call fcn.00417d91
add esp, 0x14
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.InstallAttempts
push dword [ebp - 4]
call edi
push 0x43a270
push dword [ebp - 4]
call edi
cmp dword [ebp - 0xc], 0xffffffff
jne 0x419813
mov dword [ebp - 0xc], ebx
push dword [ebp - 0xc]
push 0x43a204
push dword [ebp + 0x14]
call esi
push dword [ebp - 0x10]
push 0x43a2e4
push dword [ebp + 0x18]
call esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x518]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push str.GetUpdatedJreMetrics_____MachineCounted:__s__InstallAttempts:__s__UpdateCount:__s_n
push eax
call esi
add esp, 0x2c
jmp 0x419652
cmp dword [ebp + 0xc], 0xffffff80
je 0x4197f0
push edi
lea eax, [ebp - 0x10]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
push 0x43a1f4
push dword [ebp - 4]
call edi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x41989d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x518]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_InstallAttempts:__l_Error_Code:__d_n
push eax
call esi
lea eax, [ebp - 0x518]
push eax
call fcn.00417d91
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
push 1
push ebx
push str.NewJreVersion
push dword [ebp - 4]
call edi
mov edi, eax
cmp edi, ebx
je 0x41980a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x518]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_NewJreVersion:__l_Error_Code:__d_n
push eax
call esi
lea eax, [ebp - 0x518]
push eax
call fcn.00417d91
add esp, 0x14
jmp 0x41980a