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

Disassembly:
sub esp, 0x52c
mov eax, dword [0x6d1d54cc]
xor eax, esp
mov dword [esp + 0x528], eax
mov eax, dword [esp + 0x540]
push ebx
push ebp
mov ebp, dword [esp + 0x538]
push esi
mov esi, dword [esp + 0x544]
push edi
mov edi, dword [esp + 0x54c]
xor ebx, ebx
push 0x7f
lea ecx, [esp + 0xbd]
push ebx
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], eax
mov byte [esp + 0xc4], bl
call sub.MSVCR100.dll_memset
push 0x7f
lea edx, [esp + 0x49]
push ebx
push edx
mov byte [esp + 0x50], bl
call sub.MSVCR100.dll_memset
push 0x3ff
lea eax, [esp + 0x155]
push ebx
push eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x15c], bl
call sub.MSVCR100.dll_memset
add esp, 0x24
push 0x6d1ce91c
push esi
mov esi, dword [sym.imp.kernel32.dll_lstrcpyA]
call esi
push 0x6d1ce91c
push edi
call esi
mov ecx, dword [esp + 0x24]
push 0x6d1ce91c
push ecx
call esi
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x14]
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 edi, eax
cmp edi, ebx
je 0x6d1c6d54
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
lea ecx, [esp + 0x140]
push str.GetUpdatedJreMetrics_____RegCreateKeyEx_failed:__l_Error_Code:__d_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x148]
push edx
call fcn.6d1c4ef0
add esp, 0x14
mov eax, edi
jmp 0x6d1c7033
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
push ebx
push str.MachineCount
push eax
mov dword [esp + 0x2c], 4
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp edi, 2
jne 0x6d1c6de1
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x2c]
push ecx
push 4
push ebx
push str.MachineCount
push edx
mov dword [esp + 0x40], 1
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
cmp edi, ebx
jne 0x6d1c6dd2
mov eax, dword [esp + 0x20]
push str.false
push eax
call esi
push str.GetUpdatedJreMetrics_____MachineCount_registry_value_created_n
call fcn.6d1c4ef0
add esp, 4
jmp 0x6d1c6e2b
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
push str.GetUpdatedJreMetrics_____RegSetValue_for_MachineCount_failed:__l_Error_Code:__d_n
jmp 0x6d1c6e0d
cmp edi, ebx
jne 0x6d1c6e00
mov eax, dword [esp + 0x20]
push str.true
push eax
call esi
push str.GetUpdatedJreMetrics_____MachineCount_registry_value_exists_n
call fcn.6d1c4ef0
add esp, 4
jmp 0x6d1c6e2b
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
push str.GetUpdatedJreMetrics_____RegQueryValueEx_for_MachineCount_failed:__l_Error_Code:__d_n
lea ecx, [esp + 0x144]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x148]
push edx
call fcn.6d1c4ef0
add esp, 0x14
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push str.InstallAttempts
push edx
mov dword [esp + 0x24], 4
call fcn.6d1c5d20
mov edi, dword [sym.imp.kernel32.dll_lstrcmpA]
add esp, 0x10
mov esi, 0x80
test eax, eax
jne 0x6d1c6e94
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ecx
push str.NewJreVersion
push edx
mov dword [esp + 0x24], esi
call fcn.6d1c5d20
add esp, 0x10
test eax, eax
jne 0x6d1c6e94
push ebp
lea eax, [esp + 0x3c]
push eax
call edi
test eax, eax
jne 0x6d1c6e94
inc dword [esp + 0x1c]
jmp 0x6d1c6e9c
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push str.UpdateCount
push eax
mov dword [esp + 0x24], 4
call fcn.6d1c5d20
add esp, 0x10
test eax, eax
je 0x6d1c6ecc
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x544]
cmp eax, ebx
jne 0x6d1c704c
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xbc]
push edx
push str.JreVersion
mov dword [esp + 0x20], esi
push eax
xor esi, esi
call fcn.6d1c5d20
add esp, 0x10
test eax, eax
je 0x6d1c6f09
mov esi, 1
push ebp
lea ecx, [esp + 0xbc]
push ecx
call edi
test eax, eax
js 0x6d1c6f20
cmp esi, ebx
je 0x6d1c6fba
inc dword [esp + 0x18]
push ebp
call dword [sym.imp.kernel32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push str.JreVersion
push edx
call ebp
mov esi, eax
cmp esi, ebx
je 0x6d1c6f73
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
lea eax, [esp + 0x140]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_JreVersion:__l_Error_Code:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x148]
push ecx
call fcn.6d1c4ef0
add esp, 0x14
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push ebx
push str.UpdateCount
push eax
call ebp
mov esi, eax
cmp esi, ebx
je 0x6d1c6fba
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
lea ecx, [esp + 0x140]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_UpdateCount:__l_Error_Code:__d_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x148]
push edx
call fcn.6d1c4ef0
add esp, 0x14
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.InstallAttempts
push ecx
call esi
mov edx, dword [esp + 0x10]
push str.NewJreVersion
push edx
call esi
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
jne 0x6d1c6fe7
xor eax, eax
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x2c]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push 0x6d1ce1d8
push esi
call edi
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
push eax
push 0x6d1ce1d8
push ebx
call edi
mov ecx, dword [esp + 0x38]
push esi
push ebx
push ecx
lea edx, [esp + 0x15c]
push str.GetUpdatedJreMetrics_____MachineCounted:__s__InstallAttempts:__s__UpdateCount:__s_n
push edx
call edi
lea eax, [esp + 0x164]
push eax
call fcn.6d1c4ef0
add esp, 0x30
xor eax, eax
mov ecx, dword [esp + 0x538]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.6d1c932c
add esp, 0x52c
ret
cmp eax, 0xffffff80
je 0x6d1c6fba
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [esp + 0x20]
push eax
push 4
push ebx
push str.InstallAttempts
push ecx
call edi
mov esi, eax
cmp esi, ebx
je 0x6d1c70a2
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
lea edx, [esp + 0x140]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_InstallAttempts:__l_Error_Code:__d_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x148]
push eax
call fcn.6d1c4ef0
add esp, 0x14
push ebp
call dword [sym.imp.kernel32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
push eax
push ebp
push 1
push ebx
push str.NewJreVersion
push ecx
call edi
mov esi, eax
cmp esi, ebx
je 0x6d1c6fd8
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
lea edx, [esp + 0x140]
push str.GetUpdatedJreMetrics_____RegSetValueEx_failed_for_NewJreVersion:__l_Error_Code:__d_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x148]
push eax
call fcn.6d1c4ef0
add esp, 0x14
jmp 0x6d1c6fd8