Function at 0x1003bae0
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ca5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
cmp byte [ebp + 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], ecx
je 0x1003bb19
inc dword [ebx + 0x20]
mov eax, dword [ebx + 0x20]
cmp eax, dword [ebx + 0x40]
jb 0x1003c1b9
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [ebx + 0x3f8], edx
je 0x1003bc69
mov eax, dword [ebx + 0x3f4]
mov edi, dword [ebx + 0x404]
mov edi, dword [edi + eax*4]
test edi, edi
je 0x1003c1b2
cmp byte [ebp + 0xc], 0
je 0x1003bb57
mov eax, dword [ebp - 0x10]
inc edx
mov dword [ebp - 0x14], edx
cmp edx, dword [eax + 0x74]
ja 0x1003c1b2
lea ecx, [ebx + 0x3a8]
lea eax, [edi + 8]
push ecx
push eax
push dword [eax]
call fcn.1000ce40
mov esi, eax
test esi, esi
je 0x1003bc48
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx + 0x7c]
push eax
push ecx
push str.DeletePlayer3DTextLabel__d___d_
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
call fcn.100034d0
mov eax, dword [0x100595b4]
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
je 0x1003bbc6
cmp eax, fcn.100041f0
jne 0x1003bbd0
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 0x1003bbc1
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x1003bbc6
mov eax, dword [ebp + 8]
jmp 0x1003bbd0
mov ecx, str.DeletePlayer3DTextLabel
call fcn.10004200
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x60]
push ecx
push 0x100595e0
mov dword [0x100595b4], eax
mov dword [ebp - 0x60], 8
call eax
add esp, 4
lea eax, [edi + 8]
push eax
push dword [eax]
mov eax, dword [0x10059264]
mov ecx, dword [eax]
add ecx, 0x120
call fcn.1000ce40
test eax, eax
je 0x1003bc3a
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x3c], 0
je 0x1003bc3a
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 5
lea ecx, [ecx + 0xc4]
call fcn.1003db80
push dword [esi]
lea ecx, [ebx + 0x3a8]
push esi
call fcn.1002cff0
mov esi, dword [edi]
lea ecx, [ebx + 0x3f0]
push esi
push edi
call fcn.1002cff0
mov edx, dword [ebp - 0x14]
mov edi, esi
test esi, esi
jne 0x1003bb41
jmp 0x1003c1b2
mov eax, dword [ebx + 0x200]
mov esi, 4
test eax, eax
mov dword [ebp - 0x20], esi
lea edi, [eax - 8]
cmove edi, esi
mov edi, dword [edi]
mov edi, dword [edi + 0x14]
lea eax, [edi - 0x10]
neg edi
sbb edi, edi
and edi, eax
mov esi, dword [ebx + 0x200]
xorps xmm1, xmm1
test esi, esi
lea eax, [esi - 8]
cmove eax, dword [ebp - 0x20]
cmp edi, dword [eax]
je 0x1003c1b2
cmp byte [ebp + 0xc], 0
je 0x1003bcba
inc edx
mov dword [ebp - 0x14], edx
cmp edx, dword [ecx + 0x74]
ja 0x1003c1b2
mov eax, dword [edi + 0xc]
lea ecx, [ebx + 0x3a8]
add eax, 0x60
mov dword [ebp - 0x1c], ecx
push ecx
push eax
push dword [eax]
call fcn.1000ce40
test eax, eax
setne al
test al, al
je 0x1003bd12
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
call fcn.1003fb70
lea eax, [esi - 0xc]
neg esi
push edi
sbb esi, esi
and esi, eax
dec dword [esi + 0x2c]
lea ecx, [esi + 0xc]
call fcn.1003fb00
push edi
call fcn.1004a648
mov edi, dword [ebp - 0x18]
add esp, 4
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
jmp 0x1003bc8d
mov eax, dword [ebx + 0x3b0]
cmp eax, dword [ebx + 0x50]
jne 0x1003bff5
mov ecx, dword [ebx + 0x344]
mov edx, 4
test ecx, ecx
lea eax, [ecx - 8]
cmove eax, edx
lea esi, [ecx - 8]
cmove esi, edx
mov eax, dword [eax]
mov esi, dword [esi]
mov eax, dword [eax + 0x14]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
cmp esi, eax
je 0x1003bff5
test esi, esi
je 0x1003bd5e
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x1003bd65
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov eax, dword [eax]
cmp eax, dword [edi]
jl 0x1003bdea
test esi, esi
je 0x1003bd8b
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x1003bd92
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
movss xmm0, dword [eax + 4]
comiss xmm0, xmm1
jbe 0x1003bff5
test esi, esi
je 0x1003bdc0
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x1003bdc7
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
movss xmm0, dword [eax + 4]
comiss xmm0, dword [edi + 4]
jbe 0x1003bff5
test esi, esi
je 0x1003bdf6
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x1003bdfd
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0x10]
neg eax
push ecx
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x1c]
add eax, 8
push eax
push dword [eax]
call fcn.1000ce40
mov ebx, eax
test ebx, ebx
setne al
test al, al
je 0x1003bf36
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
push ecx
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 0x7c]
push eax
push str.DeletePlayer3DTextLabel__d___d_
mov dword [ebp - 0x24], eax
call fcn.100034d0
mov eax, dword [0x100595b4]
add esp, 0xc
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1003be85
cmp eax, fcn.100041f0
jne 0x1003be8f
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 0x1003be80
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x1003be85
mov eax, dword [ebp - 0x18]
jmp 0x1003be8f
mov ecx, str.DeletePlayer3DTextLabel
call fcn.10004200
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x6c]
push ecx
push 0x100595e0
mov dword [0x100595b4], eax
mov dword [ebp - 0x6c], 8
call eax
add esp, 8
test esi, esi
je 0x1003bec1
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x1003bec8
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x3c], 0
je 0x1003bf2b
test esi, esi
je 0x1003bef1
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x1003bef8
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], 5
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 8]
lea ecx, [ecx + 0xc4]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.1003db80
push dword [ebx]
mov ecx, dword [ebp - 0x1c]
push ebx
call fcn.1002cff0
test esi, esi
je 0x1003bf42
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x1003bf49
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov eax, dword [eax + 0xc]
cmp dword [eax + 4], 0
je 0x1003bfa7
test esi, esi
je 0x1003bf72
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x1003bf79
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebx + 0xc0]
add eax, 8
add ecx, 0xb4
push eax
call fcn.10040750
jmp 0x1003bfaa
mov ebx, dword [ebp + 8]
test esi, esi
je 0x1003bfb6
add esi, 0x10
mov dword [ebp - 0x18], esi
jmp 0x1003bfbd
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.100409c0
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x344]
lea eax, [esi - 0x10]
neg esi
sbb esi, esi
and esi, eax
lea eax, [ecx - 0xc]
neg ecx
push esi
sbb ecx, ecx
and ecx, eax
dec dword [ecx + 0x2c]
add ecx, 0xc
call fcn.1003fb00
push esi
call fcn.1004a648
add esp, 4
mov eax, dword [ebx + 0x3b0]
cmp eax, dword [ebx + 0x78]
je 0x1003c180
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x64], 0
je 0x1003c018
mov eax, dword [ecx + 0x64]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1c], eax
jmp 0x1003c01f
mov dword [ebp - 0x1c], 0xffff
cmp dword [ecx + 0x64], 0
je 0x1003c02c
mov eax, dword [ecx + 0x64]
mov esi, dword [eax]
jmp 0x1003c031
mov esi, 0xffff
cmp dword [ecx + 0x5c], 0x10
lea edx, [ecx + 0x48]
jb 0x1003c03c
mov edx, dword [edx]
mov al, byte [ecx + 0x44]
movss xmm0, dword [ecx + 0x10]
movss xmm1, dword [ecx + 0x24]
movss xmm2, dword [ecx + 0x20]
movss xmm3, dword [ecx + 0x1c]
mov byte [ebp - 0x2c], al
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push esi
sub esp, 0xc
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm1
movss dword [esp], xmm2
push dword [ecx + 8]
mov ecx, dword [ebx + 0x7c]
call fcn.10007d10
add esp, 0x1c
mov dword [ebp - 0x28], eax
cmp eax, 0xffff
je 0x1003c180
mov ecx, dword [edi + 0xc]
cmp byte [ecx + 0x3c], 0
je 0x1003c0b5
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x10]
push eax
mov dword [ebp - 0x44], 5
lea ecx, [ecx + 0xb8]
call fcn.1003db80
mov eax, dword [edi + 8]
lea ecx, [ebx + 0x3a8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.10041650
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0xc]
cmp dword [eax + 4], 0
je 0x1003c143
push ecx
lea edx, [edi + 8]
lea ecx, [ebp - 0x4c]
call fcn.10015490
add esp, 4
push eax
push eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
mov ecx, dword [ebx + 0xc0]
push eax
add ecx, 0xb4
call fcn.10016bf0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x1003c143
add dword [esi + 0x38], 0xffffffff
jne 0x1003c143
mov ecx, esi
call fcn.1000c800
mov dword [ebp - 4], 1
push dword [esi - 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebx + 0x200]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
call fcn.1003fb70
lea eax, [esi - 0xc]
neg esi
push edi
sbb esi, esi
and esi, eax
dec dword [esi + 0x2c]
lea ecx, [esi + 0xc]
call fcn.1003fb00
push edi
call fcn.1004a648
mov edi, dword [ebp - 0x1c]
add esp, 4
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
jmp 0x1003bc8d
mov edi, dword [ebx + 0x1b8]
mov eax, dword [ebx + 0x3b0]
push dword [ebp + 0xc]
mov dword [ebx + 0x50], eax
lea eax, [edi - 0xc]
neg edi
sbb edi, edi
and edi, eax
lea ecx, [edi + 0xc]
call fcn.1000c480
lea ecx, [edi + 0xc]
call fcn.1003fa60
mov dword [edi + 0x2c], 0
mov dword [ebx + 0x20], 0
mov eax, dword [ebx + 0x1b8]
mov edx, 0x2c
test eax, eax
lea ecx, [eax + 0x20]
cmove ecx, edx
cmp dword [ecx], 0
jne 0x1003c20a
cmp dword [ebx + 0x3f8], 0
jne 0x1003c20a
mov edi, dword [ebx + 0x2fc]
push dword [ebp + 0xc]
lea eax, [edi - 0xc]
neg edi
sbb edi, edi
and edi, eax
lea ecx, [edi + 0xc]
call fcn.1000c480
lea ecx, [edi + 0xc]
call fcn.1003fa60
mov dword [edi + 0x2c], 0
and dword [ebx + 0xd4], 0xffffffdf
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8