Function at 0x10006800
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov eax, edx
mov dword [ebp - 0xc], ecx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
push eax
push ecx
push str.GetVehicleRotationQuat__d___f___f___f___f_
call fcn.100034d0
mov esi, dword [0x100594f0]
add esp, 0x18
test esi, esi
je 0x1000685b
cmp esi, fcn.100041f0
jne 0x10006867
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10006867
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x10006867
mov ecx, str.GetVehicleRotationQuat
call fcn.10004200
mov esi, eax
mov ecx, dword [0x100595f8]
mov eax, dword [0x10059688]
mov dword [0x100594f0], esi
shl eax, 2
lea esi, [ecx + 4]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], esi
cmp esi, eax
jl 0x100068a8
lea ecx, [esi + 0x40]
shr ecx, 2
call fcn.10003ec0
test eax, eax
jns 0x100068a8
mov eax, dword [ebp - 0x14]
mov esi, dword [0x100595f8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
jmp 0x100068ae
mov dword [0x100595f8], esi
mov eax, dword [0x10059688]
lea edi, [esi + 4]
shl eax, 2
cmp edi, eax
jl 0x100068da
lea ecx, [edi + 0x40]
shr ecx, 2
call fcn.10003ec0
test eax, eax
jns 0x100068da
mov esi, dword [ebp - 0x18]
mov edi, dword [0x100595f8]
mov dword [ebp - 8], esi
jmp 0x100068e0
mov dword [0x100595f8], edi
mov eax, dword [0x10059688]
lea ebx, [edi + 4]
shl eax, 2
cmp ebx, eax
jl 0x10006909
lea ecx, [ebx + 0x40]
shr ecx, 2
call fcn.10003ec0
test eax, eax
jns 0x10006909
mov edi, dword [ebp - 0x1c]
mov ebx, dword [0x100595f8]
jmp 0x1000690f
mov dword [0x100595f8], ebx
mov eax, dword [0x10059688]
lea ecx, [ebx + 4]
shl eax, 2
cmp ecx, eax
jl 0x10006935
add ecx, 0x40
shr ecx, 2
call fcn.10003ec0
test eax, eax
jns 0x10006932
mov ebx, dword [ebp - 0x20]
jmp 0x1000693b
lea ecx, [ebx + 4]
mov dword [0x100595f8], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
push 0x100595e0
mov dword [ebp - 0x38], 0x14
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ebx
call dword [0x100594f0]
mov edx, dword [ebp - 4]
mov esi, eax
mov ecx, dword [0x10059680]
add esp, 8
mov eax, dword [ebp - 0x10]
shr edx, 2
imul edx, dword [0x1005968c]
mov ecx, dword [edx + ecx]
mov edx, dword [ebp - 8]
mov dword [eax], ecx
mov ecx, edx
mov eax, dword [0x10059680]
shr ecx, 2
imul ecx, dword [0x1005968c]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov ecx, edi
mov eax, dword [0x10059680]
shr ecx, 2
imul ecx, dword [0x1005968c]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, ebx
mov eax, dword [0x10059680]
shr ecx, 2
imul ecx, dword [0x1005968c]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [0x100595f8]
cmp eax, ebx
cmovg eax, ebx
cmp eax, edi
cmovg eax, edi
cmp eax, edx
pop edi
cmovg eax, edx
cmp eax, dword [ebp - 4]
cmovg eax, dword [ebp - 4]
mov dword [0x100595f8], eax
xor eax, eax
test esi, esi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret