Function at 0x4630d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591515
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 0x463798
cmp dword [ebp + 0xc], 0
je 0x463798
push 0x20000
mov byte [eax], 0
call fcn.0056be3b
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], 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 0x463203
xor ecx, ecx
mov dword [ebp - 0x30], 0x2000000
test ebx, ebx
mov dword [ebp - 0x34], ecx
mov eax, 0x593554
mov dword [ebp - 0x38], ebx
cmovne eax, ecx
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.0045f160
mov ebx, eax
xor edi, edi
nop
mov eax, dword [edi + 0x628200]
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x5c]
push 0x5b354c
push eax
call fcn.0046a970
mov ecx, eax
add esp, 0xc
cmp byte [ecx + 0xf], 0
jge 0x463195
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x593554
cmovne eax, ecx
push eax
push ebx
call fcn.004693d0
add esp, 8
mov esi, eax
test byte [ebp - 0x4d], 0x80
mov byte [ebp - 4], 3
je 0x4631c8
call fcn.004802a0
push 0
push dword [ebp - 0x5c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov byte [ebp - 4], 2
test esi, esi
je 0x4631ec
sub esi, ebx
cmp esi, dword [ebp + 0xc]
jge 0x4631ec
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.00470fe0
add esp, 4
test al, al
jne 0x46344f
add edi, 4
cmp edi, 0x1c
jb 0x463170
lea ecx, [ebp - 0x3c]
call fcn.00456330
mov ebx, dword [ebp - 0x18]
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.0056be44
push 2
push 0
call fcn.0056bda5
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push str.SoftwareValveSteamActiveProcess
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4633c2
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 0x5b3574
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4633c2
cmp dword [ebp - 0x14], 4
jne 0x4633c2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4633c2
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4633c2
push 0x20000
call fcn.0056be3b
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 0x4633b3
lea eax, [ebx - 1]
cmp eax, 0xfffe
ja 0x4633b3
xor ecx, ecx
mov dword [ebp - 0x30], 0x2000000
test edi, edi
mov dword [ebp - 0x34], ecx
mov eax, 0x593554
mov dword [ebp - 0x38], edi
cmovne eax, ecx
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.0045f160
mov ebx, eax
xor edi, edi
mov eax, dword [edi + 0x628200]
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x5c]
push 0x5b354c
push eax
call fcn.0046a970
mov ecx, eax
add esp, 0xc
cmp byte [ecx + 0xf], 0
jge 0x463348
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x593554
cmovne eax, ecx
push eax
push ebx
call fcn.004693d0
add esp, 8
mov esi, eax
test byte [ebp - 0x4d], 0x80
mov byte [ebp - 4], 7
je 0x46337b
call fcn.004802a0
push 0
push dword [ebp - 0x5c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov byte [ebp - 4], 6
test esi, esi
je 0x46339f
sub esi, ebx
cmp esi, dword [ebp + 0xc]
jge 0x46339f
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.00470fe0
add esp, 4
test al, al
jne 0x4634b0
add edi, 4
cmp edi, 0x1c
jb 0x463323
lea ecx, [ebp - 0x3c]
call fcn.00456330
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.004623c0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push str.SoftwareValveSteam
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x4635e4
push edi
push ebx
push str.InstallPath
push dword [ebp - 0x10]
call fcn.00463fb0
add esp, 0x10
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4635de
nop
mov edi, dword [esi + 0x628200]
lea eax, [ebp - 0x4c]
push edi
push ebx
push 0x5b1abc
push eax
call fcn.0046a970
add esp, 0x10
test byte [ebp - 0x3d], 0x80
mov dword [ebp - 4], 8
je 0x463511
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x463514
mov eax, 0x593554
jmp 0x463514
mov edi, dword [ebp + 8]
push esi
push ebx
push edi
call fcn.0056db20
add esp, 0xc
mov byte [esi + edi], 0
cmp byte [ebp - 0x30], 0
je 0x463472
push dword [ebp - 0x3c]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x463483
push dword [ebp - 0x38]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x463494
push dword [ebp - 0x34]
call fcn.0056be44
add esp, 4
lea ecx, [ebp - 0x20]
call fcn.004623c0
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]
push esi
push ebx
push edi
call fcn.0056db20
add esp, 0xc
mov byte [esi + edi], 0
cmp byte [ebp - 0x30], 0
je 0x4634d3
push dword [ebp - 0x3c]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x4634e4
push dword [ebp - 0x38]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x4634f5
push dword [ebp - 0x34]
call fcn.0056be44
add esp, 4
lea ecx, [ebp - 0x20]
call fcn.004623c0
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 dl, dl
xor ch, ch
xor dh, dh
mov cl, 4
mov byte [ebp - 0x2f], ch
mov byte [ebp - 0x2d], cl
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x30], dh
mov byte [ebp - 0x2e], dl
mov dword [ebp - 0x3c], eax
call fcn.0045f160
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.00470fe0
add esp, 4
test al, al
jne 0x463669
cmp byte [ebp - 0x30], al
je 0x46356a
push dword [ebp - 0x3c]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46357b
push dword [ebp - 0x38]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46358c
push dword [ebp - 0x34]
call fcn.0056be44
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
test byte [ebp - 0x3d], 0x80
mov dword [ebp - 4], 0xb
je 0x4635c8
call fcn.004802a0
push 0
push dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
add esi, 4
mov dword [ebp - 4], 0xffffffff
cmp esi, 0x1c
jb 0x463410
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call fcn.00476de0
test al, al
je 0x463798
lea eax, [ebp - 0x10]
push eax
push 0x201
push 0
push str.SoftwareValveSteam
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x463798
push edi
push ebx
push str.InstallPath
push dword [ebp - 0x10]
call fcn.00463fb0
add esp, 0x10
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x463798
mov edi, dword [esi + 0x628200]
lea eax, [ebp - 0x5c]
push edi
push ebx
push 0x5b1abc
push eax
call fcn.0046a970
add esp, 0x10
test byte [ebp - 0x4d], 0x80
mov dword [ebp - 4], 0xc
je 0x4636cd
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x4636d0
mov eax, 0x593554
jmp 0x4636d0
cmp byte [ebp - 0x30], 0
je 0x46367a
push dword [ebp - 0x3c]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46368b
push dword [ebp - 0x38]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46369c
push dword [ebp - 0x34]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xa
jge 0x4636ba
call fcn.004802a0
push 0
push dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, edi
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 dl, dl
xor ch, ch
mov cl, 4
mov byte [ebp - 0x30], ch
mov byte [ebp - 0x2d], cl
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov word [ebp - 0x2f], 0
mov dword [ebp - 0x3c], eax
call fcn.0045f160
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.00470fe0
add esp, 4
test al, al
jne 0x4637ab
cmp byte [ebp - 0x30], al
je 0x463724
push dword [ebp - 0x3c]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x463735
push dword [ebp - 0x38]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x463746
push dword [ebp - 0x34]
call fcn.0056be44
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
test byte [ebp - 0x4d], 0x80
mov dword [ebp - 4], 0xf
je 0x463782
call fcn.004802a0
push 0
push dword [ebp - 0x5c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov ebx, dword [ebp + 8]
add esi, 4
mov dword [ebp - 4], 0xffffffff
cmp esi, 0x1c
jb 0x463635
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
cmp byte [ebp - 0x30], 0
je 0x4637bc
push dword [ebp - 0x3c]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x4637cd
push dword [ebp - 0x38]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x4637de
push dword [ebp - 0x34]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x4d], 0
mov dword [ebp - 4], 0xe
jge 0x4636ba
call fcn.004802a0
push 0
push dword [ebp - 0x5c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret