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

Disassembly:
sub esp, 0x68
push esi
mov esi, dword [0x10110f1c]
mov dword [esp + 0x4c], esi
mov eax, dword [esi + 0x3e40]
mov dword [esp + 0x58], eax
cmp byte [eax + 0xaf], 0
jne 0x1004ad3a
push edi
mov edi, dword [esi + 0x49e4]
mov eax, dword [edi + 0x48]
mov dword [esp + 0x64], eax
imul eax, eax, 0x70
add eax, dword [edi + 0x10]
cmp dword [esp + 0x74], 0
mov dword [esp + 0x68], eax
mov eax, 0x100baf18
cmovne eax, dword [esp + 0x74]
xor ecx, ecx
push ecx
push eax
mov dword [esp + 0x5c], eax
call fcn.100157b2
add esp, 4
mov dword [esp + 0x44], eax
xor ecx, ecx
inc ecx
mov dword [esp], 0xbf800000
push ecx
push eax
push dword [esp + 0x60]
lea eax, [esp + 0x40]
push eax
call fcn.1000cb48
mov eax, dword [esp + 0x70]
push dword [esp + 0x78]
push edi
movss xmm0, dword [eax + 0xf0]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [eax + 0xf4]
lea eax, [esp + 0x34]
push eax
movss dword [esp + 0x5c], xmm0
call fcn.1004f6d6
movss xmm0, dword [edi + 0x94]
xor edx, edx
movss xmm1, dword [edi + 0x58]
addss xmm0, xmm0
mov ecx, dword [esp + 0x88]
add esp, 0x20
xorps xmm2, xmm2
mov byte [esp + 0x60], dl
mov word [esp + 0x61], dx
mov byte [esp + 0x63], dl
test byte [edi + 4], 8
subss xmm1, xmm0
xorps xmm0, xmm0
movss dword [esp + 0x48], xmm2
movss dword [esp + 0x4c], xmm0
maxss xmm1, dword [esp + 0x34]
movss dword [esp + 0x44], xmm1
je 0x1004a7e0
test dword [ecx], 0x200
jne 0x1004a7e0
movss xmm0, dword [esi + 0x3bd0]
mulss xmm0, dword [0x100bdee0]
addss xmm0, dword [esi + 0x37dc]
cvttss2si eax, xmm0
movd xmm1, eax
movzx eax, word [ecx + 0x5a]
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x4c], xmm1
test ax, ax
jle 0x1004a7e0
cwde
inc eax
push eax
push 0x100bc254
lea eax, [esp + 0x68]
push 4
push eax
call fcn.1000f4b9
add esp, 0xc
lea eax, [esp + 0x64]
mov dword [esp], 0xbf800000
push 0
push 0
push eax
lea eax, [esp + 0x38]
push eax
call fcn.1000cb48
movss xmm2, dword [esi + 0x37f4]
add esp, 0x14
mov ecx, dword [esp + 0x68]
xor edx, edx
addss xmm2, dword [eax]
movss dword [esp + 0x48], xmm2
movss xmm1, dword [esp + 0x30]
addss xmm1, dword [esp + 0x38]
movss xmm0, dword [ecx + 0x38]
maxss xmm0, dword [ecx + 0x48]
addss xmm1, xmm2
movss dword [ecx + 0x48], xmm0
movss xmm0, dword [ecx + 0x4c]
addss xmm1, dword [esp + 0x4c]
maxss xmm0, xmm1
movss dword [ecx + 0x4c], xmm0
cmp byte [edi + 0x1db], 0
je 0x1004a838
movsx eax, word [edi + 0x1c4]
cmp eax, dword [esp + 0x64]
jne 0x1004a838
mov ax, word [edi + 0x4e]
mov byte [esp + 0x6e], 1
cmp ax, word [edi + 0x4c]
je 0x1004a83c
mov byte [esp + 0x6e], dl
mov ecx, dword [esp + 0x5c]
push edx
push dword [esp + 0x58]
call fcn.100104d4
movss xmm1, dword [esi + 0x3800]
movss xmm0, dword [esp + 0x18]
addss xmm1, xmm1
movss xmm2, dword [esp + 0x20]
and dword [esp + 0x28], 0
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x10], xmm2
movss xmm2, dword [esp + 0x44]
movss dword [esp + 0xc], xmm0
addss xmm0, xmm2
push ecx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x2c]
mov dword [esp], 0xbf800000
push eax
addss xmm1, xmm0
movss dword [esp + 0x34], xmm2
maxss xmm1, dword [esp + 0x2c]
movss dword [esp + 0x1c], xmm1
call fcn.1001254b
push 0
push 0
push dword [esp + 0x68]
lea eax, [esp + 0x1c]
push eax
call fcn.1001269c
add esp, 0x18
test al, al
je 0x1004ad39
push 0x1000
lea eax, [esp + 0x73]
push eax
lea eax, [esp + 0x75]
push eax
push dword [esp + 0x64]
lea eax, [esp + 0x18]
push eax
call fcn.1005e521
mov byte [esp + 0x80], al
add esp, 0x14
mov eax, dword [esp + 0x58]
cmp dword [esi + 0x3e8c], eax
je 0x1004a90a
call fcn.1000c6ff
mov dl, byte [esp + 0x6f]
mov cl, byte [esp + 0x6d]
test dl, dl
jne 0x1004a947
test cl, cl
jne 0x1004a947
cmp byte [esp + 0x6e], cl
jne 0x1004a947
test byte [edi + 0x64], 1
jne 0x1004a975
mov esi, dword [edi + 0x48]
push ecx
mov dword [esp], 0x3f800000
push 0x2a
call fcn.1000ab6c
push esi
push eax
push 3
call fcn.1004ae42
mov esi, dword [esp + 0x64]
jmp 0x1004a972
xor eax, eax
test cl, cl
push ecx
setne al
mov dword [esp], 0x3f800000
add eax, 0x18
test dl, dl
push 0x1a
pop ecx
cmovne eax, ecx
push eax
call fcn.1000ab6c
push dword [edi + 0x48]
push eax
push 3
call fcn.1004ae42
add esp, 0x14
push 0xa
push dword [esp + 0x5c]
lea eax, [esp + 0x10]
push eax
call fcn.10015571
add esp, 0xc
cmp byte [esp + 0x6f], 0
je 0x1004a99a
mov eax, dword [esp + 0x64]
mov word [edi + 0x1b6], ax
movss xmm1, dword [esi + 0x37f0]
or edx, 0xffffffff
mov eax, dword [esp + 0x5c]
mulss xmm1, dword [0x100ba4c0]
movss xmm0, dword [eax + 0xf4]
subss xmm0, xmm1
movss dword [eax + 0xf4], xmm0
cmp byte [esp + 0x6f], 0
je 0x1004aaff
test byte [edi + 4], 2
je 0x1004aaff
push ecx
mov dword [esp], 0xbf800000
push 0
call fcn.1000d228
pop ecx
pop ecx
test al, al
je 0x1004aafc
cmp byte [esi + 0x4944], 0
jne 0x1004aafc
mov eax, dword [esp + 0x64]
xorps xmm1, xmm1
mov ecx, dword [esp + 0x68]
or edx, 0xffffffff
mov word [edi + 0x1b8], ax
mov ax, word [edi + 0x4c]
mov word [edi + 0x4e], ax
comiss xmm1, dword [esi + 0xb8]
jbe 0x1004aa8f
movss xmm0, dword [esp + 0x18]
comiss xmm0, dword [esi + 0xdc0]
jbe 0x1004aa8f
movzx eax, word [ecx + 0x56]
cmp ax, dx
je 0x1004aa8f
cwde
imul edx, eax, 0x70
add edx, dword [edi + 0x10]
mov dword [esp + 0x58], edx
je 0x1004aa8c
mov eax, dword [ecx]
or eax, dword [edx]
test al, 0x40
jne 0x1004aa8c
mov eax, dword [esp + 0x68]
xor edx, edx
movzx ecx, word [edi + 0x1ca]
mov esi, dword [esp + 0x58]
cmp word [eax + 0x54], cx
setl dl
xor eax, eax
cmp word [esi + 0x54], cx
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x68]
setl al
cmp edx, eax
jne 0x1004aa8c
or edx, 0xffffffff
mov word [edi + 0x1ba], dx
jmp 0x1004aa8f
or edx, 0xffffffff
movss xmm0, dword [esi + 0xb8]
comiss xmm0, xmm1
jbe 0x1004aaff
movss xmm0, dword [esi + 0xdc0]
comiss xmm0, dword [esp + 0x20]
jbe 0x1004aaff
movzx eax, word [ecx + 0x58]
cmp ax, dx
je 0x1004aaff
cwde
imul edx, eax, 0x70
add edx, dword [edi + 0x10]
mov dword [esp + 0x58], edx
je 0x1004aafc
mov eax, dword [ecx]
or eax, dword [edx]
test al, 0x40
jne 0x1004aafc
mov eax, dword [esp + 0x68]
xor edx, edx
movzx ecx, word [edi + 0x1ca]
mov esi, dword [esp + 0x58]
cmp word [eax + 0x54], cx
setl dl
xor eax, eax
cmp word [esi + 0x54], cx
mov esi, dword [esp + 0x50]
setl al
cmp edx, eax
jne 0x1004aafc
xor eax, eax
inc eax
mov word [edi + 0x1ba], ax
or edx, 0xffffffff
test byte [edi + 4], 8
movss xmm0, dword [esp + 0x20]
subss xmm0, dword [esp + 0x4c]
subss xmm0, dword [esp + 0x48]
movss dword [esp + 0x50], xmm0
je 0x1004ac69
mov ecx, dword [esp + 0x68]
test dword [ecx], 0x200
jne 0x1004ac69
movzx eax, word [ecx + 0x5a]
cmp ax, dx
je 0x1004ac39
maxss xmm0, dword [esp + 0x18]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x4c], xmm0
test ax, ax
jle 0x1004abcf
push ecx
mov dword [esp], 0x3f333333
push 0
call fcn.1000ab6c
push eax
push 0
call fcn.1000a755
movss xmm0, dword [esp + 0x68]
xor eax, eax
addss xmm0, dword [esi + 0x37f4]
inc eax
push eax
push 0
lea eax, [esp + 0x78]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x64]
push eax
movss dword [esp + 0x48], xmm0
push dword [esp + 0x48]
push dword [esp + 0x48]
call fcn.10014c04
xor eax, eax
inc eax
push eax
call fcn.1000a7f2
movss xmm0, dword [esp + 0x80]
add esp, 0x28
addss xmm0, dword [esp + 0x48]
mov ecx, dword [esp + 0x68]
movss dword [esp + 0x58], xmm0
mov al, byte [ecx + 0x6d]
xor ecx, ecx
and al, 3
cmp al, 1
setne cl
add ecx, 2
push ecx
mov dword [esp], 0x3f800000
push 0
mov dword [esp + 0x50], ecx
call fcn.1000ab6c
movss xmm0, dword [esp + 0x60]
add esp, 4
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x50]
movss dword [esp + 0x30], xmm0
mov dword [esp], 0x3f266666
push dword [esp + 0x4c]
push eax
push dword [esp + 0x38]
mov eax, dword [esp + 0x6c]
push dword [esp + 0x38]
push dword [eax + 0x264]
call fcn.1003f641
mov ecx, dword [esp + 0x80]
add esp, 0x18
cmp byte [esp + 0x6c], 0
je 0x1004ac69
movsx eax, word [edi + 0x1b8]
mov edi, dword [esp + 0x64]
cmp eax, edi
je 0x1004ac6d
push ecx
call fcn.1004edb1
movzx ecx, byte [esi + 0xdd9]
push ecx
push eax
push edi
call fcn.1004bcfd
add esp, 0x10
jmp 0x1004ac6d
mov edi, dword [esp + 0x64]
movss xmm1, dword [esp + 0x50]
lea eax, [esp + 0x30]
movss xmm0, dword [esp + 0x3c]
addss xmm0, dword [esp + 0x44]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x30]
movss dword [esp + 0x30], xmm1
push dword [esp + 0x5c]
addss xmm0, dword [esi + 0x37e0]
push ecx
push ecx
movss dword [esp + 4], xmm1
movss dword [esp], xmm1
push eax
lea eax, [esp + 0x50]
movss dword [esp + 0x44], xmm0
push eax
mov eax, dword [esp + 0x78]
push dword [eax + 0x264]
call fcn.10014fc9
movss xmm1, dword [esp + 0x70]
add esp, 0x20
subss xmm1, dword [esp + 0x38]
movss xmm0, dword [esp + 0x30]
comiss xmm0, xmm1
jbe 0x1004ad18
cmp byte [esp + 0x6d], 0
je 0x1004ad18
cmp dword [esi + 0x3e8c], 0
jne 0x1004ad18
push 0x800
call fcn.1000c3ce
pop ecx
test al, al
je 0x1004ad18
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
push ecx
sub eax, ecx
push eax
push str._.s
call fcn.1000b421
add esp, 0xc
xor eax, eax
inc eax
push eax
call fcn.1000d037
pop ecx
test al, al
je 0x1004ad39
push 0
call fcn.1000c3ce
pop ecx
test al, al
je 0x1004ad39
push edi
call fcn.1004bb98
pop ecx
pop edi
pop esi
add esp, 0x68
ret