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

Disassembly:
push ebp
sub esp, 0x640
lea ebp, [esp - 4]
mov eax, dword [0x4c2660]
xor eax, ebp
mov dword [ebp + 0x640], eax
push 0x30
mov eax, 0x48bf21
call fcn.0046e338
mov eax, dword [ebp + 0x650]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x654]
xor edi, edi
push 0x7f
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x5c1]
mov esi, ecx
push edi
mov dword [ebp - 0x10], edi
push eax
mov dword [ebp - 0x24], esi
mov byte [ebp + 0x5c0], 0
call fcn.00468970
push 0x7f
lea eax, [ebp + 0x541]
push edi
push eax
mov byte [ebp + 0x540], 0
call fcn.00468970
push 0x3ff
lea eax, [ebp + 0x141]
push edi
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov byte [ebp + 0x140], 0
call fcn.00468970
add esp, 0x24
mov ebx, 0x4991e4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
push ebx
push dword [ebp - 0x2c]
call esi
push ebx
push dword [ebp - 0x28]
call esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push 0x2021f
push edi
push edi
push edi
push str.SoftwareJreMetrics
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, eax
cmp ebx, edi
je 0x41843f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
lea eax, [ebp + 0x140]
push str.GetUpdatedJreMetrics_____RegCreateKeyEx_failed:__l_Error_Code:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edi, ebx
lea eax, [ebp + 0x140]
push eax
call fcn.00439ca9
pop ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x640]
xor ecx, ebp
call fcn.00465f42
add ebp, 0x644
leave
ret
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
push edi
mov ebx, str.MachineCount
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x34], eax
cmp eax, 2
jne 0x4184f9
cmp dword [ebp + 0x64c], edi
jne 0x4184c6
push 4
pop eax
push eax
lea ecx, [ebp - 0x30]
push ecx
push eax
push edi
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp ebx, edi
jne 0x4184b7
push str.false
push dword [ebp - 0x24]
call esi
push str.GetUpdatedJreMetrics_____MachineCount_registry_value_created_n
call fcn.00439ca9
pop ecx
jmp 0x41854e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.GetUpdatedJreMetrics_____RegSetValue_for_MachineCount_failed:__l_Error_Code:__d_n
jmp 0x418532
push 0x49adb4
push dword [ebp - 0x24]
call esi
push dword [ebp + 0x64c]
lea eax, [ebp + 0x140]
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 dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x140]
push eax
call fcn.00439ca9
add esp, 0x10
jmp 0x41854e
cmp eax, edi
jne 0x418523
push str.GetUpdatedJreMetrics_____MachineCount_registry_value_exists_n
call fcn.00439ca9
pop ecx
cmp dword [ebp + 0x64c], edi
jne 0x418517
push str.true
jmp 0x41851c
push 0x4997bc
push dword [ebp - 0x24]
call esi
jmp 0x41854e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x34]
push str.GetUpdatedJreMetrics_____RegQueryValueEx_for_MachineCount_failed:__l_Error_Code:__d_n
lea eax, [ebp + 0x140]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x140]
push eax
call fcn.00439ca9
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push str.InstallAttempts
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 4
call fcn.004164b3
add esp, 0x10
test eax, eax
je 0x41857d
mov dword [ebp - 0x20], 1
jmp 0x4186aa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x540]
push eax
push str.NewJreVersion
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x80
call fcn.004164b3
add esp, 0x10
cmp eax, edi
jne 0x41863c
push 0x49900c
lea ecx, [ebp + 0xec]
call fcn.0040d21d
lea eax, [ebp + 0x540]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp + 0x108]
mov dword [ebp - 0x10], 1
call fcn.0040d21d
lea esi, [ebp + 0x9c]
mov dword [ebp - 0x10], 3
call fcn.0040e4e0
lea ebx, [ebp + 0xec]
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0040ebe7
lea esi, [ebp]
mov dword [ebp - 0x10], 7
call fcn.0040e4e0
lea ebx, [ebp + 0x108]
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.0040ebe7
lea eax, [ebp + 0x9c]
push eax
mov eax, esi
push eax
mov dword [ebp - 0x10], 0xf
call fcn.0040dec2
xor edi, edi
test al, al
je 0x41863c
mov bl, 1
jmp 0x41863e
xor bl, bl
xor esi, esi
inc esi
test byte [ebp - 0x10], 8
je 0x418655
and dword [ebp - 0x10], 0xfffffff7
push edi
push esi
lea ecx, [ebp + 0x18]
call fcn.0040e7d9
test byte [ebp - 0x10], 4
je 0x41866c
and dword [ebp - 0x10], 0xfffffffb
push edi
push esi
lea ecx, [ebp + 0xb4]
call fcn.0040e7d9
test byte [ebp - 0x10], 2
je 0x418683
and dword [ebp - 0x10], 0xfffffffd
push edi
push esi
lea ecx, [ebp + 0x108]
call fcn.0040e7d9
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x10], 1
je 0x41869e
and dword [ebp - 0x10], 0xfffffffe
push edi
push esi
lea ecx, [ebp + 0xec]
call fcn.0040e7d9
test bl, bl
je 0x4186a7
inc dword [ebp - 0x20]
jmp 0x4186aa
mov dword [ebp - 0x20], esi
push 4
pop esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.UpdateCount
push dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
call fcn.004164b3
add esp, 0x10
test eax, eax
je 0x4186d0
or dword [ebp - 0x1c], 0xffffffff
cmp dword [ebp + 0x64c], edi
jne 0x4188ee
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x5c0]
push eax
push str.JreVersion
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x80
call fcn.004164b3
add esp, 0x10
cmp eax, edi
jne 0x418790
push 0x49900c
lea ecx, [ebp + 0x124]
call fcn.0040d21d
lea eax, [ebp + 0x5c0]
mov dword [ebp - 4], 5
or dword [ebp - 0x10], 0x10
push eax
lea ecx, [ebp + 0xd0]
call fcn.0040d21d
or dword [ebp - 0x10], 0x20
lea esi, [ebp + 0x68]
call fcn.0040e4e0
lea ebx, [ebp + 0x124]
mov ecx, esi
mov dword [ebp - 4], 7
call fcn.0040ebe7
or dword [ebp - 0x10], 0x40
lea esi, [ebp + 0x34]
call fcn.0040e4e0
lea ebx, [ebp + 0xd0]
mov ecx, esi
mov dword [ebp - 4], 9
call fcn.0040ebe7
or dword [ebp - 0x10], 0x80
lea eax, [ebp + 0x68]
mov ecx, esi
call fcn.0040de9d
test al, al
jne 0x41878e
xor bl, bl
xor edi, edi
jmp 0x418792
xor edi, edi
mov bl, 1
test byte [ebp - 0x10], 0x80
je 0x4187aa
and dword [ebp - 0x10], 0xffffff7f
push edi
push 1
lea ecx, [ebp + 0x4c]
call fcn.0040e7d9
test byte [ebp - 0x10], 0x40
je 0x4187c2
and dword [ebp - 0x10], 0xffffffbf
push edi
push 1
lea ecx, [ebp + 0x80]
call fcn.0040e7d9
test byte [ebp - 0x10], 0x20
je 0x4187da
and dword [ebp - 0x10], 0xffffffdf
push edi
push 1
lea ecx, [ebp + 0xd0]
call fcn.0040e7d9
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x10], 0x10
je 0x4187f2
push edi
push 1
lea ecx, [ebp + 0x124]
call fcn.0040e7d9
test bl, bl
je 0x41888f
inc dword [ebp - 0x1c]
mov esi, 0x49900c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push esi
push 1
push edi
push str.JreVersion
push dword [ebp - 0x14]
call ebx
mov esi, eax
cmp esi, edi
je 0x41884d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp + 0x140]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_JreVersion:__l_Error_Code:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x140]
push eax
call fcn.00439ca9
add esp, 0x14
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push edi
push str.UpdateCount
push dword [ebp - 0x14]
call ebx
mov esi, eax
cmp esi, edi
je 0x41888f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp + 0x140]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_UpdateCount:__l_Error_Code:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x140]
push eax
call fcn.00439ca9
add esp, 0x14
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.InstallAttempts
push dword [ebp - 0x14]
call esi
push str.NewJreVersion
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4188b2
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x1c]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, 0x49ab28
push esi
push dword [ebp - 0x2c]
call ebx
push dword [ebp - 0x20]
push esi
push dword [ebp - 0x28]
call ebx
push dword [ebp - 0x2c]
lea eax, [ebp + 0x140]
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push str.GetUpdatedJreMetrics_____MachineCounted:__s__InstallAttempts:__s__UpdateCount:__s_n
push eax
call ebx
add esp, 0x2c
jmp 0x41840d
cmp dword [ebp + 0x64c], 0xffffff80
je 0x41888f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea eax, [ebp - 0x20]
push eax
push esi
push edi
push str.InstallAttempts
push dword [ebp - 0x14]
call ebx
mov esi, eax
cmp esi, edi
je 0x41893d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp + 0x140]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_InstallAttempts:__l_Error_Code:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x140]
push eax
call fcn.00439ca9
add esp, 0x14
mov esi, 0x49900c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 1
push edi
push str.NewJreVersion
push dword [ebp - 0x14]
call ebx
mov esi, eax
cmp esi, edi
je 0x4188a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp + 0x140]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_NewJreVersion:__l_Error_Code:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x140]
push eax
call fcn.00439ca9
add esp, 0x14
jmp 0x4188a9