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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x100ab018]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x30], esi
movss xmm0, dword [esi + 0x24]
mulss xmm0, dword [esi + 0x2c]
cvttss2si eax, xmm0
movss xmm0, dword [esi + 0x30]
mulss xmm0, dword [esi + 0x28]
mov dword [esp + 0x20], eax
cvttss2si edi, xmm0
mov dword [esp + 0x24], edi
test eax, eax
jle 0x1004a771
test edi, edi
jle 0x1004a771
mov ebx, dword [0x100ae168]
test ebx, ebx
je 0x1004a1d6
mov ebx, dword [ebx + 0x78]
jmp 0x1004a1d8
xor ebx, ebx
lea eax, [esp + 0x50]
mov dword [esp + 0x18], ebx
push eax
push 0x84e0
call dword [0x100ae1f8]
push 0x84c0
call dword [0x100ae170]
lea eax, [esp + 0x34]
push eax
push 0x8b8d
call dword [0x100ae1f8]
lea eax, [esp + 0x4c]
push eax
push 0x8069
call dword [0x100ae1f8]
cmp dword [ebx], 0x14a
jae 0x1004a22f
cmp byte [ebx + 0x25], 0
jne 0x1004a22f
mov dword [esp + 0x38], 0
jmp 0x1004a23f
lea eax, [esp + 0x38]
push eax
push 0x8919
call dword [0x100ae1f8]
lea eax, [esp + 0x58]
push eax
push 0x8894
call dword [0x100ae1f8]
lea eax, [esp + 0x54]
push eax
push 0x85b5
call dword [0x100ae1f8]
lea eax, [esp + 0x74]
push eax
push 0xb40
call dword [0x100ae1f8]
lea eax, [esp + 0x7c]
push eax
push 0xba2
call dword [0x100ae1f8]
lea eax, [esp + 0x8c]
push eax
push 0xc10
call dword [0x100ae1f8]
lea eax, [esp + 0x70]
push eax
push 0x80c9
call dword [0x100ae1f8]
lea eax, [esp + 0x6c]
push eax
push 0x80c8
call dword [0x100ae1f8]
lea eax, [esp + 0x68]
push eax
push 0x80cb
call dword [0x100ae1f8]
lea eax, [esp + 0x64]
push eax
push 0x80ca
call dword [0x100ae1f8]
lea eax, [esp + 0x60]
push eax
push 0x8009
call dword [0x100ae1f8]
lea eax, [esp + 0x5c]
push eax
push 0x883d
call dword [0x100ae1f8]
mov eax, dword [0x100ae220]
push 0xbe2
call eax
mov ecx, dword [0x100ae220]
push 0xb44
mov byte [esp + 0x17], al
call ecx
mov ecx, dword [0x100ae220]
push 0xb71
mov byte [esp + 0x18], al
call ecx
mov ecx, dword [0x100ae220]
push 0xb90
mov byte [esp + 0x19], al
call ecx
mov ecx, dword [0x100ae220]
push 0xc11
mov byte [esp + 0x1a], al
call ecx
cmp dword [ebx], 0x136
mov byte [esp + 0x17], al
jb 0x1004a361
mov ecx, dword [0x100ae220]
push 0x8f9d
call ecx
mov byte [esp + 0x12], al
jmp 0x1004a366
mov byte [esp + 0x12], 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 1
call dword [0x100ae1ec]
push dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, esi
push edi
call fcn.10049f00
movss xmm0, dword [esi + 0x1c]
xor ecx, ecx
movss dword [esp + 0x44], xmm0
add esp, 8
movss xmm0, dword [esi + 0x20]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esi + 0x2c]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esi + 0x30]
movss dword [esp + 0x48], xmm0
mov dword [esp + 0x2c], ecx
cmp dword [esi + 4], ecx
jle 0x1004a5b6
nop dword [eax]
mov eax, dword [esi + 0x18]
mov edi, dword [eax + ecx*4]
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0xc]
add ebx, ebx
lea esi, [eax + eax*4]
mov eax, dword [esp + 0x18]
shl esi, 2
cmp byte [eax + 0x59], 0
je 0x1004a44c
cmp dword [eax + 0x50], esi
jge 0x1004a40d
push 0x88e0
push 0
push esi
push 0x8892
mov dword [eax + 0x50], esi
call dword [0x100ae194]
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x54], ebx
jge 0x1004a428
push 0x88e0
push 0
push ebx
push 0x8893
mov dword [eax + 0x54], ebx
call dword [0x100ae194]
push dword [edi + 0x20]
push esi
push 0
push 0x8892
call dword [0x100ae198]
push dword [edi + 0x14]
push ebx
push 0
push 0x8893
call dword [0x100ae198]
jmp 0x1004a474
push 0x88e0
push dword [edi + 0x20]
push esi
push 0x8892
call dword [0x100ae194]
push 0x88e0
push dword [edi + 0x14]
push ebx
push 0x8893
call dword [0x100ae194]
cmp dword [edi], 0
mov dword [esp + 0x28], 0
jle 0x1004a59c
xor ebx, ebx
mov esi, dword [edi + 8]
add esi, ebx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1004a4c1
cmp eax, 0xfffffff8
jne 0x1004a4b5
push dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
call fcn.10049f00
add esp, 8
jmp 0x1004a588
push esi
push edi
call eax
add esp, 8
jmp 0x1004a588
movss xmm4, dword [esi]
movss xmm2, dword [esi + 8]
subss xmm4, dword [esp + 0x3c]
subss xmm2, dword [esp + 0x3c]
movss xmm3, dword [esi + 4]
movss xmm1, dword [esi + 0xc]
subss xmm3, dword [esp + 0x44]
mulss xmm4, dword [esp + 0x40]
mulss xmm2, dword [esp + 0x40]
subss xmm1, dword [esp + 0x44]
mulss xmm3, dword [esp + 0x48]
comiss xmm4, xmm2
mulss xmm1, dword [esp + 0x48]
jae 0x1004a588
comiss xmm3, xmm1
jae 0x1004a588
movaps xmm0, xmm1
subss xmm2, xmm4
subss xmm0, xmm3
cvttss2si eax, xmm0
movd xmm0, dword [esp + 0x24]
push eax
cvtdq2ps xmm0, xmm0
cvttss2si eax, xmm2
subss xmm0, xmm1
push eax
cvttss2si eax, xmm0
push eax
cvttss2si eax, xmm4
push eax
call dword [0x100ae238]
push dword [esi + 0x10]
push 0xde1
call dword [0x100ae180]
mov eax, dword [esp + 0x18]
cmp dword [eax], 0x140
mov eax, dword [esi + 0x18]
jb 0x1004a575
push dword [esi + 0x14]
add eax, eax
push eax
push 0x1403
push dword [esi + 0x1c]
push 4
call dword [0x100ae1d4]
jmp 0x1004a588
add eax, eax
push eax
push 0x1403
push dword [esi + 0x1c]
push 4
call dword [0x100ae1d0]
mov eax, dword [esp + 0x28]
add ebx, 0x28
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [edi]
jl 0x1004a487
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esi + 4]
jl 0x1004a3d0
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 1
call dword [0x100ae1c0]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1004a5db
mov eax, dword [0x100ae224]
push ecx
call eax
test al, al
je 0x1004a5e2
mov ecx, dword [esp + 0x34]
push ecx
call dword [0x100ae250]
push dword [esp + 0x4c]
push 0xde1
call dword [0x100ae180]
cmp dword [ebx], 0x14a
jae 0x1004a5ff
cmp byte [ebx + 0x25], 0
je 0x1004a60b
push dword [esp + 0x38]
push 0
call dword [0x100ae17c]
push dword [esp + 0x50]
call dword [0x100ae170]
push dword [esp + 0x54]
call dword [0x100ae184]
push dword [esp + 0x58]
push 0x8892
call dword [0x100ae178]
push dword [esp + 0x5c]
push dword [esp + 0x64]
call dword [0x100ae18c]
push dword [esp + 0x64]
push dword [esp + 0x6c]
push dword [esp + 0x74]
push dword [esp + 0x7c]
call dword [0x100ae190]
cmp byte [esp + 0x13], 0
push 0xbe2
je 0x1004a666
call dword [0x100ae1d8]
jmp 0x1004a66c
call dword [0x100ae1c8]
cmp byte [esp + 0x14], 0
push 0xb44
je 0x1004a680
call dword [0x100ae1d8]
jmp 0x1004a686
call dword [0x100ae1c8]
cmp byte [esp + 0x15], 0
push 0xb71
je 0x1004a69a
call dword [0x100ae1d8]
jmp 0x1004a6a0
call dword [0x100ae1c8]
cmp byte [esp + 0x16], 0
push 0xb90
je 0x1004a6b4
call dword [0x100ae1d8]
jmp 0x1004a6ba
call dword [0x100ae1c8]
cmp byte [esp + 0x17], 0
push 0xc11
je 0x1004a6ce
call dword [0x100ae1d8]
jmp 0x1004a6d4
call dword [0x100ae1c8]
cmp dword [ebx], 0x136
jb 0x1004a70f
cmp byte [esp + 0x12], 0
push 0x8f9d
je 0x1004a6f0
call dword [0x100ae1d8]
jmp 0x1004a6f6
call dword [0x100ae1c8]
cmp dword [ebx], 0x136
jbe 0x1004a70f
cmp byte [ebx + 0x26], 0
jne 0x1004a70f
push dword [esp + 0x74]
push 0x408
jmp 0x1004a727
push dword [esp + 0x74]
push 0x404
call dword [0x100ae230]
push dword [esp + 0x78]
push 0x405
call dword [0x100ae230]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x88]
call dword [0x100ae258]
push dword [esp + 0x98]
push dword [esp + 0x98]
push dword [esp + 0x98]
push dword [esp + 0x98]
call dword [0x100ae238]
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004d2bc
mov esp, ebp
pop ebp
ret