Function at 0x10006050
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
push ebx
push esi
movzx esi, byte [ebp + 0x10]
mov eax, ecx
movzx ecx, byte [ebp + 0x18]
mov ebx, edx
movzx edx, byte [ebp + 0x14]
xorps xmm0, xmm0
push edi
push dword [ebp + 0x1c]
movzx edi, byte [ebp + 0xc]
push ecx
push edx
push esi
push edi
sub esp, 8
movss dword [esp + 0x58], xmm3
cvtss2sd xmm0, xmm3
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], esi
movsd qword [esp], xmm0
push dword [ebp + 8]
mov dword [esp + 0x60], edi
push ebx
push eax
push str.ApplyActorAnimation__d____s_____s____f___d___d___d___d___d_
call fcn.100034d0
mov esi, dword [0x100595a4]
add esp, 0x2c
test esi, esi
je 0x100060e8
cmp esi, fcn.100041f0
jne 0x100060f4
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 0x100060f4
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x100060f4
mov ecx, str.ApplyActorAnimation
call fcn.10004200
mov esi, eax
mov ecx, ebx
mov dword [0x100595a4], esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006100
mov ebx, dword [0x100595f8]
sub ecx, edx
mov eax, dword [0x10059688]
shl eax, 2
lea edi, [ecx + 1]
lea esi, [ebx + edi*4]
cmp esi, eax
jl 0x10006136
lea ecx, [esi + 0x40]
shr ecx, 2
call fcn.10003ec0
test eax, eax
jns 0x10006136
mov ebx, dword [esp + 0x50]
jmp 0x10006169
mov eax, dword [0x1005968c]
mov ecx, ebx
push edi
shr ecx, 2
imul eax, ecx
push 0
push 0
push dword [esp + 0x40]
mov dword [0x100595f8], esi
add eax, dword [0x10059680]
push eax
mov eax, dword [0x100597d8]
mov eax, dword [eax + 0x94]
call eax
add esp, 0x14
mov ecx, dword [ebp + 8]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006170
mov esi, dword [0x100595f8]
sub ecx, edx
lea eax, [ecx + 1]
lea edi, [esi + eax*4]
mov dword [esp + 0x34], eax
mov eax, dword [0x10059688]
shl eax, 2
cmp edi, eax
jl 0x100061aa
lea ecx, [edi + 0x40]
shr ecx, 2
call fcn.10003ec0
test eax, eax
jns 0x100061aa
mov esi, dword [esp + 0x54]
jmp 0x100061df
push dword [esp + 0x34]
mov eax, dword [0x1005968c]
mov ecx, esi
shr ecx, 2
imul eax, ecx
push 0
push 0
push dword [ebp + 8]
mov dword [0x100595f8], edi
add eax, dword [0x10059680]
push eax
mov eax, dword [0x100597d8]
mov eax, dword [eax + 0x94]
call eax
add esp, 0x14
mov eax, dword [esp + 0x38]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x58]
push eax
push 0x100595e0
mov dword [esp + 0x60], 0x24
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], esi
call dword [0x100595a4]
mov ecx, dword [0x100595f8]
add esp, 8
cmp ecx, esi
mov edx, eax
cmovg ecx, esi
cmp ecx, ebx
pop edi
cmovg ecx, ebx
xor eax, eax
test edx, edx
mov dword [0x100595f8], ecx
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret