Function at 0x4151c0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x41c]
push edi
push 0x208
push 0
push eax
mov edi, edx
mov byte [esi], 0
mov ebx, ecx
call fcn.0041f350
add esp, 0xc
lea eax, [ebp - 0x41c]
push edi
push str._sdumps
push 0xffffffffffffffff
push 0x104
push eax
call fcn.00401640
add esp, 0x14
cmp eax, 0xffffffff
jne 0x41523d
push str.Unable_to_build_breakpad_path__n
mov ecx, 0xc
call fcn.00414e80
add esp, 4
mov byte [esi], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x41c]
push eax
push str.BREAKPAD_DUMP_LOCATION
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push str.SteamPath
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.0041f350
add esp, 0xc
lea eax, [ebp - 0x214]
push ebx
push 0x44a9fc
push 0xffffffffffffffff
push 0x104
push eax
call fcn.00401640
add esp, 0x14
cmp eax, 0xffffffff
jne 0x415299
push str.Unable_to_build_PlatformMutex_path_n
jmp 0x41521c
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0042a311
xorps xmm0, xmm0
lea esi, [ebp - 0x214]
add esp, 8
lea ecx, [esi + 2]
movups xmmword [ebp - 0x434], xmm0
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4152c0
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x415498
nop dword [eax + eax]
cmp esi, 7
ja 0x41531d
mov dword [ebp - 0x424], esi
lea eax, [ebp - 0x214]
add esi, esi
mov dword [ebp - 0x420], 7
push esi
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.0041edd0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x434], ax
jmp 0x4153c1
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x415367
mov eax, 0x7fffffff
mov edi, 0x7ffffffe
add eax, eax
cmp eax, 0x1000
jb 0x415388
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x415493
push ecx
lfence
call fcn.0041b556
add esp, 4
test eax, eax
je 0x41549d
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x415396
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x415493
nop
add eax, eax
jne 0x415336
xor ebx, ebx
jmp 0x415396
push eax
lfence
call fcn.0041b556
add esp, 4
mov ebx, eax
mov dword [ebp - 0x424], esi
lea eax, [ebp - 0x214]
add esi, esi
mov dword [ebp - 0x434], ebx
push esi
push eax
push ebx
mov dword [ebp - 0x420], edi
call fcn.0041edd0
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
mov edx, dword [ebp - 0x420]
lea ecx, [ebp - 0x434]
mov esi, dword [ebp - 0x434]
cmp edx, 7
mov eax, dword [ebp - 0x424]
cmova ecx, esi
lea ecx, [ecx + eax*2]
lea eax, [ebp - 0x434]
cmova eax, esi
cmp eax, ecx
je 0x415410
mov edx, 0x2f
cmp word [eax], 0x5c
jne 0x4153fd
mov word [eax], dx
add eax, 2
cmp eax, ecx
jne 0x4153f4
mov edx, dword [ebp - 0x420]
mov esi, dword [ebp - 0x434]
cmp edx, 7
lea eax, [ebp - 0x434]
cmova eax, esi
push eax
push str.ValvePlatformMutex
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x44ab7c
push 0x452cdc
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword ds:[ebp - 0x420]
cmp ecx, 7
jbe 0x41522c
mov edx, dword ds:[ebp - 0x434]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x415478
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41549d
push ecx
push edx
call fcn.0041b836
mov ecx, dword [ebp - 8]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
call fcn.00403d50
call fcn.00403e00
nop dword [eax]
call fcn.00429831
int3