Function at 0x46b620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c11f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0
push ebx
push esi
push edi
test eax, eax
je 0x46becc
cmp dword [ebp + 0xc], 0
je 0x46becc
push 0x20000
mov byte [eax], 0
call fcn.005383bb
add esp, 4
mov dword [ebp - 0x10], 0
mov esi, eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x46b699
push str.m_p__NULL
push 0x46
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier1_smartptr.h
call fcn.00522050
add esp, 0xc
test al, al
jne 0x46b699
int3
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
push 0x10000
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0xfffe
ja 0x46b7f1
xor edx, edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x3c], edx
mov ecx, 0x6cca60
mov eax, dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0x4000000
cmovne ecx, edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 0x34], edx
mov byte [ebp - 0x2d], 2
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.0046c2d0
mov ebx, eax
xor esi, esi
mov eax, dword [esi + 0x7a91e4]
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push 0x6d2630
push eax
call fcn.0049e1d0
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 3
cmp byte [ecx + 0xf], 0
jge 0x46b73d
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x6cca60
cmovne eax, ecx
push eax
push ebx
call fcn.00530bf0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 2
test byte [ebp - 0x3d], 0x80
je 0x46b770
call fcn.00521c10
push 0
push dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
test edi, edi
je 0x46b792
mov eax, edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jge 0x46b792
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.0049a2e0
add esp, 4
test al, al
jne 0x46bae2
add esi, 4
cmp esi, 0x1c
jb 0x46b714
mov byte [ebp - 4], 1
cmp byte [ebp - 0x30], 0
je 0x46b7b3
push dword [ebp - 0x3c]
call fcn.005383c4
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46b7c4
push dword [ebp - 0x38]
call fcn.005383c4
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46b7d5
push dword [ebp - 0x34]
call fcn.005383c4
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0
call fcn.005383c4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
push 2
push eax
mov dword [ebp - 0x10], 0
call fcn.005383ad
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x14]
add esp, 0xc
push eax
push 1
push 0
push str.SoftwareValveSteamActiveProcess
push closesocket
call ebx
test eax, eax
jne 0x46ba52
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x6d2658
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46ba52
cmp dword [ebp - 0x18], 4
jne 0x46ba52
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46ba52
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x46ba52
push 0x20000
call fcn.005383bb
add esp, 4
lea ecx, [ebp - 0x10]
push eax
call fcn.0046b020
mov dword [ebp - 4], 6
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0x10000
push dword [ebp - 0x10]
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0x103
jne 0x46ba43
lea eax, [edi - 1]
cmp eax, 0xfffe
ja 0x46ba43
xor edx, edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x3c], edx
mov ecx, 0x6cca60
mov eax, dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0x4000000
cmovne ecx, edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 0x34], edx
mov byte [ebp - 0x2d], 2
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0046c2d0
mov ebx, eax
xor esi, esi
lea esp, [esp]
mov eax, dword [esi + 0x7a91e4]
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4c]
push 0x6d2630
push eax
call fcn.0049e1d0
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 8
cmp byte [ecx + 0xf], 0
jge 0x46b989
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x6cca60
cmovne eax, ecx
push eax
push ebx
call fcn.00530bf0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 7
test byte [ebp - 0x3d], 0x80
je 0x46b9bc
call fcn.00521c10
push 0
push dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
test edi, edi
je 0x46b9de
mov eax, edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jge 0x46b9de
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.0049a2e0
add esp, 4
test al, al
jne 0x46bb6c
add esi, 4
cmp esi, 0x1c
jb 0x46b960
mov byte [ebp - 4], 6
cmp byte [ebp - 0x30], 0
je 0x46b9ff
push dword [ebp - 0x3c]
call fcn.005383c4
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46ba10
push dword [ebp - 0x38]
call fcn.005383c4
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46ba21
push dword [ebp - 0x34]
call fcn.005383c4
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0046b090
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x6cf3f4
push reloc.WS2_32.dll_bind
call ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp + 8]
test eax, eax
jne 0x46bcf1
push dword [ebp + 0xc]
push edi
push str.InstallPath
push dword [ebp - 0x14]
call fcn.0046bf50
add esp, 0x10
mov esi, eax
push dword [ebp - 0x14]
call ebx
test esi, esi
jne 0x46bcf1
xor ebx, ebx
lea esp, [esp]
mov esi, dword [ebx + 0x7a91e4]
lea eax, [ebp - 0x4c]
push esi
push edi
push 0x6d2668
push eax
mov dword [ebp - 0x28], esi
call fcn.0049e1d0
add esp, 0x10
mov dword [ebp - 4], 0xa
test byte [ebp - 0x3d], 0x80
je 0x46bbf6
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x46bbf9
mov eax, 0x6cca60
jmp 0x46bbf9
mov esi, dword [ebp + 8]
sub edi, ebx
push edi
push ebx
push esi
call fcn.0053a4d0
add esp, 0xc
mov byte [edi + esi], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x30], 0
je 0x46bb0b
push dword [ebp - 0x3c]
call fcn.005383c4
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46bb1c
push dword [ebp - 0x38]
call fcn.005383c4
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46bb2d
push dword [ebp - 0x34]
call fcn.005383c4
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0046b090
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
sub edi, ebx
push edi
push ebx
push esi
call fcn.0053a4d0
add esp, 0xc
mov byte [edi + esi], 0
mov byte [ebp - 4], 6
cmp byte [ebp - 0x30], 0
je 0x46bb95
push dword [ebp - 0x3c]
call fcn.005383c4
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46bba6
push dword [ebp - 0x38]
call fcn.005383c4
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46bbb7
push dword [ebp - 0x34]
call fcn.005383c4
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0046b090
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]
test eax, eax
mov dword [ebp - 0x3c], 0
mov edi, 0x6cca60
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 0x3c], 0
cmovne edi, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x2d], 4
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 0xb
test edi, edi
jne 0x46bc79
push 4
push edi
push edi
push edi
mov byte [ebp - 0x30], 1
call fcn.00534900
mov esi, eax
push esi
call fcn.005383bb
push 0
mov edi, eax
push esi
push edi
push 0
mov dword [ebp - 0x3c], edi
call fcn.00534900
mov esi, dword [ebp - 0x28]
add esp, 0x24
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.0049a2e0
add esp, 4
test al, al
jne 0x46bd7d
mov byte [ebp - 4], 0xa
cmp byte [ebp - 0x30], al
je 0x46bca0
push edi
call fcn.005383c4
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 4], 0xffffffff
test byte [ebp - 0x3d], 0x80
je 0x46bcdc
call fcn.00521c10
push 0
push dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov edi, dword [ebp + 8]
add ebx, 4
cmp ebx, 0x1c
jb 0x46baa0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.005269a0
test al, al
je 0x46becc
lea eax, [ebp - 0x14]
push eax
push 0x201
push 0
push 0x6cf3f4
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46becc
push dword [ebp + 0xc]
push edi
push str.InstallPath
push dword [ebp - 0x14]
call fcn.0046bf50
add esp, 0x10
mov esi, eax
push dword [ebp - 0x14]
call ebx
test esi, esi
jne 0x46becc
xor ebx, ebx
mov esi, dword [ebx + 0x7a91e4]
lea eax, [ebp - 0x4c]
push esi
push edi
push 0x6d2668
push eax
mov dword [ebp - 0x28], esi
call fcn.0049e1d0
add esp, 0x10
mov dword [ebp - 4], 0xe
test byte [ebp - 0x3d], 0x80
je 0x46bddd
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x46bde0
mov eax, 0x6cca60
jmp 0x46bde0
mov byte [ebp - 4], 0xa
cmp byte [ebp - 0x30], 0
je 0x46bd90
push edi
call fcn.005383c4
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x3d], 0
jge 0x46bdca
call fcn.00521c10
push 0
push dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, esi
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]
test eax, eax
mov dword [ebp - 0x3c], 0
mov edi, 0x6cca60
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 0x3c], 0
cmovne edi, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x2d], 4
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 0xf
test edi, edi
jne 0x46be60
push 4
push edi
push edi
push edi
mov byte [ebp - 0x30], 1
call fcn.00534900
mov esi, eax
push esi
call fcn.005383bb
push 0
mov edi, eax
push esi
push edi
push 0
mov dword [ebp - 0x3c], edi
call fcn.00534900
mov esi, dword [ebp - 0x28]
add esp, 0x24
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.0049a2e0
add esp, 4
test al, al
jne 0x46bedf
mov byte [ebp - 4], 0xe
cmp byte [ebp - 0x30], al
je 0x46be83
push edi
call fcn.005383c4
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 4], 0xffffffff
test byte [ebp - 0x3d], 0x80
je 0x46bebd
call fcn.00521c10
push 0
push dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edi, dword [ebp + 8]
add ebx, 4
cmp ebx, 0x1c
jb 0x46bd46
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 0xe
cmp byte [ebp - 0x30], 0
je 0x46bef2
push edi
call fcn.005383c4
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
jmp 0x46bdac