Function at 0x1002d1c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037f40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.1001f340
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x14], edi
cmp edi, dword [eax + 4]
je 0x1002d3f0
push ebx
nop dword [eax]
mov esi, dword [edi]
cmp dword [esi + 0x8c], 0
je 0x1002d22c
mov eax, dword [esi + 0x88]
mov esi, dword [esi + 0x98]
mov esi, dword [esi + eax*4]
jmp 0x1002d22e
xor esi, esi
test esi, esi
setne al
test al, al
je 0x1002d3dd
mov edi, dword [ebp + 8]
lea eax, [edi + 0xb8]
lea edx, [edi + 0x68]
lea ecx, [edi + 0x28]
nop word [eax + eax]
mov ebx, dword [esi + 0xc]
movss xmm1, dword [0x1003d230]
push eax
movss dword [ebp - 0x10], xmm1
lea eax, [ebx + 0x38]
push eax
push edx
lea eax, [ebx + 0xf8]
push eax
lea eax, [edi + 0x18]
push eax
lea eax, [ebx + 0x5c]
push eax
push ecx
lea eax, [ebx + 0x78]
push eax
call fcn.10030ce0
test al, al
je 0x1002d2ce
lea ecx, [edi + 0x9c]
push ecx
lea eax, [esi + 8]
push eax
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.1000b610
cmp dword [ebp - 0x18], 0
sete al
test al, al
je 0x1002d2ce
xorps xmm0, xmm0
comiss xmm0, dword [ebx + 0x30]
jbe 0x1002d2b7
movss xmm1, dword [0x1003d248]
jmp 0x1002d2c9
lea edx, [ebx + 0x18]
lea ecx, [edi + 0x2c]
call fcn.10020410
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [ebp - 0x10], xmm1
movss xmm0, dword [ebx + 0x30]
mulss xmm0, dword [edi + 0x44]
comiss xmm0, xmm1
jbe 0x1002d332
lea eax, [esi + 0xc]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x34]
call fcn.100116e0
add esp, 4
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.100311f0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.10031480
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1002d3bf
add dword [ecx + 0x28], 0xffffffff
jne 0x1002d3bf
push ecx
call fcn.1000c670
jmp 0x1002d3bf
mov eax, dword [esi + 8]
cmp eax, dword [edi + 0x64]
jne 0x1002d3bf
mov eax, dword [edi + 0x28]
push eax
push str.DisablePlayerRaceCheckpoint__d_
mov dword [ebp - 0x10], eax
call fcn.10002ef0
mov ebx, dword [0x10042344]
add esp, 8
test ebx, ebx
je 0x1002d384
cmp ebx, fcn.10003af0
jne 0x1002d390
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 0x1002d390
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x1002d390
mov ecx, str.DisablePlayerRaceCheckpoint
call fcn.10003b00
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push 0x10042278
mov dword [0x10042344], ebx
mov dword [ebp - 0x2c], 4
call ebx
add esp, 8
mov dword [edi + 4], 0
mov dword [edi + 0x64], 0
mov esi, dword [esi]
lea ecx, [edi + 0x28]
test esi, esi
lea edx, [edi + 0x68]
setne al
test al, al
lea eax, [edi + 0xb8]
jne 0x1002d250
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
add edi, 4
mov dword [ebp - 0x14], edi
cmp edi, dword [eax + 4]
jne 0x1002d210
pop ebx
cmp dword [ebp - 0x20], 0
sete al
test al, al
jne 0x1002d49f
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [edi + 0x14]
add edi, 0x14
mov ecx, dword [esi + 0x64]
cmp dword [eax + 0x24], ecx
je 0x1002d430
test ecx, ecx
je 0x1002d428
mov ecx, dword [esi + 0x28]
call fcn.10004f90
mov dword [esi + 4], 0
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
mov dword [esi + 0x14], eax
mov edx, dword [edi]
cmp dword [edx + 4], 0
setne al
test al, al
je 0x1002d49f
push edi
add edx, 0x24
lea ecx, [ebp - 0x34]
call fcn.100116e0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov dword [eax + 4], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x5c]
push eax
push eax
lea eax, [ebp - 0x3c]
add ecx, 0x84
push eax
call fcn.10012790
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1002d48c
add dword [ecx + 0x28], 0xffffffff
jne 0x1002d48c
push ecx
call fcn.1000c670
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1002d49f
add dword [ecx + 0x28], 0xffffffff
jne 0x1002d49f
push ecx
call fcn.1000c670
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
push eax
push dword [eax]
lea eax, [ebp + 0xc]
push eax
call fcn.1002fe00
push dword [ebp - 0x24]
call fcn.100364d1
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8