Function at 0x10063640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push ebx
push esi
push edi
test eax, eax
je 0x10063c4b
cmp dword [ebp + 0xc], 0
je 0x10063c4b
push 0x20000
mov byte [eax], 0
call fcn.100c192b
add esp, 4
mov ebx, eax
mov dword [ebp - 8], ebx
push 0x10000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0xfffe
ja 0x10063745
xor ecx, ecx
mov dword [ebp - 0x20], 0x2000000
test ebx, ebx
mov dword [ebp - 0x24], ecx
mov eax, 0x1024cb86
mov dword [ebp - 0x28], ebx
cmovne eax, ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
call fcn.10064880
mov ebx, eax
xor edi, edi
lea esp, [esp]
mov eax, dword [edi + 0x10317170]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3c]
push 0x10250860
push eax
call fcn.10076a90
mov ecx, eax
add esp, 0xc
cmp byte [ecx + 0xf], 0
jge 0x100636e5
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x1024cb86
cmovne eax, ecx
push eax
push ebx
call fcn.100ba280
add esp, 8
mov esi, eax
test byte [ebp - 0x2d], 0x80
je 0x10063712
call fcn.100ad570
push 0
push dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
test esi, esi
je 0x10063732
sub esi, ebx
cmp esi, dword [ebp + 0xc]
jge 0x10063732
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.100855b0
add esp, 4
test al, al
jne 0x1006396a
add edi, 4
cmp edi, 0x1c
jb 0x100636c0
lea ecx, [ebp - 0x2c]
call fcn.10056440
mov ebx, dword [ebp - 8]
push ebx
call fcn.100c1934
push 2
push 0
call fcn.100c15fb
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareValveSteamActiveProcess
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100638dd
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1024d748
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100638dd
cmp dword [ebp - 8], 4
jne 0x100638dd
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100638dd
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100638dd
push 0x20000
call fcn.100c192b
add esp, 4
mov dword [ebp - 0x10], 0
mov edi, eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], edi
push eax
push esi
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 - 0x10], 0x103
jne 0x100638d5
lea eax, [ebx - 1]
cmp eax, 0xfffe
ja 0x100638d5
xor ecx, ecx
mov dword [ebp - 0x20], 0x2000000
test edi, edi
mov dword [ebp - 0x24], ecx
mov eax, 0x1024cb86
mov dword [ebp - 0x28], edi
cmovne eax, ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
call fcn.10064880
mov ebx, eax
xor edi, edi
mov eax, dword [edi + 0x10317170]
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
push 0x10250860
push eax
call fcn.10076a90
mov ecx, eax
add esp, 0xc
cmp byte [ecx + 0xf], 0
jge 0x10063878
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x1024cb86
cmovne eax, ecx
push eax
push ebx
call fcn.100ba280
add esp, 8
mov esi, eax
test byte [ebp - 0x2d], 0x80
je 0x100638a5
call fcn.100ad570
push 0
push dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
test esi, esi
je 0x100638c5
sub esi, ebx
cmp esi, dword [ebp + 0xc]
jge 0x100638c5
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.100855b0
add esp, 4
test al, al
jne 0x100639c1
add edi, 4
cmp edi, 0x1c
jb 0x10063853
lea ecx, [ebp - 0x2c]
call fcn.10056440
lea ecx, [ebp - 0x14]
call fcn.10061ad0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1024e268
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x10063acd
push dword [ebp + 0xc]
push ebx
push str.InstallPath
push dword [ebp - 4]
call fcn.100644a0
add esp, 0x10
mov esi, eax
push dword [ebp - 4]
call edi
test esi, esi
jne 0x10063ac7
jmp 0x10063930
mov edi, dword [esi + 0x10317170]
lea eax, [ebp - 0x3c]
push edi
push ebx
push 0x1024f6dc
push eax
call fcn.10076a90
add esp, 0x10
test byte [ebp - 0x2d], 0x80
je 0x10063a18
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x10063a1b
mov dword [ebp - 0x2c], 0x1024cb86
jmp 0x10063a1e
mov edi, dword [ebp + 8]
push esi
push ebx
push edi
call fcn.100c2f10
add esp, 0xc
mov byte [esi + edi], 0
cmp byte [ebp - 0x20], 0
je 0x1006398d
push dword [ebp - 0x2c]
call fcn.100c1934
add esp, 4
cmp byte [ebp - 0x1f], 0
je 0x1006399e
push dword [ebp - 0x28]
call fcn.100c1934
add esp, 4
cmp byte [ebp - 0x1e], 0
je 0x100639af
push dword [ebp - 0x24]
call fcn.100c1934
add esp, 4
lea ecx, [ebp - 8]
call fcn.10061ad0
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
push esi
push ebx
push edi
call fcn.100c2f10
add esp, 0xc
mov byte [esi + edi], 0
cmp byte [ebp - 0x20], 0
je 0x100639e4
push dword [ebp - 0x2c]
call fcn.100c1934
add esp, 4
cmp byte [ebp - 0x1f], 0
je 0x100639f5
push dword [ebp - 0x28]
call fcn.100c1934
add esp, 4
cmp byte [ebp - 0x1e], 0
je 0x10063a06
push dword [ebp - 0x24]
call fcn.100c1934
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.10061ad0
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x4000000
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.10064880
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.100855b0
add esp, 4
test al, al
jne 0x10063b4f
cmp byte [ebp - 0x20], al
je 0x10063a60
push dword [ebp - 0x2c]
call fcn.100c1934
add esp, 4
cmp byte [ebp - 0x1f], 0
je 0x10063a71
push dword [ebp - 0x28]
call fcn.100c1934
add esp, 4
cmp byte [ebp - 0x1e], 0
je 0x10063a82
push dword [ebp - 0x24]
call fcn.100c1934
add esp, 4
test byte [ebp - 0x2d], 0x80
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x4000000
je 0x10063ab5
call fcn.100ad570
push 0
push dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
add esi, 4
cmp esi, 0x1c
jb 0x10063930
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call fcn.100b5ff0
test al, al
je 0x10063c4b
lea eax, [ebp - 4]
push eax
push 0x201
push 0
push 0x1024e268
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x10063c4b
push dword [ebp + 0xc]
push ebx
push str.InstallPath
push dword [ebp - 4]
call fcn.100644a0
add esp, 0x10
mov esi, eax
push dword [ebp - 4]
call edi
test esi, esi
jne 0x10063c4b
lea esp, [esp]
mov edi, dword [esi + 0x10317170]
lea eax, [ebp - 0x3c]
push edi
push ebx
push 0x1024f6dc
push eax
call fcn.10076a90
add esp, 0x10
test byte [ebp - 0x2d], 0x80
je 0x10063ba2
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x10063ba5
mov dword [ebp - 0x2c], 0x1024cb86
jmp 0x10063ba8
cmp byte [ebp - 0x20], 0
je 0x10063b60
push dword [ebp - 0x2c]
call fcn.100c1934
add esp, 4
cmp byte [ebp - 0x1f], 0
je 0x10063b71
push dword [ebp - 0x28]
call fcn.100c1934
add esp, 4
cmp byte [ebp - 0x1e], 0
je 0x10063b82
push dword [ebp - 0x24]
call fcn.100c1934
add esp, 4
cmp byte [ebp - 0x2d], 0
jge 0x10063b99
call fcn.100ad570
push 0
push dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x4000000
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.10064880
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.100855b0
add esp, 4
test al, al
jne 0x10063b4f
cmp byte [ebp - 0x20], al
je 0x10063bea
push dword [ebp - 0x2c]
call fcn.100c1934
add esp, 4
cmp byte [ebp - 0x1f], 0
je 0x10063bfb
push dword [ebp - 0x28]
call fcn.100c1934
add esp, 4
cmp byte [ebp - 0x1e], 0
je 0x10063c0c
push dword [ebp - 0x24]
call fcn.100c1934
add esp, 4
test byte [ebp - 0x2d], 0x80
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x4000000
je 0x10063c3f
call fcn.100ad570
push 0
push dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
add esi, 4
cmp esi, 0x1c
jb 0x10063b20
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret