Function at 0x1003965c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
push esi
push edi
mov edi, dword [0x1027c41c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edi
mov eax, dword [edi + 0x1b48]
mov byte [eax + 0x84], 1
mov eax, dword [edi + 0x1b48]
mov dword [esp + 0x10], eax
cmp byte [eax + 0x87], 0
jne 0x10039e51
push 0
push ecx
mov ecx, eax
call fcn.100493dd
mov esi, eax
mov dword [esp + 0x48], esi
call fcn.10050bbc
movss dword [esp + 0x4c], xmm0
xorps xmm1, xmm1
movss xmm0, dword [edi + 0x1a08]
call fcn.10046146
mov edx, dword [edi + 0x1a04]
movaps xmm2, xmm0
push ecx
mov dword [esp], 0xbf800000
lea ecx, [esp + 0x40]
push 1
push 0
push dword [esp + 0x40]
call fcn.1004b9d5
movss xmm0, dword [0x10273f48]
add esp, 0x10
xorps xmm1, xmm1
xorps xmm3, xmm3
call fcn.10046146
movss xmm4, dword [edi + 0x155c]
mov eax, dword [esp + 0x10]
movaps xmm2, xmm4
movss xmm1, dword [esp + 0x4c]
addss xmm2, xmm4
addss xmm1, dword [eax + 0xd0]
mov ecx, dword [eax + 0xd0]
addss xmm2, dword [esp + 0x40]
addss xmm2, xmm0
movss xmm0, dword [esp + 0x3c]
comiss xmm0, xmm3
addss xmm2, dword [eax + 0xd4]
mov eax, dword [eax + 0xd4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
movss dword [esp + 0x2c], xmm1
movss dword [esp + 0x30], xmm2
jbe 0x1003976b
addss xmm0, dword [edi + 0x1570]
jmp 0x1003976e
xorps xmm0, xmm0
addss xmm1, xmm0
movss dword [esp + 0x5c], xmm2
subss xmm2, dword [esp + 0x28]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], eax
movss dword [esp + 0x58], xmm1
subss xmm1, dword [esp + 0x24]
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x18], xmm1
movaps xmm1, xmm4
call fcn.100506af
lea eax, [esp + 0x24]
mov edx, esi
push eax
lea ecx, [esp + 0x54]
call fcn.100507f6
pop ecx
test al, al
je 0x10039e51
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x100397d9
push dword [esp + 0x20]
call fcn.10069600
pop ecx
mov eax, dword [eax + 8]
jmp 0x10039803
cmp dword [esp + 0x20], 4
jne 0x10039806
xor ecx, ecx
movzx eax, byte [edx + ecx]
mov edi, 0x10271054
cmp al, byte [edi + ecx]
mov edi, dword [esp + 0x38]
jne 0x100397fc
inc ecx
cmp ecx, 3
jne 0x100397e2
jmp 0x10039806
mov ecx, edx
call fcn.10039113
mov dword [ebp + 0x14], eax
mov edx, esi
lea ecx, [esp + 0x24]
call fcn.10049812
mov byte [esp + 0xf], al
mov eax, dword [ebp + 0x18]
shr eax, 7
not al
and al, 1
mov dword [esp + 0x14], eax
je 0x10039849
mov ecx, esi
call fcn.100390f8
test al, al
jne 0x100398d9
mov eax, dword [esp + 0x10]
mov edx, esi
mov ecx, eax
call fcn.10049967
test al, al
je 0x10039849
mov cl, 1
jmp 0x1003984b
xor cl, cl
cmp byte [esp + 0xf], 0
mov byte [esp + 0xe], cl
je 0x10039863
cmp byte [edi + 0x3e0], 0
je 0x10039863
mov al, 1
jmp 0x10039865
xor al, al
mov byte [esp + 0xd], al
test cl, cl
jne 0x10039885
test al, al
jne 0x10039885
cmp dword [edi + 0x1c94], esi
je 0x10039885
cmp dword [edi + 0x1ca0], esi
jne 0x10039915
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.100495fd
call fcn.10051fe4
mov ecx, edx
call fcn.1004fe9d
or dword [edi + 0x1b94], 3
cmp byte [esp + 0x14], 0
je 0x10039915
cmp byte [esp + 0xe], 0
jne 0x100398c9
cmp byte [esp + 0xd], 0
je 0x100398c1
cmp byte [edi + 0x100], 0
jne 0x100398c9
cmp dword [edi + 0x1ca0], esi
jne 0x10039915
mov eax, dword [esp + 0x10]
dec dword [eax + 0x1a0]
dec dword [eax + 0x1a4]
mov ecx, dword [ebp + 0x18]
push 0
pop eax
shr ecx, 4
test cl, 1
cmovne eax, dword [ebp + 0x10]
push eax
xor eax, eax
test cl, 1
cmovne eax, dword [ebp + 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [esp + 0x30]
push dword [ebp + 8]
push dword [esp + 0x30]
push dword [esp + 0x48]
push esi
push eax
call fcn.1006a38f
add esp, 0x20
jmp 0x10039e53
push 1
mov edx, esi
lea ecx, [esp + 0x28]
call fcn.10048cf5
mov eax, dword [0x102794d0]
pop ecx
cmp eax, 6
jl 0x10039946
cmp eax, 9
jl 0x1003993c
movss xmm5, dword [0x10273fa4]
jmp 0x1003994e
movss xmm5, dword [0x10273fa8]
jmp 0x1003994e
movss xmm5, dword [0x10273fac]
movss dword [esp + 0x44], xmm5
cmp eax, 3
jl 0x10039963
movss xmm6, dword [0x10273f00]
jmp 0x1003996b
movss xmm6, dword [0x10273f28]
movss xmm1, dword [0x10273ea0]
push 0x13
pop ecx
movss dword [esp + 0x14], xmm6
call fcn.100483d1
movss xmm0, dword [esp + 0x2c]
xorps xmm1, xmm1
movss dword [esp + 0x50], xmm0
mov esi, eax
movaps xmm0, xmm6
call fcn.10046146
movss xmm1, dword [esp + 0x30]
subss xmm1, xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm5
movss dword [esp + 0x54], xmm1
xorps xmm1, xmm1
call fcn.10046146
addss xmm0, dword [esp + 0x28]
push 0xf
push ecx
and dword [esp], 0
xor dl, dl
push dword [esp + 0x5c]
movss dword [esp + 0x28], xmm0
mov ecx, esi
push dword [esp + 0x5c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.10048ae9
mov esi, dword [ebp + 8]
lea eax, [esp + 0x78]
push eax
push dword [ebp + 0x18]
lea eax, [esp + 0x44]
xorps xmm0, xmm0
push dword [ebp + 0x14]
movups xmmword [esp + 0x84], xmm0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push dword [esp + 0x50]
push dword [esp + 0x7c]
push eax
call fcn.10069dc0
mov ecx, dword [esp + 0x4c]
add esp, 0x3c
cmp byte [esp + 0xf], 0
mov dl, al
mov byte [esp + 0xd], dl
je 0x10039b38
cmp byte [edi + 0x100], 0
je 0x10039b38
cmp dword [esp + 0x20], 4
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov byte [ecx + 0x38c], 1
mov byte [esp + 0xe], 0
jne 0x10039a72
mov eax, dword [eax]
sub eax, dword [edx]
mov byte [esp + 0xe], 1
movd xmm0, eax
mov eax, dword [ebp + 0x10]
cvtdq2ps xmm0, xmm0
jmp 0x10039a7a
movss xmm0, dword [eax]
subss xmm0, dword [edx]
cmp byte [edi + 0x101], 0
cvtps2pd xmm1, xmm0
movaps xmm0, xmm1
mulsd xmm0, qword [0x10273ea8]
cvtpd2ps xmm2, xmm0
je 0x10039aa1
mulsd xmm1, qword [0x10273e70]
cvtpd2ps xmm2, xmm1
movss xmm0, dword [edi + 0xf8]
xorps xmm7, xmm7
comiss xmm7, xmm0
jbe 0x10039af0
cmp byte [esp + 0xe], 0
je 0x10039acb
mov eax, dword [esi]
cmp eax, dword [edx]
jle 0x10039ac1
dec eax
mov dword [esi], eax
mov edx, dword [edx]
cmp eax, edx
jge 0x10039ae9
mov dword [esi], edx
jmp 0x10039ae9
movss xmm0, dword [esi]
comiss xmm0, dword [edx]
jbe 0x10039adc
subss xmm0, xmm2
movss dword [esi], xmm0
movss xmm1, dword [edx]
comiss xmm1, xmm0
jbe 0x10039ae9
movss dword [esi], xmm1
mov byte [esp + 0xd], 1
jmp 0x10039b3c
comiss xmm0, xmm7
jbe 0x10039b34
cmp byte [esp + 0xe], 0
je 0x10039b10
mov edx, dword [ebp + 0x10]
mov eax, dword [esi]
cmp eax, dword [edx]
jge 0x10039b08
inc eax
mov dword [esi], eax
mov edx, dword [edx]
cmp eax, edx
jle 0x10039ae9
jmp 0x10039ac7
movss xmm1, dword [esi]
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x10039b25
addss xmm1, xmm2
movss dword [esi], xmm1
movss xmm0, dword [eax]
comiss xmm1, xmm0
jbe 0x10039ae9
movss dword [esi], xmm0
jmp 0x10039ae9
mov dl, byte [esp + 0xd]
test dl, dl
je 0x10039b41
call fcn.10049700
movss xmm6, dword [esp + 0x68]
comiss xmm6, dword [esp + 0x60]
jbe 0x10039be9
mov eax, dword [esp + 0x38]
mov edi, dword [ecx + 0x294]
movss xmm1, dword [0x10273ea0]
push 0x14
movss xmm5, dword [eax + 0x1594]
pop ecx
call fcn.100483d1
movss xmm3, dword [0x10273f00]
xorps xmm1, xmm1
movss xmm0, dword [esp + 0x14]
addss xmm6, xmm3
mov esi, eax
movss dword [esp + 0x18], xmm6
call fcn.10046146
movss xmm1, dword [esp + 0x24]
subss xmm3, xmm0
movss xmm0, dword [esp + 0x44]
movss dword [esp + 0x50], xmm1
xorps xmm1, xmm1
addss xmm3, dword [esp + 0x6c]
movss dword [esp + 0x1c], xmm3
call fcn.10046146
addss xmm0, dword [esp + 0x28]
push 0xf
push ecx
movss dword [esp], xmm5
lea eax, [esp + 0x20]
push esi
push eax
lea eax, [esp + 0x60]
movss dword [esp + 0x64], xmm0
push eax
mov ecx, edi
call fcn.1005e0cd
mov esi, dword [ebp + 8]
test dword [ebp + 0x18], 0x200
je 0x10039c12
cmp dword [esi], 0
jne 0x10039c12
push str.None
push 0x10271050
lea eax, [esp + 0x78]
push 0x40
push eax
call fcn.10047910
add esp, 0x10
jmp 0x10039c49
mov ecx, dword [esp + 0x20]
cmp ecx, 8
jne 0x10039c34
cvttss2si eax, dword [esi]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [esi]
lahf
test ah, 0x44
mov eax, str._.0f
jnp 0x10039c37
mov eax, dword [ebp + 0x14]
push eax
push esi
push ecx
lea eax, [esp + 0x7c]
push 0x40
push eax
call fcn.10069610
add esp, 0x14
movss xmm0, dword [0x10273f80]
lea esi, [esp + 0x70]
xorps xmm1, xmm1
mov dword [esp + 0x14], eax
add esi, eax
call fcn.10046146
mov edx, dword [0x1027d07c]
lea eax, [esp + 0x70]
push ecx
mov dword [esp], 0xbf800000
lea ecx, [esp + 0x1c]
push 0
push esi
push eax
movaps xmm2, xmm0
call fcn.1004b9d5
mov eax, dword [esp + 0x20]
add esp, 0x10
movss xmm1, dword [0x10273ea0]
xor ecx, ecx
mov edi, dword [eax + 0x294]
call fcn.100483d1
movss xmm1, dword [esp + 0x24]
mov esi, eax
addss xmm1, dword [esp + 0x4c]
movss xmm0, dword [0x10273f80]
subss xmm1, dword [esp + 0x18]
movss dword [esp + 0x18], xmm1
movss xmm1, dword [esp + 0x28]
subss xmm1, dword [0x10273f40]
movss dword [esp + 0x1c], xmm1
xorps xmm1, xmm1
call fcn.10046146
push 0
push ecx
and dword [esp], 0
lea eax, [esp + 0x78]
add eax, dword [esp + 0x1c]
movaps xmm2, xmm0
push eax
lea eax, [esp + 0x7c]
mov ecx, edi
push eax
push esi
lea eax, [esp + 0x2c]
push eax
push dword [0x1027d07c]
call fcn.1005e4e0
movss xmm0, dword [esp + 0x3c]
xorps xmm5, xmm5
comiss xmm0, xmm5
jbe 0x10039da4
mov ecx, dword [esp + 0x34]
xor edx, edx
call fcn.100486a1
movss xmm1, dword [0x10273ea0]
mov edi, eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov eax, dword [eax + 0x294]
mov dword [esp + 0x48], eax
call fcn.100483d1
movss xmm0, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x38]
xorps xmm1, xmm1
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x28]
subss xmm0, dword [0x10273f40]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [eax + 0x1a08]
call fcn.10046146
push 0
push ecx
and dword [esp], 0
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0x50]
movaps xmm2, xmm0
push edi
push dword [esp + 0x40]
push esi
push eax
mov eax, dword [esp + 0x50]
push dword [eax + 0x1a04]
call fcn.1005e4e0
mov esi, dword [0x1027c494]
cmp byte [esi + 0x2be4], 0
je 0x10039e4b
xor ecx, ecx
call fcn.10049767
test al, al
je 0x10039e4b
mov eax, dword [esi + 0x20]
mov esi, dword [eax]
cmp esi, eax
je 0x10039e4b
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 0x44]
jne 0x10039ddd
cmp byte [esi + 0x59], 0
jne 0x10039de5
mov esi, dword [esi]
cmp esi, eax
jne 0x10039dd2
jmp 0x10039e4b
cmp byte [0x1027d031], 0
je 0x10039e00
movss xmm1, dword [0x10273ea0]
push 2
pop ecx
call fcn.100483d1
jmp 0x10039e03
or eax, 0xffffffff
push 4
mov edx, eax
pop ecx
call fcn.1004848e
xor ecx, ecx
mov dword [esp + 0x3c], 0x41000000
lea edx, [esp + 0x3c]
mov dword [esp + 0x40], 0x40c00000
inc ecx
call fcn.100485c8
add esi, 0x2c
cmp dword [esi + 0x14], 0xf
jbe 0x10039e34
mov esi, dword [esi]
push esi
call fcn.10051550
pop ecx
xor ecx, ecx
inc ecx
call fcn.10048636
xor ecx, ecx
inc ecx
call fcn.10048529
mov al, byte [esp + 0xd]
jmp 0x10039e53
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret