Function at 0x4742f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588af5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x61094c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, eax
je 0x47437b
push str.E:BT7c039243_72da_4e0d_8a2b_71068e04940dFreetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetMachineGuid
push 0xa4
push 4
lea ecx, [ebp + 8]
call fcn.004226f0
mov dword [ebp - 4], esi
push str.RegOpenKeyEx_.HKLMSOFTWAREMicrosoftCryptography.__failed.
push dword [eax]
call fcn.00426cc0
add esp, 8
mov dword [ebp - 4], 1
jmp 0x474530
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 1
push eax
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], esi
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp eax, 2
je 0x474548
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4744e5
cmp dword [ebp - 0x18], 1
jne 0x4744e5
shr ecx, 1
xor eax, eax
inc ecx
mov word [ebp - 0x2c], ax
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul esi, eax
mov ecx, ebx
mov dword [ebp - 0x24], ebx
xor esi, edi
imul eax, esi, 0x101
mov esi, dword [ebp + 8]
cmp esi, dword [ebx + 0x10]
cmovb esi, dword [ebx + 0x10]
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x20], esi
lea eax, [esi + 3]
push eax
call fcn.004376a0
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x474415
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x2c]
mov dword [ecx + esi*2], eax
mov ax, word [ebp - 0x28]
mov word [ecx + esi*2 + 4], ax
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x47442e
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebx + 0x14], 8
mov edi, eax
mov ecx, ebx
jb 0x474453
mov ecx, dword [ebx]
mov eax, dword [ecx + esi*2]
lea edx, [ebp - 0x2c]
cmp eax, dword [edx]
jne 0x4745d7
movzx eax, word [ecx + esi*2 + 4]
cmp ax, word [edx + 4]
jne 0x4745d7
test edi, edi
je 0x4744d8
push str.E:BT7c039243_72da_4e0d_8a2b_71068e04940dFreetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetMachineGuid
push 0xd5
push 4
lea ecx, [ebp + 8]
call fcn.004226f0
mov dword [ebp - 4], 4
push str.RegQueryValueEx_.MachineGuid__1_.__failed_to_read_from
push dword [eax]
call fcn.00426cc0
push str.HKLMSOFTWAREMicrosoftCryptography_with_error_code
push eax
call fcn.00426cc0
add esp, 0x10
mov ecx, eax
push edi
call fcn.00424230
mov dword [ebp - 4], 5
mov ecx, dword [ebp + 8]
call fcn.00424170
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add eax, 0x14
push eax
call edi
xor esi, esi
jmp 0x474541
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 1
jmp 0x474548
push str.E:BT7c039243_72da_4e0d_8a2b_71068e04940dFreetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetMachineGuid
push 0xc4
push 4
lea ecx, [ebp + 8]
call fcn.004226f0
mov dword [ebp - 4], 2
push str.RegQueryValueEx_.MachineGuid__0_.__failed_to_read_from
push dword [eax]
call fcn.00426cc0
push str.HKLMSOFTWAREMicrosoftCryptography_with_error_code
push eax
call fcn.00426cc0
add esp, 0x10
mov ecx, eax
push dword [ebp - 0x1c]
call fcn.00424230
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 8]
call fcn.00424170
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
call edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4745a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4745a8
push str.E:BT7c039243_72da_4e0d_8a2b_71068e04940dFreetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetMachineGuid
push 0xe4
push 4
lea ecx, [ebp - 0x1c]
call fcn.004226f0
mov dword [ebp - 4], 6
push str.RegCloseKey_...__failed.
push dword [eax]
call fcn.00426cc0
add esp, 8
mov dword [ebp - 4], 7
mov ecx, dword [ebp - 0x1c]
call fcn.00424170
mov eax, dword [ebp - 0x1c]
add eax, 0x14
push eax
call edi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebx + 0x10], 0
jne 0x4745c1
push 0x24
push str.00000000_0000_0000_0000_000000000000
mov ecx, ebx
call fcn.00425790
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.005601cd
int3