Function at 0x46d0c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6db65d
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 0x46d914
cmp dword [ebp + 0xc], 0
je 0x46d914
push 0x20000
mov byte [eax], 0
call fcn.005519f1
add esp, 4
mov dword [ebp - 0x10], 0
mov esi, eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x46d139
push str.m_p__NULL
push 0x49
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1_smartptr.h
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x46d139
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 0x46d248
xor edx, edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x3c], edx
mov ecx, 0x6e7a86
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.0046dd20
mov ebx, eax
xor edi, edi
mov eax, dword [edi + 0x7cd270]
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push 0x6ed810
push eax
call fcn.0049f960
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 3
cmp byte [ecx + 0xf], 0
jge 0x46d1dd
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x6e7a86
cmovne eax, ecx
push eax
push ebx
call fcn.00549c00
add esp, 8
mov esi, eax
mov byte [ebp - 4], 2
test byte [ebp - 0x3d], 0x80
je 0x46d210
call fcn.0053aa60
push 0
push dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
test esi, esi
je 0x46d230
sub esi, ebx
cmp esi, dword [ebp + 0xc]
jge 0x46d230
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.0049bae0
add esp, 4
test al, al
jne 0x46d50f
add edi, 4
cmp edi, 0x1c
jb 0x46d1b4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00452590
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0
call fcn.005519fa
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
push 2
push eax
mov dword [ebp - 0x10], 0
call fcn.005519e3
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 0x46d489
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 0x6ed838
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46d489
cmp dword [ebp - 0x18], 4
jne 0x46d489
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46d489
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x46d489
push 0x20000
call fcn.005519f1
add esp, 4
mov dword [ebp - 0x10], 0
mov edi, eax
mov dword [ebp - 4], 6
cmp dword [ebp - 0x10], 0
je 0x46d337
push str.m_p__NULL
push 0x49
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1_smartptr.h
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x46d337
int3
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 7
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 0x46d47a
lea eax, [edi - 1]
cmp eax, 0xfffe
ja 0x46d47a
xor edx, edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x3c], edx
mov ecx, 0x6e7a86
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], 8
lea ecx, [ebp - 0x3c]
call fcn.0046dd20
mov ebx, eax
xor edi, edi
lea esp, [esp]
mov eax, dword [edi + 0x7cd270]
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4c]
push 0x6ed810
push eax
call fcn.0049f960
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 9
cmp byte [ecx + 0xf], 0
jge 0x46d409
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x6e7a86
cmovne eax, ecx
push eax
push ebx
call fcn.00549c00
add esp, 8
mov esi, eax
mov byte [ebp - 4], 8
test byte [ebp - 0x3d], 0x80
je 0x46d43c
call fcn.0053aa60
push 0
push dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
test esi, esi
je 0x46d45c
sub esi, ebx
cmp esi, dword [ebp + 0xc]
jge 0x46d45c
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.0049bae0
add esp, 4
test al, al
jne 0x46d597
add edi, 4
cmp edi, 0x1c
jb 0x46d3e0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.00452590
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0046ca60
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x6ea4f0
push reloc.WS2_32.dll_bind
call ebx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x46d710
push edi
push ebx
push str.InstallPath
push dword [ebp - 0x14]
call fcn.0046d9b0
add esp, 0x10
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46d710
mov edi, dword [esi + 0x7cd270]
lea eax, [ebp - 0x4c]
push edi
push ebx
push 0x6ed848
push eax
call fcn.0049f960
add esp, 0x10
mov dword [ebp - 4], 0xb
test byte [ebp - 0x3d], 0x80
je 0x46d61f
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
jne 0x46d622
mov ecx, 0x6e7a86
jmp 0x46d622
mov edi, dword [ebp + 8]
push esi
push ebx
push edi
call fcn.00553b80
add esp, 0xc
mov byte [esi + edi], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x30], 0
je 0x46d536
push dword [ebp - 0x3c]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46d547
push dword [ebp - 0x38]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46d558
push dword [ebp - 0x34]
call fcn.005519fa
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.0046ca60
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 edi, dword [ebp + 8]
push esi
push ebx
push edi
call fcn.00553b80
add esp, 0xc
mov byte [esi + edi], 0
mov byte [ebp - 4], 7
cmp byte [ebp - 0x30], 0
je 0x46d5be
push dword [ebp - 0x3c]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46d5cf
push dword [ebp - 0x38]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46d5e0
push dword [ebp - 0x34]
call fcn.005519fa
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.0046ca60
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 ecx, [ebp - 0x4c]
test ecx, ecx
mov dword [ebp - 0x3c], 0
mov eax, 0x6e7a86
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 0x3c], 0
cmovne eax, ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x2d], 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x3c]
call fcn.0046dd20
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.0049bae0
add esp, 4
test al, al
jne 0x46d7a4
mov byte [ebp - 4], 0xb
cmp byte [ebp - 0x30], al
je 0x46d6a3
push dword [ebp - 0x3c]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46d6b4
push dword [ebp - 0x38]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46d6c5
push dword [ebp - 0x34]
call fcn.005519fa
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 0x46d701
call fcn.0053aa60
push 0
push dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
add esi, 4
cmp esi, 0x1c
jb 0x46d4d0
mov edi, dword [ebp + 0xc]
call fcn.00540580
test al, al
je 0x46d914
lea eax, [ebp - 0x14]
push eax
push 0x201
push 0
push 0x6ea4f0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46d914
push edi
push ebx
push str.InstallPath
push dword [ebp - 0x14]
call fcn.0046d9b0
add esp, 0x10
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46d914
mov edi, dword [esi + 0x7cd270]
lea eax, [ebp - 0x4c]
push edi
push ebx
push 0x6ed848
push eax
call fcn.0049f960
add esp, 0x10
mov dword [ebp - 4], 0xf
test byte [ebp - 0x3d], 0x80
je 0x46d828
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
jne 0x46d82b
mov ecx, 0x6e7a86
jmp 0x46d82b
mov byte [ebp - 4], 0xb
cmp byte [ebp - 0x30], 0
je 0x46d7b9
push dword [ebp - 0x3c]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46d7ca
push dword [ebp - 0x38]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46d7db
push dword [ebp - 0x34]
call fcn.005519fa
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 0x46d815
call fcn.0053aa60
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 ecx, [ebp - 0x4c]
test ecx, ecx
mov dword [ebp - 0x3c], 0
mov eax, 0x6e7a86
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 0x3c], 0
cmovne eax, ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x2d], 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x3c]
call fcn.0046dd20
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.0049bae0
add esp, 4
test al, al
jne 0x46d927
mov byte [ebp - 4], 0xf
cmp byte [ebp - 0x30], al
je 0x46d8ac
push dword [ebp - 0x3c]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46d8bd
push dword [ebp - 0x38]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46d8ce
push dword [ebp - 0x34]
call fcn.005519fa
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 0x46d908
call fcn.0053aa60
push 0
push dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
add esi, 4
cmp esi, 0x1c
jb 0x46d765
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], 0xf
cmp byte [ebp - 0x30], 0
je 0x46d93c
push dword [ebp - 0x3c]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46d94d
push dword [ebp - 0x38]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46d95e
push dword [ebp - 0x34]
call fcn.005519fa
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x4000000
jmp 0x46d7f7