Function at 0x10002ef0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a950
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10040014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, edx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
lea esi, [ecx + 2]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002f45
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.100035b0
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10001e90
mov esi, eax
cmp esi, 0x100408a0
je 0x10002fae
mov ecx, 0x100408a0
call fcn.100034b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [0x100408a0], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x100408b0], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10002fe8
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10002fde
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100031d4
push edx
push ecx
call fcn.100104a1
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x1000303d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10003033
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100031d9
push edx
push ecx
call fcn.100104a1
add esp, 8
mov ecx, edi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003056
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.100035b0
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10001e90
mov esi, eax
cmp esi, 0x100408b8
je 0x100030bf
mov ecx, 0x100408b8
call fcn.100034b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [0x100408b8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x100408c8], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x100030f9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100030ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100031de
push edx
push ecx
call fcn.100104a1
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x1000314e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10003144
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100031e3
push edx
push ecx
call fcn.100104a1
add esp, 8
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x58]
push dword [ebp - 0x60]
call fcn.10001e20
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x10003167
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push eax
push str.STEAM_APP_ID
call esi
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x100031a5
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000319b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100031e8
push edx
push ecx
call fcn.100104a1
add esp, 8
cmp byte [ebp + 0x18], 0
je 0x100031b7
push 0x10039230
push str.STEAM_OFFLINE
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10010460
mov esp, ebp
pop ebp
ret 0x14
call fcn.10016a39
call fcn.10016a39
call fcn.10016a39
call fcn.10016a39
call fcn.10016a39
int3