Function at 0x4742a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5886b5
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 0x47432b
push str.E:BTd30760c8_f36a_4525_bc41_ffb9fa48b740Freetools_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 0x4744e0
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 0x4744f8
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x474495
cmp dword [ebp - 0x18], 1
jne 0x474495
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.00437670
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x4743c5
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 0x4743de
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 0x474403
mov ecx, dword [ebx]
mov eax, dword [ecx + esi*2]
lea edx, [ebp - 0x2c]
cmp eax, dword [edx]
jne 0x474587
movzx eax, word [ecx + esi*2 + 4]
cmp ax, word [edx + 4]
jne 0x474587
test edi, edi
je 0x474488
push str.E:BTd30760c8_f36a_4525_bc41_ffb9fa48b740Freetools_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 0x4744f1
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 1
jmp 0x4744f8
push str.E:BTd30760c8_f36a_4525_bc41_ffb9fa48b740Freetools_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 0x474558
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x474558
push str.E:BTd30760c8_f36a_4525_bc41_ffb9fa48b740Freetools_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 0x474571
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.00560159
int3