Function at 0x1002c150
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037ef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call fcn.1001f340
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.1001f340
mov esi, eax
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov dword [ebp - 0x18], ebx
cmp ebx, dword [eax + 4]
je 0x1002c461
mov edi, dword [ebx]
cmp dword [edi + 0x5c], 0
je 0x1002c1cb
mov eax, dword [edi + 0x58]
mov edi, dword [edi + 0x68]
mov edi, dword [edi + eax*4]
jmp 0x1002c1cd
xor edi, edi
test edi, edi
setne al
test al, al
je 0x1002c44c
mov eax, dword [ebp + 8]
mov ebx, eax
lea edx, [eax + 0xb8]
lea ecx, [eax + 0x28]
nop dword [eax + eax]
mov esi, dword [edi + 0xc]
movss xmm1, dword [0x1003d230]
push edx
movss dword [ebp - 0x10], xmm1
lea eax, [esi + 0x5c]
push eax
lea eax, [ebx + 0x68]
push eax
lea eax, [esi + 0x118]
push eax
lea eax, [ebx + 0x18]
push eax
lea eax, [esi + 0x80]
push eax
push ecx
lea eax, [esi + 0x98]
push eax
call fcn.10030ce0
test al, al
je 0x1002c27d
xorps xmm0, xmm0
comiss xmm0, dword [esi + 0x38]
jbe 0x1002c23f
movss xmm1, dword [0x1003d248]
jmp 0x1002c278
cmp dword [esi + 0x3c], 0
lea ecx, [ebx + 0x2c]
setne al
test al, al
je 0x1002c269
mov edx, dword [esi + 0x3c]
lea edx, [edx + 0x14]
call fcn.10020410
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
addss xmm1, dword [0x1003d1c8]
jmp 0x1002c278
lea edx, [esi + 0x1c]
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 - 0x14]
push eax
lea ecx, [ebx + 0xe8]
call fcn.1000b610
movss xmm0, dword [esi + 0x38]
mulss xmm0, dword [ebx + 0x38]
comiss xmm0, xmm1
jbe 0x1002c390
cmp dword [ebp - 0x14], 0
sete al
test al, al
je 0x1002c311
lea eax, [edi + 0xc]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.100116e0
add esp, 4
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.100311f0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.100313b0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x1002c431
add dword [esi + 0x28], 0xffffffff
jne 0x1002c431
mov ecx, esi
call fcn.1000c860
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add esp, 4
jmp 0x1002c431
cmp dword [esi + 4], 0
lea esi, [edi + 8]
setne al
test al, al
je 0x1002c330
mov ecx, dword [ebx + 0x5c]
lea eax, [ebp - 0x30]
push esi
push esi
push eax
add ecx, 0x54
call fcn.10031970
lea eax, [esi + 4]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x48]
call fcn.100116e0
add esp, 4
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.100311f0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
call fcn.100313b0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x1002c431
add dword [esi + 0x28], 0xffffffff
jne 0x1002c431
mov ecx, esi
call fcn.1000c860
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add esp, 4
jmp 0x1002c431
mov esi, dword [ebp - 0x14]
test esi, esi
setne al
test al, al
je 0x1002c431
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx + 0x28]
push eax
push ecx
push str.DestroyPlayerObject__d___d_
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
call fcn.10002ef0
mov eax, dword [0x100421c0]
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1002c3f3
cmp eax, fcn.10003af0
jne 0x1002c3fd
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 0x1002c3ee
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x1002c3f3
mov eax, dword [ebp - 0x10]
jmp 0x1002c3fd
mov ecx, str.DestroyPlayerObject
call fcn.10003b00
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x6c]
push ecx
push 0x10042278
mov dword [0x100421c0], eax
mov dword [ebp - 0x6c], 8
call eax
add esp, 8
lea ecx, [ebx + 0xe8]
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 0x1002c1f0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
add ebx, 4
mov dword [ebp - 0x18], ebx
cmp ebx, dword [eax + 4]
jne 0x1002c1b8
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
mov edi, dword [eax]
mov dword [ebp - 0x14], edi
cmp edi, eax
je 0x1002cd3f
mov ebx, dword [ebp + 8]
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebx + 0xf0]
cmp eax, dword [ebx + 8]
jne 0x1002c798
mov ecx, dword [esi]
cmp esi, ecx
je 0x1002c798
mov dl, byte [esi + 0xd]
mov eax, esi
test dl, dl
je 0x1002c4a7
mov eax, dword [esi + 8]
jmp 0x1002c4ef
cmp byte [ecx + 0xd], 0
jne 0x1002c4cd
mov eax, ecx
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
jne 0x1002c4ec
nop dword [eax + eax]
mov eax, edx
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
je 0x1002c4c0
jmp 0x1002c4ec
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002c4e5
cmp eax, dword [edx]
jne 0x1002c4e5
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1002c4d6
cmp byte [eax + 0xd], 0
cmove eax, edx
mov dl, byte [esi + 0xd]
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [0x1003d1b0]
jbe 0x1002c798
mov eax, esi
test dl, dl
je 0x1002c50c
mov eax, dword [esi + 8]
jmp 0x1002c54f
cmp byte [ecx + 0xd], 0
jne 0x1002c52d
mov eax, ecx
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
jne 0x1002c54c
nop dword [eax]
mov eax, edx
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
je 0x1002c520
jmp 0x1002c54c
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002c545
cmp eax, dword [edx]
jne 0x1002c545
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1002c536
cmp byte [eax + 0xd], 0
cmove eax, edx
mov dl, byte [esi + 0xd]
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [edi + 0x10]
jbe 0x1002c798
mov eax, esi
test dl, dl
je 0x1002c569
mov ecx, dword [esi + 8]
jmp 0x1002c5ae
cmp byte [ecx + 0xd], 0
jne 0x1002c58d
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x1002c5ae
nop dword [eax + eax]
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x1002c580
jmp 0x1002c5ae
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002c5a5
cmp eax, dword [edx]
jne 0x1002c5a5
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1002c596
cmp byte [eax + 0xd], 0
mov ecx, eax
cmove ecx, edx
mov eax, dword [ecx + 0x14]
lea ecx, [ebx + 0xe8]
add eax, 0x14
mov dword [ebp - 0x24], ecx
push ecx
push eax
push dword [eax]
lea eax, [ebp - 0x20]
push eax
call fcn.1000b610
mov ebx, dword [ebp - 0x20]
test ebx, ebx
setne al
test al, al
je 0x1002c66b
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [eax + 0x28]
push eax
push str.DestroyPlayerObject__d___d_
mov dword [ebp - 0x1c], eax
call fcn.10002ef0
mov eax, dword [0x100421c0]
add esp, 0xc
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1002c630
cmp eax, fcn.10003af0
jne 0x1002c63a
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 0x1002c62b
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x1002c630
mov eax, dword [ebp + 0xc]
jmp 0x1002c63a
mov ecx, str.DestroyPlayerObject
call fcn.10003b00
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x78]
push ecx
push 0x10042278
mov dword [0x100421c0], eax
mov dword [ebp - 0x78], 8
call eax
mov ecx, dword [ebp - 0x24]
add esp, 8
push dword [ebx]
push ebx
call fcn.1001f3b0
mov bl, byte [esi + 0xd]
mov ecx, esi
test bl, bl
je 0x1002c679
mov eax, dword [esi + 8]
jmp 0x1002c6be
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x1002c69d
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x1002c6be
nop word [eax + eax]
mov eax, ecx
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x1002c690
jmp 0x1002c6be
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002c6b5
cmp ecx, dword [edx]
jne 0x1002c6b5
mov ecx, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1002c6a6
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 0x1002c735
mov ecx, esi
test bl, bl
je 0x1002c6d7
mov eax, dword [esi + 8]
jmp 0x1002c71e
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x1002c6fd
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x1002c71e
nop dword [eax + eax]
mov eax, ecx
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x1002c6f0
jmp 0x1002c71e
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002c715
cmp ecx, dword [edx]
jne 0x1002c715
mov ecx, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1002c706
cmp byte [ecx + 0xd], 0
mov eax, ecx
cmove eax, edx
mov ebx, dword [ebp + 8]
mov eax, dword [eax + 0x14]
add eax, 0x14
push eax
mov ecx, dword [ebx + 0x5c]
add ecx, 0x54
call fcn.10030e80
jmp 0x1002c738
mov ebx, dword [ebp + 8]
cmp byte [esi + 0xd], 0
je 0x1002c743
mov eax, dword [esi + 8]
jmp 0x1002c788
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x1002c761
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x1002c788
mov eax, ecx
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x1002c754
jmp 0x1002c788
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], 0
jne 0x1002c77f
nop word [eax + eax]
cmp esi, dword [ecx]
jne 0x1002c77f
mov esi, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x1002c770
cmp byte [esi + 0xd], 0
mov eax, esi
cmove eax, ecx
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x38]
call fcn.1002f3b0
mov esi, dword [ebp - 0x38]
mov eax, dword [ebx + 0xf0]
cmp eax, dword [ebx + 0x20]
je 0x1002cd3c
mov edx, dword [edi + 0x14]
sub esp, 0x14
mov ecx, dword [ebx + 0x28]
movss xmm0, dword [edx + 8]
movss xmm3, dword [edx + 0x20]
movss xmm2, dword [edx + 0x1c]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [edx + 0x34]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [edx + 0x30]
movss dword [esp + 8], xmm0
movss xmm0, dword [edx + 0x2c]
movss dword [esp + 4], xmm0
movss xmm0, dword [edx + 0x24]
mov edx, dword [edx + 0xc]
movss dword [esp], xmm0
call fcn.10005f00
add esp, 0x14
mov dword [ebp + 0xc], eax
cmp eax, 0xffff
je 0x1002cd33
mov esi, dword [edi + 0x14]
mov dword [ebp - 0x10], esi
cmp dword [esi + 0x3c], 0
setne cl
test cl, cl
je 0x1002ca5e
mov eax, dword [esi + 0x3c]
cmp dword [eax], 0
je 0x1002c918
lea ecx, [ebx + 0xe8]
push ecx
push eax
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.1000b610
mov esi, dword [ebp - 0x18]
test esi, esi
setne al
test al, al
je 0x1002cad2
mov ecx, dword [0x10042240]
test ecx, ecx
je 0x1002cad2
mov eax, dword [0x10042244]
push 0x10003350
push dword [0x1004224c]
dec eax
push eax
push ecx
push str.AttachPlayerObjectToObject
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_bsearch]
add esp, 0x14
test eax, eax
je 0x1002cad2
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1002cad2
mov edx, dword [edi + 0x14]
mov eax, dword [edx + 0x3c]
mov ecx, eax
mov ebx, eax
movss xmm0, dword [ecx + 0x2c]
movzx eax, byte [eax + 0x30]
cvtps2pd xmm0, xmm0
push eax
sub esp, 0x30
movsd qword [esp + 0x28], xmm0
movss xmm0, dword [ebx + 0x28]
cvtps2pd xmm0, xmm0
mov ebx, dword [ebp + 8]
movsd qword [esp + 0x20], xmm0
movss xmm0, dword [ecx + 0x24]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [ecx + 0xc]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [ecx + 8]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [ecx + 4]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push dword [esi + 0xc]
push dword [ebp + 0xc]
push dword [ebx + 0x28]
push str.dddffffffb
push dword [ebp - 0x24]
call fcn.10015290
add esp, 0x48
jmp 0x1002cad2
cmp dword [eax + 0x10], 0xffff
je 0x1002c9eb
mov ecx, dword [0x10042240]
test ecx, ecx
je 0x1002cad2
mov eax, dword [0x10042244]
push 0x10003350
push dword [0x1004224c]
dec eax
push eax
push ecx
push str.AttachPlayerObjectToPlayer
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_bsearch]
add esp, 0x14
test eax, eax
je 0x1002cad2
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1002cad2
mov ecx, dword [edi + 0x14]
sub esp, 0x30
mov ebx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
mov edx, eax
mov esi, eax
movss xmm0, dword [eax + 0x2c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
movss xmm0, dword [edx + 0x28]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
movss xmm0, dword [esi + 0x24]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [eax + 0xc]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [eax + 8]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [edx + 4]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push dword [edx + 0x10]
push dword [ebp + 0xc]
push dword [ebx + 0x28]
push str.dddffffff
push dword [ebp - 0x24]
call fcn.10015290
add esp, 0x44
jmp 0x1002cad2
cmp dword [eax + 0x34], 0xffff
je 0x1002cad2
movss xmm0, dword [eax + 0x2c]
sub esp, 0x14
mov esi, dword [ebp - 0x10]
mov ecx, eax
mov edx, eax
mov ebx, eax
movss dword [esp + 0x10], xmm0
movss xmm0, dword [ecx + 0x28]
mov ecx, dword [ebp - 0x10]
mov esi, dword [esi + 0x3c]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [edx + 0x24]
mov eax, dword [ecx + 0x3c]
mov edx, dword [ebp + 0xc]
movss dword [esp + 8], xmm0
movss xmm0, dword [ebx + 0xc]
mov ebx, dword [ebp + 8]
movss xmm3, dword [eax + 4]
movss dword [esp + 4], xmm0
movss xmm0, dword [eax + 8]
mov ecx, dword [ebx + 0x28]
movss dword [esp], xmm0
push dword [esi + 0x34]
call fcn.10006030
add esp, 0x18
jmp 0x1002cad2
cmp dword [esi + 0x58], 0
setne al
test al, al
je 0x1002cad2
mov eax, dword [esi + 0x58]
sub esp, 0x14
mov ebx, dword [ebp - 0x10]
mov ecx, eax
mov edx, eax
mov esi, eax
movss xmm0, dword [eax + 0x34]
mov ebx, dword [ebx + 0x58]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [ecx + 0x30]
mov ecx, dword [ebp - 0x10]
movss xmm2, dword [ebx + 4]
mov ebx, dword [ebp + 8]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [edx + 0x2c]
mov eax, dword [ecx + 0x58]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x28]
movss dword [esp + 8], xmm0
movss xmm0, dword [esi + 0x50]
movss xmm3, dword [eax + 8]
movss dword [esp + 4], xmm0
movss xmm0, dword [eax + 0xc]
movss dword [esp], xmm0
call fcn.10006670
add esp, 0x14
mov esi, dword [edi + 0x14]
cmp dword [esi + 0x48], 0
je 0x1002cae6
mov eax, dword [esi + 0x44]
mov esi, dword [esi + 0x54]
mov esi, dword [esi + eax*4]
jmp 0x1002cae8
xor esi, esi
test esi, esi
setne al
test al, al
je 0x1002cb9b
mov edi, dword [ebp + 0xc]
nop dword [eax + eax]
cmp dword [esi + 0xc], 0
setne al
test al, al
je 0x1002cb3d
mov edx, dword [esi + 0xc]
cmp dword [edx + 0x20], 0x10
lea ecx, [edx + 0xc]
jb 0x1002cb19
mov ecx, dword [ecx]
cmp dword [edx + 0x38], 0x10
lea eax, [edx + 0x24]
jb 0x1002cb24
mov eax, dword [eax]
push dword [edx]
push ecx
mov ecx, dword [ebx + 0x28]
push eax
push dword [edx + 4]
mov edx, edi
push dword [esi + 8]
call fcn.100067a0
add esp, 0x14
jmp 0x1002cb89
cmp dword [esi + 0x10], 0
setne al
test al, al
je 0x1002cb89
mov ecx, dword [esi + 0x10]
cmp dword [ecx + 0x20], 0x10
lea ebx, [ecx + 0xc]
jb 0x1002cb56
mov ebx, dword [ebx]
cmp dword [ecx + 0x44], 0x10
lea edx, [ecx + 0x30]
jb 0x1002cb61
mov edx, dword [edx]
push dword [ecx + 0x48]
movzx eax, byte [ecx + 4]
push dword [ecx]
push dword [ecx + 8]
push eax
push dword [ecx + 0x24]
push ebx
push dword [ecx + 0x2c]
mov ebx, dword [ebp + 8]
push dword [esi + 8]
push edx
mov ecx, dword [ebx + 0x28]
mov edx, edi
call fcn.10006980
add esp, 0x24
mov esi, dword [esi]
test esi, esi
setne al
test al, al
jne 0x1002cb00
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 0x14]
lea esi, [edi + 0x14]
cmp byte [eax + 0x10], 0
je 0x1002cc30
push dword [ebp + 0xc]
mov eax, dword [ebx + 0x28]
push eax
push str.SetPlayerObjectNoCameraCol__d___d_
mov dword [ebp - 0x24], eax
call fcn.10002ef0
mov esi, dword [0x10042218]
add esp, 0xc
test esi, esi
je 0x1002cbf4
cmp esi, fcn.10003af0
jne 0x1002cc00
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 0x1002cc00
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x1002cc00
mov ecx, str.SetPlayerObjectNoCameraCol
call fcn.10003b00
mov esi, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x84]
push eax
push 0x10042278
mov dword [0x10042218], esi
mov dword [ebp - 0x84], 8
call esi
add esp, 8
lea esi, [edi + 0x14]
mov eax, dword [esi]
lea ecx, [ebx + 0xe8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
push eax
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.10031610
mov edx, dword [esi]
cmp dword [edx + 4], 0
setne al
test al, al
je 0x1002ccd8
push esi
add edx, 0x14
lea ecx, [ebp - 0x58]
call fcn.100116e0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 0x48], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x44], ecx
mov dword [eax + 4], 0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 5
mov ecx, dword [ebx + 0x5c]
push eax
push eax
lea eax, [ebp - 0x68]
add ecx, 0x54
push eax
call fcn.100129b0
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x1002ccb6
add dword [esi + 0x28], 0xffffffff
jne 0x1002ccb6
mov ecx, esi
call fcn.1000c860
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 - 0x54]
test esi, esi
je 0x1002ccd8
add dword [esi + 0x28], 0xffffffff
jne 0x1002ccd8
mov ecx, esi
call fcn.1000c860
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 0x1002cd25
mov eax, dword [edi + 8]
cmp byte [eax + 0xd], 0
jne 0x1002cd03
mov edi, eax
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
jne 0x1002cd25
mov edi, eax
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
je 0x1002ccf4
jmp 0x1002cd25
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x1002cd20
nop dword [eax]
cmp edi, dword [eax + 8]
jne 0x1002cd20
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1002cd10
mov edi, eax
mov dword [ebp - 0x14], edi
mov esi, dword [ebp - 0x38]
cmp edi, dword [ebp - 0x40]
jne 0x1002c480
jmp 0x1002cd3f
mov eax, dword [ebx + 0xf0]
mov esi, dword [ebp - 0x38]
mov dword [ebx + 8], eax
push esi
push dword [esi]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.1002fef0
push dword [ebp - 0x38]
call fcn.100364d1
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
add esp, 4
push eax
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.1002fef0
push dword [ebp - 0x40]
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