Function at 0x1002b590
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037e70
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 0x1002b7b0
push ebx
nop dword [eax]
mov esi, dword [edi]
cmp dword [esi + 0x2c], 0
je 0x1002b5f3
mov eax, dword [esi + 0x28]
mov esi, dword [esi + 0x38]
mov esi, dword [esi + eax*4]
jmp 0x1002b5f5
xor esi, esi
test esi, esi
setne al
test al, al
je 0x1002b79d
mov edi, dword [ebp + 8]
lea eax, [edi + 0xb8]
lea edx, [edi + 0x68]
lea ecx, [edi + 0x28]
mov ebx, dword [esi + 0xc]
movss xmm1, dword [0x1003d230]
push eax
movss dword [ebp - 0x10], xmm1
lea eax, [ebx + 0x28]
push eax
push edx
lea eax, [ebx + 0xe8]
push eax
lea eax, [edi + 0x18]
push eax
lea eax, [ebx + 0x4c]
push eax
push ecx
lea eax, [ebx + 0x68]
push eax
call fcn.10030ce0
test al, al
je 0x1002b68f
lea ecx, [edi + 0x84]
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 0x1002b68f
xorps xmm0, xmm0
comiss xmm0, dword [ebx + 0x24]
jbe 0x1002b678
movss xmm1, dword [0x1003d248]
jmp 0x1002b68a
lea edx, [ebx + 0x10]
lea ecx, [edi + 0x2c]
call fcn.10020410
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [ebp - 0x10], xmm1
movss xmm0, dword [ebx + 0x24]
mulss xmm0, dword [edi + 0x40]
comiss xmm0, xmm1
jbe 0x1002b6f3
lea eax, [esi + 0xc]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x34]
call fcn.100116a0
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.10031230
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1002b77f
add dword [ecx + 0x1c], 0xffffffff
jne 0x1002b77f
push ecx
call fcn.1000c750
jmp 0x1002b77f
mov eax, dword [esi + 8]
cmp eax, dword [edi + 0x60]
jne 0x1002b77f
mov eax, dword [edi + 0x28]
push eax
push str.DisablePlayerCheckpoint__d_
mov dword [ebp - 0x10], eax
call fcn.10002ef0
mov ebx, dword [0x10042220]
add esp, 8
test ebx, ebx
je 0x1002b745
cmp ebx, fcn.10003af0
jne 0x1002b751
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 0x1002b751
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x1002b751
mov ecx, str.DisablePlayerCheckpoint
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 [0x10042220], ebx
mov dword [ebp - 0x2c], 4
call ebx
add esp, 8
mov dword [edi], 0
mov dword [edi + 0x60], 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 0x1002b611
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
add edi, 4
mov dword [ebp - 0x14], edi
cmp edi, dword [eax + 4]
jne 0x1002b5e0
pop ebx
cmp dword [ebp - 0x20], 0
sete al
test al, al
jne 0x1002b85b
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 + 0x60]
cmp dword [eax + 8], ecx
je 0x1002b7ef
test ecx, ecx
je 0x1002b7e7
mov ecx, dword [esi + 0x28]
call fcn.10004de0
mov dword [esi], 0
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov dword [esi + 0x10], eax
mov edx, dword [edi]
cmp dword [edx + 4], 0
setne al
test al, al
je 0x1002b85b
push edi
add edx, 8
lea ecx, [ebp - 0x34]
call fcn.100116a0
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, 0x24
push eax
call fcn.10012ac0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1002b848
add dword [ecx + 0x1c], 0xffffffff
jne 0x1002b848
push ecx
call fcn.1000c750
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1002b85b
add dword [ecx + 0x1c], 0xffffffff
jne 0x1002b85b
push ecx
call fcn.1000c750
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
push eax
push dword [eax]
lea eax, [ebp + 0xc]
push eax
call fcn.100300d0
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