Function at 0x10005710
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov eax, ecx
mov dword [ebp - 0xc], edx
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp + 8]
push edx
push eax
push str.GetVehicleRotationQuat__d___f___f___f___f_
call fcn.10002ef0
mov esi, dword [0x100421b0]
add esp, 0x18
test esi, esi
je 0x1000576b
cmp esi, fcn.10003af0
jne 0x10005777
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 0x10005777
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x10005777
mov ecx, str.GetVehicleRotationQuat
call fcn.10003b00
mov esi, eax
mov ecx, dword [0x10042290]
mov eax, dword [0x10042320]
shl eax, 2
mov dword [0x100421b0], esi
lea ebx, [ecx + 4]
mov dword [ebp - 4], ecx
cmp ebx, eax
jl 0x100057b2
lea ecx, [ebx + 0x40]
shr ecx, 2
call fcn.100037c0
test eax, eax
jns 0x100057b2
mov eax, dword [ebp - 0x10]
mov ebx, dword [0x10042290]
mov dword [ebp - 4], eax
jmp 0x100057b8
mov dword [0x10042290], ebx
mov eax, dword [0x10042320]
lea edi, [ebx + 4]
shl eax, 2
cmp edi, eax
jl 0x100057e1
lea ecx, [edi + 0x40]
shr ecx, 2
call fcn.100037c0
test eax, eax
jns 0x100057e1
mov ebx, dword [ebp - 0x14]
mov edi, dword [0x10042290]
jmp 0x100057e7
mov dword [0x10042290], edi
mov eax, dword [0x10042320]
lea esi, [edi + 4]
shl eax, 2
cmp esi, eax
jl 0x10005810
lea ecx, [esi + 0x40]
shr ecx, 2
call fcn.100037c0
test eax, eax
jns 0x10005810
mov edi, dword [ebp - 0x18]
mov esi, dword [0x10042290]
jmp 0x10005816
mov dword [0x10042290], esi
mov eax, dword [0x10042320]
lea ecx, [esi + 4]
shl eax, 2
cmp ecx, eax
jl 0x1000583c
add ecx, 0x40
shr ecx, 2
call fcn.100037c0
test eax, eax
jns 0x10005839
mov esi, dword [ebp - 0x1c]
jmp 0x10005842
lea ecx, [esi + 4]
mov dword [0x10042290], ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push 0x10042278
mov dword [ebp - 0x34], 0x14
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
call dword [0x100421b0]
mov edx, dword [ebp - 4]
add esp, 8
mov ecx, edx
mov dword [ebp - 8], eax
shr ecx, 2
test ecx, ecx
jns 0x10005885
add ecx, dword [0x1004231c]
imul ecx, dword [0x10042324]
mov eax, dword [0x10042318]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov ecx, ebx
shr ecx, 2
test ecx, ecx
jns 0x100058a8
add ecx, dword [0x1004231c]
imul ecx, dword [0x10042324]
mov eax, dword [0x10042318]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov ecx, edi
shr ecx, 2
test ecx, ecx
jns 0x100058cb
add ecx, dword [0x1004231c]
imul ecx, dword [0x10042324]
mov eax, dword [0x10042318]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, esi
shr ecx, 2
test ecx, ecx
jns 0x100058ee
add ecx, dword [0x1004231c]
imul ecx, dword [0x10042324]
mov eax, dword [0x10042318]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [0x10042290]
cmp eax, esi
cmovg eax, esi
cmp eax, edi
cmovg eax, edi
cmp eax, ebx
pop edi
cmovg eax, ebx
cmp eax, edx
pop esi
cmovg eax, edx
mov dword [0x10042290], eax
xor eax, eax
cmp dword [ebp - 8], eax
pop ebx
setne al
mov esp, ebp
pop ebp
ret