Function at 0x1000c800
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10031038
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10047410]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [0x10058ca0], edi
je 0x1000c851
mov eax, dword [ebp + 0xc]
mov esi, dword [0x1005895c]
push eax
push ebx
push str.SteamMountFilesystem___u___s__n
call fcn.10006df0
add esp, 0xc
push 0x10058838
mov dword [esp + 0x1c], 0x10058838
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x28], edi
mov eax, dword [0x10058d00]
cmp byte [eax], 0
jne 0x1000c87e
push 0xa
push eax
push ebx
call fcn.10020982
add esp, 0xc
mov eax, dword [0x10058854]
cmp eax, edi
je 0x1000ca9c
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
sar ecx, 2
test ecx, ecx
je 0x1000ca5d
mov edx, dword [eax + 4]
mov ecx, edx
mov esi, dword [ecx]
cmp ebx, dword [esi]
je 0x1000c8bc
mov esi, dword [eax + 8]
sub esi, edx
inc edi
sar esi, 2
add ecx, 4
cmp edi, esi
jb 0x1000c8a1
jmp 0x1000ca5d
test edi, edi
je 0x1000ca5d
mov eax, dword [0x10058d3c]
mov ecx, dword [edx + edi*4]
mov edx, dword [ecx + 4]
push 0
push eax
push edx
call fcn.1000baa0
add esp, 0xc
push ebx
call fcn.1000b8e0
mov eax, dword [0x10058854]
mov ebx, dword [eax + 4]
mov ecx, dword [ebx + edi*4]
mov edx, dword [ecx + 0x54]
sub edx, dword [ecx + 0x50]
add ecx, 0x50
sar edx, 2
add esp, 4
test edx, edx
je 0x1000c9cc
mov edx, dword [ecx + 4]
sub edx, dword [ecx]
xor ebx, ebx
sar edx, 2
test edx, edx
je 0x1000ca3c
cmp dword [0x10058ca0], 0
je 0x1000c947
cmp dword [0x10058cac], 0
je 0x1000c947
mov eax, dword [ecx]
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx]
mov esi, dword [0x1005895c]
push edx
push str.Loading_Default_Cache_Requirements_for_AppID__u__n
call fcn.10006df0
mov eax, dword [0x10058854]
add esp, 8
mov edx, dword [eax + 8]
sub edx, dword [eax + 4]
xor ecx, ecx
sar edx, 2
test edx, edx
je 0x1000c98f
mov edx, dword [eax + 4]
mov esi, dword [edx + edi*4]
mov esi, dword [esi + 0x50]
mov esi, dword [esi + ebx*4]
mov esi, dword [esi]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov edx, dword [edx]
mov esi, dword [esp + 0x14]
cmp esi, dword [edx]
je 0x1000c991
mov esi, dword [eax + 8]
sub esi, dword [eax + 4]
mov edx, dword [esp + 0x10]
inc ecx
add edx, 4
sar esi, 2
mov dword [esp + 0x10], edx
cmp ecx, esi
jb 0x1000c96c
xor ecx, ecx
mov eax, dword [eax + 4]
mov edx, dword [eax + edi*4]
mov eax, dword [edx + 0x50]
mov edx, dword [eax + ebx*4]
mov eax, dword [edx + 4]
push eax
push ecx
call fcn.1000bf20
mov eax, dword [0x10058854]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx + 0x54]
sub edx, dword [ecx + 0x50]
add ecx, 0x50
inc ebx
sar edx, 2
add esp, 8
cmp ebx, edx
jb 0x1000c915
jmp 0x1000ca3c
mov esi, dword [0x10058c98]
call fcn.1000b810
test eax, eax
je 0x1000ca02
mov ecx, dword [0x10058d3c]
mov edx, dword [ebx + eax*4]
mov eax, dword [edx + 4]
push 0
push ecx
push eax
call fcn.1000baa0
mov ecx, dword [0x10058c98]
add esp, 0xc
push ecx
call fcn.1000b8e0
add esp, 4
cmp dword [0x10058ca0], 0
je 0x1000ca2e
cmp dword [0x10058cac], 0
je 0x1000ca2e
mov edx, dword [0x10058d00]
mov esi, dword [0x1005895c]
push edx
push str.Loading_Default_Cache_Requirements_for_AppID__s__n
call fcn.10006df0
add esp, 8
push 0x1003e738
push edi
call fcn.1000bf20
add esp, 8
mov eax, dword [ebp + 8]
cmp eax, 0xd7
je 0x1000ca4d
cmp eax, 0xdc
jne 0x1000ca5d
push 0x1003eaf4
push str.SteamAppId
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp eax, ecx
je 0x1000ca71
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov byte [eax + 0xc], cl
mov dword [esp + 0x28], 0xffffffff
push 0x10058838
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x10058ca0], edi
je 0x1000cabf
cmp dword [0x10058cac], edi
je 0x1000cabf
mov esi, dword [0x1005895c]
push str.Error_retrieving_CDR_from_blob_file__n
call fcn.10006df0
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
mov dword [esp + 0x28], 0xffffffff
push 0x10058838
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret