Function at 0x475be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588b01
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:BTd30760c8_f36a_4525_bc41_ffb9fa48b740Freetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetStringRegValue
push 0x3b9
push 3
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], 1
call fcn.004226f0
mov byte [ebp - 4], 2
push str.McCommonHelper::GetStringRegValue___START
push dword [eax]
call fcn.00426cc0
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x424]
call fcn.00424170
mov eax, dword [ebp - 0x424]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x5bb3b8
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00425790
push 0x410
lea eax, [ebp - 0x420]
mov dword [ebp - 0x428], 0
push 0
push eax
call fcn.00556180
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 0x475d0e
cmp dword [ebp - 0x428], 0
jne 0x475dda
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 0x475dda
mov ecx, dword [ebp - 0x428]
test ecx, ecx
je 0x475dda
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 0x475d7d
lea edx, [ebp - 0x420]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x475d50
mov ecx, dword [ebp - 0x430]
lea eax, [ebp - 0x420]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.00425790
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x475e56
push str.E:BTd30760c8_f36a_4525_bc41_ffb9fa48b740Freetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetStringRegValue
push 0x3ce
push 4
lea ecx, [ebp - 0x424]
call fcn.004226f0
mov byte [ebp - 4], 4
push str.Failed_to_get_registry_value_:
push dword [eax]
call fcn.00426cc0
cmp dword [ebp + 0x38], 8
lea ecx, [ebp + 0x24]
push dword [ebp + 0x34]
cmovae ecx, dword [ebp + 0x24]
push ecx
push eax
call fcn.00478180
push str.._Error:
push eax
call fcn.00426cc0
add esp, 0x1c
mov ecx, eax
push esi
call fcn.00424230
mov byte [ebp - 4], 5
jmp 0x475e35
push str.E:BTd30760c8_f36a_4525_bc41_ffb9fa48b740Freetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetStringRegValue
push 0x3d3
push 4
lea ecx, [ebp - 0x424]
call fcn.004226f0
mov byte [ebp - 4], 6
push str.Failed_to_open_registry_key_:
push dword [eax]
call fcn.00426cc0
cmp dword [ebp + 0x20], 8
lea ecx, [ebp + 0xc]
push dword [ebp + 0x1c]
cmovae ecx, dword [ebp + 0xc]
push ecx
push eax
call fcn.00478180
push str.._Error:
push eax
call fcn.00426cc0
add esp, 0x1c
mov ecx, eax
push esi
call fcn.00424230
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x424]
call fcn.00424170
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 0x475e71
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x428], 0
push str.E:BTd30760c8_f36a_4525_bc41_ffb9fa48b740Freetools_srcMcEventsTrackerMcCommonHelper.cpp
push str.McCommonHelper::GetStringRegValue
push 0x3db
push 3
lea ecx, [ebp - 0x424]
call fcn.004226f0
mov byte [ebp - 4], 8
push str.McCommonHelper::GetStringRegValue___END
push dword [eax]
call fcn.00426cc0
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x424]
call fcn.00424170
mov eax, dword [ebp - 0x424]
add eax, 0x14
push eax
call edi
lea ecx, [ebp + 0xc]
call fcn.00425730
lea ecx, [ebp + 0x24]
call fcn.00425730
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.00553cca
mov esp, ebp
pop ebp
ret 0x3c