Function at 0x46b9e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d6f05
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 0x46c28c
cmp dword [ebp + 0xc], 0
je 0x46c28c
push 0x20000
mov byte [eax], 0
call fcn.0054d1fb
add esp, 4
mov dword [ebp - 0x10], 0
mov esi, eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x46ba59
push str.m_p__NULL
push 0x46
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier1_smartptr.h
call fcn.00536b70
add esp, 0xc
test al, al
jne 0x46ba59
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 0x46bbb1
xor edx, edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x3c], edx
mov ecx, 0x6e2a60
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.0046c6a0
mov ebx, eax
xor esi, esi
mov eax, dword [esi + 0x7c81ec]
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push 0x6e8688
push eax
call fcn.0049eb00
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 3
cmp byte [ecx + 0xf], 0
jge 0x46bafd
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x6e2a60
cmovne eax, ecx
push eax
push ebx
call fcn.005458d0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 2
test byte [ebp - 0x3d], 0x80
je 0x46bb30
call fcn.00536730
push 0
push dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
test edi, edi
je 0x46bb52
mov eax, edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jge 0x46bb52
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.0049a910
add esp, 4
test al, al
jne 0x46bea2
add esi, 4
cmp esi, 0x1c
jb 0x46bad4
mov byte [ebp - 4], 1
cmp byte [ebp - 0x30], 0
je 0x46bb73
push dword [ebp - 0x3c]
call fcn.0054d204
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46bb84
push dword [ebp - 0x38]
call fcn.0054d204
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46bb95
push dword [ebp - 0x34]
call fcn.0054d204
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.0054d204
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
push 2
push eax
mov dword [ebp - 0x10], 0
call fcn.0054d1ed
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 0x46be12
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 0x6e86b0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46be12
cmp dword [ebp - 0x18], 4
jne 0x46be12
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46be12
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x46be12
push 0x20000
call fcn.0054d1fb
add esp, 4
lea ecx, [ebp - 0x10]
push eax
call fcn.0046b3a0
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 0x46be03
lea eax, [edi - 1]
cmp eax, 0xfffe
ja 0x46be03
xor edx, edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x3c], edx
mov ecx, 0x6e2a60
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.0046c6a0
mov ebx, eax
xor esi, esi
lea esp, [esp]
mov eax, dword [esi + 0x7c81ec]
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4c]
push 0x6e8688
push eax
call fcn.0049eb00
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 8
cmp byte [ecx + 0xf], 0
jge 0x46bd49
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x6e2a60
cmovne eax, ecx
push eax
push ebx
call fcn.005458d0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 7
test byte [ebp - 0x3d], 0x80
je 0x46bd7c
call fcn.00536730
push 0
push dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
test edi, edi
je 0x46bd9e
mov eax, edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jge 0x46bd9e
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.0049a910
add esp, 4
test al, al
jne 0x46bf2c
add esi, 4
cmp esi, 0x1c
jb 0x46bd20
mov byte [ebp - 4], 6
cmp byte [ebp - 0x30], 0
je 0x46bdbf
push dword [ebp - 0x3c]
call fcn.0054d204
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46bdd0
push dword [ebp - 0x38]
call fcn.0054d204
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46bde1
push dword [ebp - 0x34]
call fcn.0054d204
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.0046b450
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x6e540c
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 0x46c0b1
push dword [ebp + 0xc]
push edi
push str.InstallPath
push dword [ebp - 0x14]
call fcn.0046c310
add esp, 0x10
mov esi, eax
push dword [ebp - 0x14]
call ebx
test esi, esi
jne 0x46c0b1
xor ebx, ebx
lea esp, [esp]
mov esi, dword [ebx + 0x7c81ec]
lea eax, [ebp - 0x4c]
push esi
push edi
push 0x6e86c0
push eax
mov dword [ebp - 0x28], esi
call fcn.0049eb00
add esp, 0x10
mov dword [ebp - 4], 0xa
test byte [ebp - 0x3d], 0x80
je 0x46bfb6
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x46bfb9
mov eax, 0x6e2a60
jmp 0x46bfb9
mov esi, dword [ebp + 8]
sub edi, ebx
push edi
push ebx
push esi
call fcn.0054f300
add esp, 0xc
mov byte [edi + esi], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x30], 0
je 0x46becb
push dword [ebp - 0x3c]
call fcn.0054d204
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46bedc
push dword [ebp - 0x38]
call fcn.0054d204
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46beed
push dword [ebp - 0x34]
call fcn.0054d204
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.0046b450
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.0054f300
add esp, 0xc
mov byte [edi + esi], 0
mov byte [ebp - 4], 6
cmp byte [ebp - 0x30], 0
je 0x46bf55
push dword [ebp - 0x3c]
call fcn.0054d204
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46bf66
push dword [ebp - 0x38]
call fcn.0054d204
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46bf77
push dword [ebp - 0x34]
call fcn.0054d204
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.0046b450
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, 0x6e2a60
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 0x46c039
push 4
push edi
push edi
push edi
mov byte [ebp - 0x30], 1
call fcn.005496f0
mov esi, eax
push esi
call fcn.0054d1fb
push 0
mov edi, eax
push esi
push edi
push 0
mov dword [ebp - 0x3c], edi
call fcn.005496f0
mov esi, dword [ebp - 0x28]
add esp, 0x24
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.0049a910
add esp, 4
test al, al
jne 0x46c13d
mov byte [ebp - 4], 0xa
cmp byte [ebp - 0x30], al
je 0x46c060
push edi
call fcn.0054d204
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 0x46c09c
call fcn.00536730
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 0x46be60
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0053c180
test al, al
je 0x46c28c
lea eax, [ebp - 0x14]
push eax
push 0x201
push 0
push 0x6e540c
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46c28c
push dword [ebp + 0xc]
push edi
push str.InstallPath
push dword [ebp - 0x14]
call fcn.0046c310
add esp, 0x10
mov esi, eax
push dword [ebp - 0x14]
call ebx
test esi, esi
jne 0x46c28c
xor ebx, ebx
mov esi, dword [ebx + 0x7c81ec]
lea eax, [ebp - 0x4c]
push esi
push edi
push 0x6e86c0
push eax
mov dword [ebp - 0x28], esi
call fcn.0049eb00
add esp, 0x10
mov dword [ebp - 4], 0xe
test byte [ebp - 0x3d], 0x80
je 0x46c19d
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x46c1a0
mov eax, 0x6e2a60
jmp 0x46c1a0
mov byte [ebp - 4], 0xa
cmp byte [ebp - 0x30], 0
je 0x46c150
push edi
call fcn.0054d204
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 0x46c18a
call fcn.00536730
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, 0x6e2a60
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 0x46c220
push 4
push edi
push edi
push edi
mov byte [ebp - 0x30], 1
call fcn.005496f0
mov esi, eax
push esi
call fcn.0054d1fb
push 0
mov edi, eax
push esi
push edi
push 0
mov dword [ebp - 0x3c], edi
call fcn.005496f0
mov esi, dword [ebp - 0x28]
add esp, 0x24
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.0049a910
add esp, 4
test al, al
jne 0x46c29f
mov byte [ebp - 4], 0xe
cmp byte [ebp - 0x30], al
je 0x46c243
push edi
call fcn.0054d204
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 0x46c27d
call fcn.00536730
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 0x46c106
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 0x46c2b2
push edi
call fcn.0054d204
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
jmp 0x46c16c