Function at 0x10066f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d1ba5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0
push ebx
push esi
push edi
test eax, eax
je 0x1006760b
cmp dword [ebp + 0xc], 0
je 0x1006760b
push 0x20000
mov byte [eax], 0
call fcn.10021950
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
push 0x10000
push ebx
push 0
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0xfffe
ja 0x10067070
xor ecx, ecx
mov dword [ebp - 0x30], 0x2000000
test ebx, ebx
mov dword [ebp - 0x34], ecx
mov eax, 0x101de70d
mov dword [ebp - 0x38], ebx
cmovne eax, ecx
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.10067880
mov ebx, eax
xor edi, edi
nop
mov eax, dword [edi + 0x1024c78c]
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x5c]
push 0x101edf54
push eax
call fcn.100f26b0
mov ecx, eax
add esp, 0xc
cmp byte [ecx + 0xf], 0
jge 0x10066fd5
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x101de70d
cmovne eax, ecx
push eax
push ebx
call dword [sym.imp.vstdlib_s.dll_StringFindSuffix]
add esp, 8
mov esi, eax
test byte [ebp - 0x4d], 0x80
mov byte [ebp - 4], 3
je 0x10067008
mov ecx, dword [sym.imp.tier0_s.dll_g_pMemAllocSteam]
push 0
push dword [ebp - 0x5c]
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov byte [ebp - 4], 2
test esi, esi
je 0x1006702e
mov eax, esi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jge 0x1006702e
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.100facb0
add esp, 4
test al, al
jne 0x10067304
add edi, 4
cmp edi, 0x1c
jb 0x10066fb0
cmp byte [ebp - 0x30], 0
je 0x1006704b
push dword [ebp - 0x3c]
call fcn.10021980
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x1006705c
push dword [ebp - 0x38]
call fcn.10021980
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x1006706d
push dword [ebp - 0x34]
call fcn.10021980
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.10021980
push 2
push 0
call fcn.10021980
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push str.SoftwareValveSteamActiveProcess
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006725c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], 4
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x101dceac
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006725c
cmp dword [ebp - 0x14], 4
jne 0x1006725c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1006725c
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1006725c
push 0x20000
call fcn.10021950
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 5
push eax
push esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0x10000
push edi
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0x103
jne 0x1006724d
lea eax, [ebx - 1]
cmp eax, 0xfffe
ja 0x1006724d
xor ecx, ecx
mov dword [ebp - 0x30], 0x2000000
test edi, edi
mov dword [ebp - 0x34], ecx
mov eax, 0x101de70d
mov dword [ebp - 0x38], edi
cmovne eax, ecx
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.10067880
mov ebx, eax
xor edi, edi
mov eax, dword [edi + 0x1024c78c]
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x5c]
push 0x101edf54
push eax
call fcn.100f26b0
mov ecx, eax
add esp, 0xc
cmp byte [ecx + 0xf], 0
jge 0x100671b5
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x101de70d
cmovne eax, ecx
push eax
push ebx
call dword [sym.imp.vstdlib_s.dll_StringFindSuffix]
add esp, 8
mov esi, eax
test byte [ebp - 0x4d], 0x80
mov byte [ebp - 4], 7
je 0x100671e8
mov ecx, dword [sym.imp.tier0_s.dll_g_pMemAllocSteam]
push 0
push dword [ebp - 0x5c]
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov byte [ebp - 4], 6
test esi, esi
je 0x1006720e
mov eax, esi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jge 0x1006720e
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.100facb0
add esp, 4
test al, al
jne 0x10067367
add edi, 4
cmp edi, 0x1c
jb 0x10067190
cmp byte [ebp - 0x30], 0
je 0x1006722b
push dword [ebp - 0x3c]
call fcn.10021980
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x1006723c
push dword [ebp - 0x38]
call fcn.10021980
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x1006724d
push dword [ebp - 0x34]
call fcn.10021980
add esp, 4
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.10066bb0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push str.SoftwareValveSteam
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x10067486
push dword [ebp + 0xc]
push ebx
push str.InstallPath
push dword [ebp - 0x10]
call fcn.10067670
add esp, 0x10
mov esi, eax
push dword [ebp - 0x10]
call edi
test esi, esi
jne 0x10067480
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov word [ebp - 0x2f], si
mov byte [ebp - 0x2d], 4
mov dword [ebp - 0x20], esi
jmp 0x100672c0
mov eax, dword [esi + 0x1024c78c]
push eax
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4c]
push 0x101edf14
push eax
call fcn.100f26b0
add esp, 0x10
test byte [ebp - 0x3d], 0x80
mov dword [ebp - 4], 8
je 0x100673ca
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x100673cd
xor bl, bl
mov edi, 0x101de70d
jmp 0x100673d9
mov edi, dword [ebp + 8]
sub esi, ebx
push esi
push ebx
push edi
call fcn.101ad380
add esp, 0xc
mov byte [esi + edi], 0
cmp byte [ebp - 0x30], 0
je 0x10067329
push dword [ebp - 0x3c]
call fcn.10021980
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x1006733a
push dword [ebp - 0x38]
call fcn.10021980
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x1006734b
push dword [ebp - 0x34]
call fcn.10021980
add esp, 4
lea ecx, [ebp - 0x20]
call fcn.10066bb0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
sub esi, ebx
push esi
push ebx
push edi
call fcn.101ad380
add esp, 0xc
mov byte [esi + edi], 0
cmp byte [ebp - 0x30], 0
je 0x1006738c
push dword [ebp - 0x3c]
call fcn.10021980
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x1006739d
push dword [ebp - 0x38]
call fcn.10021980
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x100673ae
push dword [ebp - 0x34]
call fcn.10021980
add esp, 4
lea ecx, [ebp - 0x20]
call fcn.10066bb0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x4c]
xor bl, bl
mov edi, 0x101de70d
test eax, eax
cmovne edi, eax
mov dword [ebp - 0x3c], edi
mov byte [ebp - 0x30], bl
mov byte [ebp - 4], 9
test edi, edi
jne 0x10067416
push 4
push edi
push edi
mov bl, 1
push edi
mov byte [ebp - 0x30], bl
call dword [sym.imp.vstdlib_s.dll_V_UTF16ToUTF8]
mov esi, eax
push esi
call fcn.10021950
push 0
mov edi, eax
push esi
push edi
push 0
mov dword [ebp - 0x3c], edi
call dword [sym.imp.vstdlib_s.dll_V_UTF16ToUTF8]
mov esi, dword [ebp - 0x20]
add esp, 0x24
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.100facb0
add esp, 4
test al, al
jne 0x10067520
test bl, bl
je 0x10067438
push edi
call fcn.10021980
add esp, 4
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x30], 0
test byte [ebp - 0x3d], 0x80
mov dword [ebp - 4], 0xb
je 0x10067461
mov eax, dword [sym.imp.tier0_s.dll_g_pMemAllocSteam]
push 0
push dword [ebp - 0x4c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ebx, dword [ebp + 8]
add esi, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], esi
cmp esi, 0x1c
jb 0x100672c0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call dword [sym.imp.tier0_s.dll_Is64BitOS]
test al, al
je 0x1006760b
lea eax, [ebp - 0x10]
push eax
push 0x201
push 0
push str.SoftwareValveSteam
push 0x80000002
call esi
test eax, eax
jne 0x1006760b
push dword [ebp + 0xc]
push ebx
push str.InstallPath
push dword [ebp - 0x10]
call fcn.10067670
add esp, 0x10
mov esi, eax
push dword [ebp - 0x10]
call edi
test esi, esi
jne 0x1006760b
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov word [ebp - 0x2f], si
mov byte [ebp - 0x2d], 4
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x1024c78c]
push eax
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x5c]
push 0x101edf14
push eax
call fcn.100f26b0
add esp, 0x10
test byte [ebp - 0x4d], 0x80
mov dword [ebp - 4], 0xc
je 0x1006755f
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x10067562
xor bl, bl
mov edi, 0x101de70d
jmp 0x1006756e
test bl, bl
je 0x1006752d
push edi
call fcn.10021980
add esp, 4
cmp byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xa
jge 0x1006754b
mov eax, dword [sym.imp.tier0_s.dll_g_pMemAllocSteam]
push 0
push dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x5c]
xor bl, bl
mov edi, 0x101de70d
test eax, eax
cmovne edi, eax
mov dword [ebp - 0x3c], edi
mov byte [ebp - 0x30], bl
mov byte [ebp - 4], 0xd
test edi, edi
jne 0x100675ab
push 4
push edi
push edi
mov bl, 1
push edi
mov byte [ebp - 0x30], bl
call dword [sym.imp.vstdlib_s.dll_V_UTF16ToUTF8]
mov esi, eax
push esi
call fcn.10021950
push 0
mov edi, eax
push esi
push edi
push 0
mov dword [ebp - 0x3c], edi
call dword [sym.imp.vstdlib_s.dll_V_UTF16ToUTF8]
mov esi, dword [ebp - 0x20]
add esp, 0x24
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.100facb0
add esp, 4
test al, al
jne 0x1006761e
test bl, bl
je 0x100675c9
push edi
call fcn.10021980
add esp, 4
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x30], 0
test byte [ebp - 0x4d], 0x80
mov dword [ebp - 4], 0xf
je 0x100675f2
mov eax, dword [sym.imp.tier0_s.dll_g_pMemAllocSteam]
push 0
push dword [ebp - 0x5c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ebx, dword [ebp + 8]
add esi, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], esi
cmp esi, 0x1c
jb 0x100674e7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, bl
je 0x1006762b
push edi
call fcn.10021980
add esp, 4
cmp byte [ebp - 0x4d], 0
mov dword [ebp - 4], 0xe
jge 0x1006754b
mov eax, dword [sym.imp.tier0_s.dll_g_pMemAllocSteam]
push 0
push dword [ebp - 0x5c]
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret