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

Disassembly:
sub esp, 0xa2c
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0xa28], eax
mov eax, dword [esp + 0xa30]
push ebx
mov ebx, dword [esp + 0xa40]
push ebp
mov ebp, dword [esp + 0xa40]
push esi
mov esi, dword [esp + 0xa4c]
push 0x100
mov dword [esp + 0x20], eax
lea eax, [esp + 0x138]
push 0
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], esi
call sub.VCRUNTIME140.dll_memset
push 0x100
lea eax, [esp + 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x800
lea eax, [esp + 0x250]
mov dword [esp + 0x40], 0
push 0
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x1004888c]
add esp, 0x24
mov dword [ebp], eax
movzx eax, word [0x10048890]
mov word [ebp + 4], ax
mov eax, dword [0x1004888c]
mov dword [ebx], eax
movzx eax, word [0x10048890]
mov word [ebx + 4], ax
mov eax, dword [0x1004888c]
mov dword [esi], eax
movzx eax, word [0x10048890]
mov word [esi + 4], ax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x2021f
push 0
push 0
push 0
push str.SoftwareJreMetrics
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
je 0x1002fcf4
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
lea eax, [esp + 0x23c]
push 0x10048f00
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x244]
push eax
call fcn.10033920
add esp, 0x14
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa28]
xor ecx, esp
call fcn.1003b4ee
add esp, 0xa2c
ret
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x30], 0
push eax
lea eax, [esp + 0x34]
push eax
push 0
push str.MachineCount
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
cmp esi, 2
jne 0x1002fd8f
push 4
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 1
push eax
push 4
push 0
push str.MachineCount
push dword [esp + 0x24]
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x1002fd84
movq xmm0, qword [str.false]
movq qword [ebp], xmm0
mov eax, dword [0x10041e34]
mov dword [ebp + 8], eax
mov eax, str.GetUpdatedJreMetrics_____MachineCount_registry_value_created_n
jmp 0x1002fdce
call ebx
push eax
push esi
push str.GetUpdatedJreMetrics_____RegSetValue_for_MachineCount_failed:__l_Error_Code:__d_n
jmp 0x1002fdba
test esi, esi
jne 0x1002fdb1
movq xmm0, qword [str.true]
movq qword [ebp], xmm0
mov ax, word [0x10041d48]
mov word [ebp + 8], ax
mov eax, str.GetUpdatedJreMetrics_____MachineCount_registry_value_exists_n
jmp 0x1002fdce
call ebx
push eax
push esi
push str.GetUpdatedJreMetrics_____RegQueryValueEx_for_MachineCount_failed:__l_Error_Code:__d_n
lea eax, [esp + 0x244]
push eax
call edi
lea eax, [esp + 0x248]
add esp, 0x10
push eax
call fcn.10033920
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 4
push eax
lea eax, [esp + 0x24]
push eax
push str.InstallAttempts
push dword [esp + 0x20]
call fcn.1002f280
add esp, 0x14
test eax, eax
jne 0x1002fe66
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push str.NewJreVersion
push dword [esp + 0x1c]
call fcn.1002f280
add esp, 0x10
test eax, eax
jne 0x1002fe66
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x38]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002fe56
test dx, dx
je 0x1002fe52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002fe56
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002fe30
xor eax, eax
jmp 0x1002fe5b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1002fe66
mov eax, dword [esp + 0x1c]
inc eax
jmp 0x1002fe6b
mov eax, 1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 4
push eax
push str.UpdateCount
push dword [esp + 0x1c]
call fcn.1002f280
mov ecx, dword [esp + 0x28]
or edx, 0xffffffff
add esp, 0x10
test eax, eax
mov eax, dword [esp + 0xa44]
cmovne ecx, edx
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x10030051
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x100
push eax
lea eax, [esp + 0x13c]
xor esi, esi
push eax
push str.JreVersion
push dword [esp + 0x1c]
call fcn.1002f280
add esp, 0x10
mov ecx, 1
test eax, eax
lea eax, [esp + 0x138]
cmovne esi, ecx
mov ecx, dword [esp + 0x20]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002ff16
test dx, dx
je 0x1002ff12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002ff16
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002fef0
xor eax, eax
jmp 0x1002ff1b
sbb eax, eax
or eax, 1
test eax, eax
js 0x1002ff27
test esi, esi
je 0x1002ffcb
mov esi, dword [esp + 0x20]
mov ecx, esi
inc dword [esp + 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002ff34
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.JreVersion
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x1002ff88
call ebx
push eax
push esi
lea eax, [esp + 0x240]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_JreVersion:__l_Error_Code:__d_n
push eax
call edi
lea eax, [esp + 0x248]
push eax
call fcn.10033920
add esp, 0x14
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.UpdateCount
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x1002ffcb
call ebx
push eax
push esi
lea eax, [esp + 0x240]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_UpdateCount:__l_Error_Code:__d_n
push eax
call edi
lea eax, [esp + 0x248]
push eax
call fcn.10033920
add esp, 0x14
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.InstallAttempts
push dword [esp + 0x14]
call esi
push str.NewJreVersion
push dword [esp + 0x14]
call esi
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov esi, dword [esp + 0x30]
cmp eax, 0xffffffff
cmove eax, ecx
push eax
push 0x1004878c
push esi
mov dword [esp + 0x24], eax
call edi
push dword [esp + 0x28]
mov ebx, dword [esp + 0x44]
push 0x1004878c
push ebx
call edi
push esi
push ebx
push ebp
lea eax, [esp + 0x25c]
push str.GetUpdatedJreMetrics_____MachineCounted:__s__InstallAttempts:__s__UpdateCount:__s_n
push eax
call edi
lea eax, [esp + 0x264]
push eax
call fcn.10033920
mov ecx, dword [esp + 0xa68]
add esp, 0x30
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003b4ee
add esp, 0xa2c
ret
cmp eax, 0xffffff80
je 0x1002ffcb
push 4
lea eax, [esp + 0x20]
push eax
push 4
push 0
push str.InstallAttempts
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x1003009d
call ebx
push eax
push esi
lea eax, [esp + 0x240]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_InstallAttempts:__l_Error_Code:__d_n
push eax
call edi
lea eax, [esp + 0x248]
push eax
call fcn.10033920
add esp, 0x14
mov esi, dword [esp + 0x20]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100300a6
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.NewJreVersion
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x1002ffe7
call ebx
push eax
push esi
lea eax, [esp + 0x240]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_NewJreVersion:__l_Error_Code:__d_n
push eax
call edi
lea eax, [esp + 0x248]
push eax
call fcn.10033920
add esp, 0x14
jmp 0x1002ffe7