Function at 0x474380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588b75
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 0x47440b
push str.E:BT4890157e_a198_48d8_a35b_8188c1003801Freetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetMachineGuid
push 0xa4
push 4
lea ecx, [ebp + 8]
call fcn.00422770
mov dword [ebp - 4], esi
push str.RegOpenKeyEx_.HKLMSOFTWAREMicrosoftCryptography.__failed.
push dword [eax]
call fcn.00426d40
add esp, 8
mov dword [ebp - 4], 1
jmp 0x4745c0
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 0x4745d8
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x474575
cmp dword [ebp - 0x18], 1
jne 0x474575
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.00437700
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x4744a5
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 0x4744be
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 0x4744e3
mov ecx, dword [ebx]
mov eax, dword [ecx + esi*2]
lea edx, [ebp - 0x2c]
cmp eax, dword [edx]
jne 0x474667
movzx eax, word [ecx + esi*2 + 4]
cmp ax, word [edx + 4]
jne 0x474667
test edi, edi
je 0x474568
push str.E:BT4890157e_a198_48d8_a35b_8188c1003801Freetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetMachineGuid
push 0xd5
push 4
lea ecx, [ebp + 8]
call fcn.00422770
mov dword [ebp - 4], 4
push str.RegQueryValueEx_.MachineGuid__1_.__failed_to_read_from
push dword [eax]
call fcn.00426d40
push str.HKLMSOFTWAREMicrosoftCryptography_with_error_code
push eax
call fcn.00426d40
add esp, 0x10
mov ecx, eax
push edi
call fcn.004242b0
mov dword [ebp - 4], 5
mov ecx, dword [ebp + 8]
call fcn.004241f0
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add eax, 0x14
push eax
call edi
xor esi, esi
jmp 0x4745d1
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 1
jmp 0x4745d8
push str.E:BT4890157e_a198_48d8_a35b_8188c1003801Freetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetMachineGuid
push 0xc4
push 4
lea ecx, [ebp + 8]
call fcn.00422770
mov dword [ebp - 4], 2
push str.RegQueryValueEx_.MachineGuid__0_.__failed_to_read_from
push dword [eax]
call fcn.00426d40
push str.HKLMSOFTWAREMicrosoftCryptography_with_error_code
push eax
call fcn.00426d40
add esp, 0x10
mov ecx, eax
push dword [ebp - 0x1c]
call fcn.004242b0
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 8]
call fcn.004241f0
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 0x474638
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x474638
push str.E:BT4890157e_a198_48d8_a35b_8188c1003801Freetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetMachineGuid
push 0xe4
push 4
lea ecx, [ebp - 0x1c]
call fcn.00422770
mov dword [ebp - 4], 6
push str.RegCloseKey_...__failed.
push dword [eax]
call fcn.00426d40
add esp, 8
mov dword [ebp - 4], 7
mov ecx, dword [ebp - 0x1c]
call fcn.004241f0
mov eax, dword [ebp - 0x1c]
add eax, 0x14
push eax
call edi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebx + 0x10], 0
jne 0x474651
push 0x24
push str.00000000_0000_0000_0000_000000000000
mov ecx, ebx
call fcn.00425810
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.0056024d
int3