Function at 0x1002d500
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.1001f340
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.1001f340
mov esi, eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov ebx, dword [eax]
mov dword [ebp - 0x1c], ebx
cmp ebx, dword [eax + 4]
je 0x1002d80d
nop dword [eax + eax]
mov edi, dword [ebx]
cmp dword [edi + 0xa4], 0
je 0x1002d58c
mov eax, dword [edi + 0xa0]
mov edi, dword [edi + 0xb0]
mov edi, dword [edi + eax*4]
jmp 0x1002d58e
xor edi, edi
test edi, edi
setne al
test al, al
je 0x1002d7f8
mov eax, dword [ebp + 8]
mov ebx, eax
lea edx, [eax + 0xb8]
lea ecx, [eax + 0x28]
nop dword [eax]
mov esi, dword [edi + 0xc]
movss xmm1, dword [0x1003d230]
push edx
movss dword [ebp - 0x10], xmm1
lea eax, [esi + 0x4c]
push eax
lea eax, [ebx + 0x68]
push eax
lea eax, [esi + 0x108]
push eax
lea eax, [ebx + 0x18]
push eax
lea eax, [esi + 0x70]
push eax
push ecx
lea eax, [esi + 0x88]
push eax
call fcn.10030ce0
test al, al
je 0x1002d626
xorps xmm0, xmm0
comiss xmm0, dword [esi + 0x24]
jbe 0x1002d5fc
movss xmm1, dword [0x1003d248]
jmp 0x1002d621
cmp dword [esi + 0x48], 0
lea ecx, [ebx + 0x2c]
setne al
test al, al
je 0x1002d612
mov edx, dword [esi + 0x48]
lea edx, [edx + 4]
jmp 0x1002d615
lea edx, [esi + 0x14]
call fcn.10020410
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [ebp - 0x10], xmm1
push ecx
lea eax, [edi + 8]
push eax
push dword [eax]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x100]
call fcn.1000b610
movss xmm0, dword [esi + 0x24]
mulss xmm0, dword [ebx + 0x4c]
comiss xmm0, xmm1
jbe 0x1002d73c
cmp dword [ebp - 0x18], 0
sete al
test al, al
je 0x1002d6ba
lea eax, [edi + 0xc]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x3c]
call fcn.100116c0
add esp, 4
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.100311f0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
call fcn.10031540
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x1002d7dd
add dword [esi + 0x20], 0xffffffff
jne 0x1002d7dd
mov ecx, esi
call fcn.1000c7c0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add esp, 4
jmp 0x1002d7dd
cmp dword [esi + 4], 0
lea esi, [edi + 8]
setne al
test al, al
je 0x1002d6dc
mov ecx, dword [ebx + 0x5c]
lea eax, [ebp - 0x54]
push esi
push esi
push eax
add ecx, 0x9c
call fcn.10031750
lea eax, [esi + 4]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.100116c0
add esp, 4
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.100311f0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10031540
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x1002d7dd
add dword [esi + 0x20], 0xffffffff
jne 0x1002d7dd
mov ecx, esi
call fcn.1000c7c0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add esp, 4
jmp 0x1002d7dd
mov esi, dword [ebp - 0x18]
test esi, esi
setne al
test al, al
je 0x1002d7dd
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx + 0x28]
push eax
push ecx
push str.DeletePlayer3DTextLabel__d___d_
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
call fcn.10002ef0
mov eax, dword [0x10042258]
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1002d79f
cmp eax, fcn.10003af0
jne 0x1002d7a9
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 0x1002d79a
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x1002d79f
mov eax, dword [ebp - 0x10]
jmp 0x1002d7a9
mov ecx, str.DeletePlayer3DTextLabel
call fcn.10003b00
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x68]
push ecx
push 0x10042278
mov dword [0x10042258], eax
mov dword [ebp - 0x68], 8
call eax
add esp, 8
lea ecx, [ebx + 0x100]
push dword [esi]
push esi
call fcn.1001f3b0
mov edi, dword [edi]
lea ecx, [ebx + 0x28]
test edi, edi
lea edx, [ebx + 0xb8]
setne al
test al, al
jne 0x1002d5b0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
cmp ebx, dword [eax + 4]
jne 0x1002d570
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
mov edi, dword [eax]
cmp edi, eax
je 0x1002dce1
mov ebx, dword [ebp + 8]
nop dword [eax]
mov eax, dword [ebx + 0x108]
cmp eax, dword [ebx + 0xc]
jne 0x1002db3d
mov ecx, dword [esi]
cmp esi, ecx
je 0x1002db3d
mov bl, byte [esi + 0xd]
mov eax, esi
test bl, bl
je 0x1002d847
mov eax, dword [esi + 8]
jmp 0x1002d88c
cmp byte [ecx + 0xd], 0
jne 0x1002d86d
mov eax, ecx
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
jne 0x1002d88c
nop dword [eax + eax]
mov eax, edx
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
je 0x1002d860
jmp 0x1002d88c
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002d885
cmp eax, dword [edx]
jne 0x1002d885
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1002d876
cmp byte [eax + 0xd], 0
cmove eax, edx
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [0x1003d1b0]
jbe 0x1002db3a
mov eax, esi
test bl, bl
je 0x1002d8a9
mov eax, dword [esi + 8]
jmp 0x1002d8ec
cmp byte [ecx + 0xd], 0
jne 0x1002d8cd
mov eax, ecx
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
jne 0x1002d8ec
nop word [eax + eax]
mov eax, edx
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
je 0x1002d8c0
jmp 0x1002d8ec
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002d8e5
cmp eax, dword [edx]
jne 0x1002d8e5
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1002d8d6
cmp byte [eax + 0xd], 0
cmove eax, edx
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [edi + 0x10]
jbe 0x1002db3a
mov eax, esi
test bl, bl
je 0x1002d906
mov ecx, dword [esi + 8]
jmp 0x1002d948
cmp byte [ecx + 0xd], 0
jne 0x1002d922
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x1002d948
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x1002d915
jmp 0x1002d948
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002d93f
nop dword [eax + eax]
cmp eax, dword [edx]
jne 0x1002d93f
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1002d930
cmp byte [eax + 0xd], 0
mov ecx, eax
cmove ecx, edx
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 8]
add eax, 0x44
add ecx, 0x100
push ecx
push eax
push dword [eax]
lea eax, [ebp - 0x24]
push eax
call fcn.1000b610
mov ebx, dword [ebp - 0x24]
test ebx, ebx
setne al
test al, al
je 0x1002da0b
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
push eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ecx + 0x28]
push ecx
push str.DeletePlayer3DTextLabel__d___d_
mov dword [ebp - 0x20], ecx
call fcn.10002ef0
mov eax, dword [0x10042258]
add esp, 0xc
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1002d9ca
cmp eax, fcn.10003af0
jne 0x1002d9d4
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 0x1002d9c5
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x1002d9ca
mov eax, dword [ebp + 0xc]
jmp 0x1002d9d4
mov ecx, str.DeletePlayer3DTextLabel
call fcn.10003b00
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x68]
push ecx
push 0x10042278
mov dword [0x10042258], eax
mov dword [ebp - 0x68], 8
call eax
mov ecx, dword [ebp + 8]
add esp, 8
push dword [ebx]
lea ecx, [ecx + 0x100]
push ebx
call fcn.1001f3b0
mov bl, byte [esi + 0xd]
mov ecx, esi
test bl, bl
je 0x1002da19
mov eax, dword [esi + 8]
jmp 0x1002da5e
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x1002da3d
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x1002da5e
nop word [eax + eax]
mov eax, ecx
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x1002da30
jmp 0x1002da5e
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002da55
cmp ecx, dword [edx]
jne 0x1002da55
mov ecx, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1002da46
cmp byte [ecx + 0xd], 0
mov eax, ecx
cmove eax, edx
mov eax, dword [eax + 0x14]
cmp dword [eax + 4], 0
setne al
test al, al
je 0x1002dad8
mov ecx, esi
test bl, bl
je 0x1002da77
mov eax, dword [esi + 8]
jmp 0x1002dabe
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x1002da9d
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x1002dabe
nop dword [eax + eax]
mov eax, ecx
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x1002da90
jmp 0x1002dabe
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002dab5
cmp ecx, dword [edx]
jne 0x1002dab5
mov ecx, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1002daa6
cmp byte [ecx + 0xd], 0
mov eax, ecx
cmove eax, edx
mov ebx, dword [ebp + 8]
mov eax, dword [eax + 0x14]
add eax, 0x44
push eax
mov ecx, dword [ebx + 0x5c]
add ecx, 0x9c
call fcn.10030db0
jmp 0x1002dadb
mov ebx, dword [ebp + 8]
cmp byte [esi + 0xd], 0
je 0x1002dae6
mov eax, dword [esi + 8]
jmp 0x1002db28
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x1002db04
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x1002db28
mov eax, ecx
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x1002daf7
jmp 0x1002db28
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], 0
jne 0x1002db1f
nop dword [eax]
cmp esi, dword [ecx]
jne 0x1002db1f
mov esi, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x1002db10
cmp byte [esi + 0xd], 0
mov eax, esi
cmove eax, ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1002ef90
mov esi, dword [ebp - 0x2c]
jmp 0x1002db3d
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x108]
cmp eax, dword [ebx + 0x24]
je 0x1002dcde
mov ecx, dword [edi + 0x14]
lea esi, [edi + 0x14]
cmp dword [ecx + 0x48], 0
setne al
test al, al
je 0x1002db68
mov eax, dword [ecx + 0x48]
mov edx, dword [eax + 0x14]
mov dword [ebp + 0xc], edx
jmp 0x1002db6f
mov dword [ebp + 0xc], 0xffff
cmp dword [ecx + 0x48], 0
setne al
test al, al
je 0x1002db81
mov eax, dword [ecx + 0x48]
mov ebx, dword [eax]
jmp 0x1002db86
mov ebx, 0xffff
cmp dword [ecx + 0x40], 0x10
lea edx, [ecx + 0x2c]
jb 0x1002db91
mov edx, dword [edx]
movzx eax, byte [ecx + 0x28]
movss xmm0, dword [ecx + 0xc]
movss xmm3, dword [ecx + 0x14]
push eax
push dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
sub esp, 0xc
movss dword [esp + 8], xmm0
movss xmm0, dword [ecx + 0x1c]
movss dword [esp + 4], xmm0
movss xmm0, dword [ecx + 0x18]
movss dword [esp], xmm0
push dword [ecx + 8]
mov ecx, dword [ebx + 0x28]
call fcn.10006ce0
add esp, 0x1c
cmp eax, 0xffff
je 0x1002dcd5
mov ecx, dword [esi]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push eax
mov ecx, dword [ecx + 0x44]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x3c], ecx
lea ecx, [ebx + 0x100]
push eax
call fcn.10031610
mov edx, dword [esi]
cmp dword [edx + 4], 0
setne al
test al, al
je 0x1002dc86
push esi
add edx, 0x44
lea ecx, [ebp - 0x44]
call fcn.100116c0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [eax + 4], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
mov ecx, dword [ebx + 0x5c]
push eax
push eax
lea eax, [ebp - 0x54]
add ecx, 0x9c
push eax
call fcn.10012680
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1002dc64
add dword [esi + 0x20], 0xffffffff
jne 0x1002dc64
mov ecx, esi
call fcn.1000c7c0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add esp, 4
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x1002dc86
add dword [esi + 0x20], 0xffffffff
jne 0x1002dc86
mov ecx, esi
call fcn.1000c7c0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add esp, 4
cmp byte [edi + 0xd], 0
jne 0x1002dcc7
mov eax, dword [edi + 8]
cmp byte [eax + 0xd], 0
jne 0x1002dcac
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
jne 0x1002dcc7
nop
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
je 0x1002dca0
jmp 0x1002dcc7
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x1002dcc5
cmp edi, dword [eax + 8]
jne 0x1002dcc5
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1002dcb5
mov edi, eax
mov esi, dword [ebp - 0x2c]
cmp edi, dword [ebp - 0x34]
jne 0x1002d820
jmp 0x1002dce1
mov eax, dword [ebx + 0x108]
mov esi, dword [ebp - 0x2c]
mov dword [ebx + 0xc], eax
push esi
push dword [esi]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1002fd10
push dword [ebp - 0x2c]
call fcn.100364d1
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
add esp, 4
push eax
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.1002fd10
push dword [ebp - 0x34]
call fcn.100364d1
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8