Function at 0x475cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588fc1
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x3c]
mov dword [ebp - 0x430], ebx
push str.E:BT4890157e_a198_48d8_a35b_8188c1003801Freetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetStringRegValue
push 0x3bb
push 3
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], 1
call fcn.00422770
mov byte [ebp - 4], 2
push str.McCommonHelper::GetStringRegValue___START
push dword [eax]
call fcn.00426d40
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x424]
call fcn.004241f0
mov eax, dword [ebp - 0x424]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x5bb418
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00425810
push 0x410
lea eax, [ebp - 0x420]
mov dword [ebp - 0x428], 0
push 0
push eax
call fcn.00556260
mov edi, dword [ebp + 0x40]
lea ecx, [ebp - 0x428]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x42c], 0x410
cmp dword [ebp + 0x20], 8
cmovae eax, dword [ebp + 0xc]
push ecx
push edi
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov esi, eax
test esi, esi
je 0x475dee
cmp dword [ebp - 0x428], 0
jne 0x475eba
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x428]
cmovae eax, dword [ebp + 0xc]
or edi, 0x100
push ecx
push edi
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov esi, eax
test esi, esi
jne 0x475eba
mov ecx, dword [ebp - 0x428]
test ecx, ecx
je 0x475eba
cmp dword [ebp + 0x38], 8
lea edx, [ebp - 0x42c]
push edx
lea edx, [ebp - 0x420]
push edx
push 0
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x475e5d
lea edx, [ebp - 0x420]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x475e30
mov ecx, dword [ebp - 0x430]
lea eax, [ebp - 0x420]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.00425810
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x475f36
push str.E:BT4890157e_a198_48d8_a35b_8188c1003801Freetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetStringRegValue
push 0x3d0
push 4
lea ecx, [ebp - 0x424]
call fcn.00422770
mov byte [ebp - 4], 4
push str.Failed_to_get_registry_value_:
push dword [eax]
call fcn.00426d40
cmp dword [ebp + 0x38], 8
lea ecx, [ebp + 0x24]
push dword [ebp + 0x34]
cmovae ecx, dword [ebp + 0x24]
push ecx
push eax
call fcn.00478260
push str.._Error:
push eax
call fcn.00426d40
add esp, 0x1c
mov ecx, eax
push esi
call fcn.004242b0
mov byte [ebp - 4], 5
jmp 0x475f15
push str.E:BT4890157e_a198_48d8_a35b_8188c1003801Freetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetStringRegValue
push 0x3d5
push 4
lea ecx, [ebp - 0x424]
call fcn.00422770
mov byte [ebp - 4], 6
push str.Failed_to_open_registry_key_:
push dword [eax]
call fcn.00426d40
cmp dword [ebp + 0x20], 8
lea ecx, [ebp + 0xc]
push dword [ebp + 0x1c]
cmovae ecx, dword [ebp + 0xc]
push ecx
push eax
call fcn.00478260
push str.._Error:
push eax
call fcn.00426d40
add esp, 0x1c
mov ecx, eax
push esi
call fcn.004242b0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x424]
call fcn.004241f0
mov eax, dword [ebp - 0x424]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add eax, 0x14
push eax
call edi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x475f51
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x428], 0
push str.E:BT4890157e_a198_48d8_a35b_8188c1003801Freetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetStringRegValue
push 0x3dd
push 3
lea ecx, [ebp - 0x424]
call fcn.00422770
mov byte [ebp - 4], 8
push str.McCommonHelper::GetStringRegValue___END
push dword [eax]
call fcn.00426d40
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x424]
call fcn.004241f0
mov eax, dword [ebp - 0x424]
add eax, 0x14
push eax
call edi
lea ecx, [ebp + 0xc]
call fcn.004257b0
lea ecx, [ebp + 0x24]
call fcn.004257b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00553daa
mov esp, ebp
pop ebp
ret 0x3c