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

Disassembly:
sub esp, 0xb4
push ebx
mov ebx, dword [esp + 0xbc]
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
cmp dword [ebx + 4], 0
je 0x1004ab25
call fcn.1002f910
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
cmp eax, ecx
je 0x1004ab25
push ebp
push edi
mov ebp, dword [eax]
mov ecx, esi
mov eax, dword [ebx]
mov edi, dword [eax + 4]
push edi
push dword [eax]
lea eax, [esp + 0x18]
mov dword [esp + 0x24], edi
push ebp
push eax
call fcn.1004a4f0
mov esi, dword [esp + 0x10]
cmp esi, edi
je 0x1004ab0a
movups xmm0, xmmword [esi + 8]
mov edi, dword [esi]
lea ecx, [esp + 0x48]
push ebp
movups xmmword [esp + 0x4c], xmm0
movq xmm0, qword [esi + 0x18]
movq qword [esp + 0x5c], xmm0
movups xmm0, xmmword [edi + 8]
movups xmmword [esp + 0x64], xmm0
movq xmm0, qword [edi + 0x18]
movq qword [esp + 0x74], xmm0
call fcn.1003d350
fstp qword [esp + 0x24]
movsd xmm0, qword [esp + 0x24]
comisd xmm0, xmmword [0x1009bb30]
jb 0x1004a9c7
movups xmm0, xmmword [esp + 0x60]
movups xmm1, xmmword [ebp]
movups xmmword [esp + 0x2c], xmm0
movq xmm0, qword [esp + 0x70]
movups xmmword [esp + 0x60], xmm1
movq qword [esp + 0x3c], xmm0
movq xmm0, qword [ebp + 0x10]
movq qword [esp + 0x70], xmm0
movups xmmword [edi + 8], xmm1
movq xmm0, qword [esp + 0x70]
movq qword [edi + 0x18], xmm0
cmp edi, dword [esp + 0x1c]
jne 0x1004a90c
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x11], 0
je 0x1004a99d
mov eax, dword [ebx]
movups xmm0, xmmword [ebp]
mov eax, dword [eax]
movups xmmword [eax + 8], xmm0
movq xmm0, qword [ebp + 0x10]
movq qword [eax + 0x18], xmm0
mov edi, dword [ebx]
mov edi, dword [edi]
mov edi, dword [edi]
lea eax, [esp + 0x60]
movups xmm0, xmmword [esp + 0x60]
push eax
lea eax, [esp + 0x4c]
movups xmmword [esp + 0x98], xmm0
push eax
movq xmm0, qword [esp + 0x78]
lea eax, [esp + 0x34]
movq qword [esp + 0xac], xmm0
movups xmm0, xmmword [edi + 8]
push eax
movups xmmword [esp + 0xb8], xmm0
movq xmm0, qword [edi + 0x18]
movq qword [esp + 0xc8], xmm0
call fcn.1003c5a0
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x40]
fstp qword [esp + 0x38]
push eax
call fcn.1003c5a0
movsd xmm0, qword [esp + 0x3c]
add esp, 0x18
fstp qword [esp + 0x1c]
comisd xmm0, xmmword [esp + 0x1c]
jbe 0x1004a9af
lea eax, [esp + 0x2c]
push eax
push edi
lea eax, [esp + 0x84]
jmp 0x1004ab02
lea eax, [esp + 0x2c]
push eax
push edi
lea eax, [esp + 0x80]
jmp 0x1004ab02
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x14], eax
push eax
lea eax, [esp + 0x88]
jmp 0x1004ab02
xorps xmm1, xmm1
comisd xmm1, xmm0
jb 0x1004aaf3
movups xmm0, xmmword [esp + 0x48]
movups xmm1, xmmword [ebp]
movups xmmword [esp + 0x2c], xmm0
movq xmm0, qword [esp + 0x58]
movq qword [esp + 0x3c], xmm0
movups xmmword [esp + 0x48], xmm1
movq xmm0, qword [ebp + 0x10]
movq qword [esp + 0x58], xmm0
movups xmmword [esi + 8], xmm1
movq xmm0, qword [esp + 0x58]
movq qword [esi + 0x18], xmm0
mov eax, dword [ebx]
cmp esi, dword [eax]
jne 0x1004aa36
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x11], 0
je 0x1004aacf
mov esi, dword [eax + 4]
movups xmm0, xmmword [ebp]
movups xmmword [esi + 8], xmm0
movq xmm0, qword [ebp + 0x10]
movq qword [esi + 0x18], xmm0
mov esi, dword [esi + 4]
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x14], esi
push eax
movups xmm0, xmmword [esi + 8]
lea eax, [esp + 0x34]
push eax
movups xmmword [esp + 0xa0], xmm0
movq xmm0, qword [esi + 0x18]
movq qword [esp + 0xb0], xmm0
movups xmm0, xmmword [esp + 0x54]
movups xmmword [esp + 0xb8], xmm0
movq xmm0, qword [esp + 0x64]
movq qword [esp + 0xc8], xmm0
call fcn.1003c5a0
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x40]
fstp qword [esp + 0x30]
push eax
call fcn.1003c5a0
fstp qword [esp + 0x3c]
movsd xmm0, qword [esp + 0x3c]
add esp, 0x18
comisd xmm0, xmmword [esp + 0x1c]
jbe 0x1004aae4
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x14], eax
push eax
lea eax, [esp + 0x90]
jmp 0x1004ab02
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x14], eax
push eax
lea eax, [esp + 0x8c]
jmp 0x1004ab02
lea eax, [esp + 0x2c]
push eax
push edi
lea eax, [esp + 0x94]
jmp 0x1004ab02
mov eax, dword [esi]
push ebp
mov dword [esp + 0x14], eax
push eax
lea eax, [esp + 0x98]
push eax
mov ecx, ebx
call fcn.1004a750
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x44]
jne 0x1004a832
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xb4
ret 8