Function at 0x46ba20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d50d5
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 0x46c2cc
cmp dword [ebp + 0xc], 0
je 0x46c2cc
push 0x20000
mov byte [eax], 0
call fcn.0054a91b
add esp, 4
mov dword [ebp - 0x10], 0
mov esi, eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x46ba99
push str.m_p__NULL
push 0x46
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier1_smartptr.h
call fcn.00534490
add esp, 0xc
test al, al
jne 0x46ba99
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 0x46bbf1
xor edx, edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x3c], edx
mov ecx, 0x6e0a80
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.0046c6e0
mov ebx, eax
xor esi, esi
mov eax, dword [esi + 0x7c71bc]
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push 0x6e6628
push eax
call fcn.0049eb40
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 3
cmp byte [ecx + 0xf], 0
jge 0x46bb3d
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x6e0a80
cmovne eax, ecx
push eax
push ebx
call fcn.00542ff0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 2
test byte [ebp - 0x3d], 0x80
je 0x46bb70
call fcn.00534050
push 0
push dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
test edi, edi
je 0x46bb92
mov eax, edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jge 0x46bb92
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.0049a950
add esp, 4
test al, al
jne 0x46bee2
add esi, 4
cmp esi, 0x1c
jb 0x46bb14
mov byte [ebp - 4], 1
cmp byte [ebp - 0x30], 0
je 0x46bbb3
push dword [ebp - 0x3c]
call fcn.0054a924
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46bbc4
push dword [ebp - 0x38]
call fcn.0054a924
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46bbd5
push dword [ebp - 0x34]
call fcn.0054a924
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.0054a924
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
push 2
push eax
mov dword [ebp - 0x10], 0
call fcn.0054a90d
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 connect
call ebx
test eax, eax
jne 0x46be52
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 0x6e6650
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46be52
cmp dword [ebp - 0x18], 4
jne 0x46be52
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46be52
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x46be52
push 0x20000
call fcn.0054a91b
add esp, 4
lea ecx, [ebp - 0x10]
push eax
call fcn.0046b3e0
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 0x46be43
lea eax, [edi - 1]
cmp eax, 0xfffe
ja 0x46be43
xor edx, edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x3c], edx
mov ecx, 0x6e0a80
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.0046c6e0
mov ebx, eax
xor esi, esi
lea esp, [esp]
mov eax, dword [esi + 0x7c71bc]
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4c]
push 0x6e6628
push eax
call fcn.0049eb40
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 8
cmp byte [ecx + 0xf], 0
jge 0x46bd89
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x6e0a80
cmovne eax, ecx
push eax
push ebx
call fcn.00542ff0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 7
test byte [ebp - 0x3d], 0x80
je 0x46bdbc
call fcn.00534050
push 0
push dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
test edi, edi
je 0x46bdde
mov eax, edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jge 0x46bdde
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.0049a950
add esp, 4
test al, al
jne 0x46bf6c
add esi, 4
cmp esi, 0x1c
jb 0x46bd60
mov byte [ebp - 4], 6
cmp byte [ebp - 0x30], 0
je 0x46bdff
push dword [ebp - 0x3c]
call fcn.0054a924
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46be10
push dword [ebp - 0x38]
call fcn.0054a924
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46be21
push dword [ebp - 0x34]
call fcn.0054a924
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.0046b490
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x6e33a4
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 0x46c0f1
push dword [ebp + 0xc]
push edi
push str.InstallPath
push dword [ebp - 0x14]
call fcn.0046c350
add esp, 0x10
mov esi, eax
push dword [ebp - 0x14]
call ebx
test esi, esi
jne 0x46c0f1
xor ebx, ebx
lea esp, [esp]
mov esi, dword [ebx + 0x7c71bc]
lea eax, [ebp - 0x4c]
push esi
push edi
push 0x6e6660
push eax
mov dword [ebp - 0x28], esi
call fcn.0049eb40
add esp, 0x10
mov dword [ebp - 4], 0xa
test byte [ebp - 0x3d], 0x80
je 0x46bff6
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x46bff9
mov eax, 0x6e0a80
jmp 0x46bff9
mov esi, dword [ebp + 8]
sub edi, ebx
push edi
push ebx
push esi
call fcn.0054ca20
add esp, 0xc
mov byte [edi + esi], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x30], 0
je 0x46bf0b
push dword [ebp - 0x3c]
call fcn.0054a924
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46bf1c
push dword [ebp - 0x38]
call fcn.0054a924
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46bf2d
push dword [ebp - 0x34]
call fcn.0054a924
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.0046b490
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.0054ca20
add esp, 0xc
mov byte [edi + esi], 0
mov byte [ebp - 4], 6
cmp byte [ebp - 0x30], 0
je 0x46bf95
push dword [ebp - 0x3c]
call fcn.0054a924
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46bfa6
push dword [ebp - 0x38]
call fcn.0054a924
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46bfb7
push dword [ebp - 0x34]
call fcn.0054a924
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.0046b490
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, 0x6e0a80
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 0x46c079
push 4
push edi
push edi
push edi
mov byte [ebp - 0x30], 1
call fcn.00546e10
mov esi, eax
push esi
call fcn.0054a91b
push 0
mov edi, eax
push esi
push edi
push 0
mov dword [ebp - 0x3c], edi
call fcn.00546e10
mov esi, dword [ebp - 0x28]
add esp, 0x24
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.0049a950
add esp, 4
test al, al
jne 0x46c17d
mov byte [ebp - 4], 0xa
cmp byte [ebp - 0x30], al
je 0x46c0a0
push edi
call fcn.0054a924
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 0x46c0dc
call fcn.00534050
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 0x46bea0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00539a70
test al, al
je 0x46c2cc
lea eax, [ebp - 0x14]
push eax
push 0x201
push 0
push 0x6e33a4
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46c2cc
push dword [ebp + 0xc]
push edi
push str.InstallPath
push dword [ebp - 0x14]
call fcn.0046c350
add esp, 0x10
mov esi, eax
push dword [ebp - 0x14]
call ebx
test esi, esi
jne 0x46c2cc
xor ebx, ebx
mov esi, dword [ebx + 0x7c71bc]
lea eax, [ebp - 0x4c]
push esi
push edi
push 0x6e6660
push eax
mov dword [ebp - 0x28], esi
call fcn.0049eb40
add esp, 0x10
mov dword [ebp - 4], 0xe
test byte [ebp - 0x3d], 0x80
je 0x46c1dd
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x46c1e0
mov eax, 0x6e0a80
jmp 0x46c1e0
mov byte [ebp - 4], 0xa
cmp byte [ebp - 0x30], 0
je 0x46c190
push edi
call fcn.0054a924
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 0x46c1ca
call fcn.00534050
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, 0x6e0a80
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 0x46c260
push 4
push edi
push edi
push edi
mov byte [ebp - 0x30], 1
call fcn.00546e10
mov esi, eax
push esi
call fcn.0054a91b
push 0
mov edi, eax
push esi
push edi
push 0
mov dword [ebp - 0x3c], edi
call fcn.00546e10
mov esi, dword [ebp - 0x28]
add esp, 0x24
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.0049a950
add esp, 4
test al, al
jne 0x46c2df
mov byte [ebp - 4], 0xe
cmp byte [ebp - 0x30], al
je 0x46c283
push edi
call fcn.0054a924
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 0x46c2bd
call fcn.00534050
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 0x46c146
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 0x46c2f2
push edi
call fcn.0054a924
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
jmp 0x46c1ac