Function at 0x469130
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47947b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x14c
mov eax, dword [0x4902d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x158]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
mov dword [ebp - 0x124], esi
push closesocket
mov dword [ebp - 0x124], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4691cf
xorps xmm0, xmm0
mov dword [ebp - 0x144], 0
push 0x1d
movups xmmword [ebp - 0x154], xmm0
mov dword [ebp - 0x140], 0
push str.Steam_registry_key_not_found.
jmp 0x469267
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push str.SteamPath
push dword [ebp - 0x158]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x158]
test eax, eax
je 0x469229
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
mov dword [ebp - 0x144], 0
push 0x2a
movups xmmword [ebp - 0x154], xmm0
mov dword [ebp - 0x140], 0
push str.SteamPath_value_not_found_in_the_registry.
jmp 0x469267
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
mov dword [ebp - 0x144], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x140], 0
movups xmmword [ebp - 0x154], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x469256
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x154]
call fcn.00437fe0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x154]
cmp dword [ebp - 0x140], 0x10
cmovae eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46945e
test al, 0x10
je 0x46945e
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.00469dc0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x13c]
cmp dword [ebp - 0x128], 0x10
cmovae eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46941a
test al, 0x10
je 0x46941a
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Found_Team_Fortress_2_folder:
call fcn.0046e8f0
cmp dword [ebp - 0x128], 0x10
lea edx, [ebp - 0x13c]
push dword [ebp - 0x12c]
cmovae edx, dword [ebp - 0x13c]
mov ecx, eax
call fcn.00471f30
add esp, 4
mov ecx, eax
push 0x46eb10
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp - 0x12c]
mov eax, closesocket
sub eax, ecx
cmp eax, 0xa
jb 0x4694db
cmp dword [ebp - 0x128], 0x10
lea eax, [ebp - 0x13c]
push 0xa
cmovae eax, dword [ebp - 0x13c]
push str.mismis_
push ecx
push eax
push ecx
push dword [ebp - 0x124]
mov ecx, esi
call fcn.0044d480
mov ecx, dword [ebp - 0x128]
cmp ecx, 0x10
jb 0x4693a4
mov edx, dword [ebp - 0x13c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46939a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4694d5
push ecx
push edx
call fcn.0047421c
add esp, 8
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0xf
mov byte [ebp - 0x13c], 0
cmp ecx, 0x10
jb 0x4693f9
mov edx, dword [ebp - 0x154]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4693ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4694d5
push ecx
push edx
call fcn.0047421c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00473fd7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Team_Fortress_2_folder_not_found.
call fcn.0046e8f0
push 0x46eb10
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x47d04e
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00437fe0
jmp 0x46936a
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Steam_install_folder_not_found.
call fcn.0046e8f0
push 0x46eb10
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x47d04e
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00437fe0
mov ecx, dword [ebp - 0x140]
cmp ecx, 0x10
jb 0x4693f9
mov edx, dword [ebp - 0x154]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4693ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4693ef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00435bd0
int3