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

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov edi, eax
cmp edi, 6
mov eax, dword [0x9540bc]
mov esi, dword [eax + 0x2c]
mov ecx, dword [eax + 0x30]
jb 0x5aea6f
xor edx, edx
xor ebp, ebp
jmp 0x5aea77
mov edx, dword [eax + edi*8 + 0x34]
mov ebp, dword [eax + edi*8 + 0x38]
test ecx, ecx
mov edi, dword [0xa6f970]
jle 0x5aeaaa
sub esi, edx
jns 0x5aea89
add esi, edi
js 0x5aea85
mov edx, dword [0xa6f96c]
mov eax, esi
imul eax, eax, 0x88
movzx edi, byte [eax + edx + 0x6c]
lea ebx, [eax + edx]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add ebp, eax
jmp 0x5aead3
lea eax, [edx + esi]
cdq
idiv edi
mov esi, edx
mov edx, dword [0xa6f96c]
mov eax, esi
imul eax, eax, 0x88
movzx edi, byte [eax + edx + 0x6c]
lea ebx, [eax + edx]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
sub eax, ebp
mov ebp, eax
cmp ebp, 1
lea eax, [edi - 2]
jge 0x5aeae2
mov ebp, 1
jmp 0x5aeae8
cmp ebp, eax
jle 0x5aeae8
mov ebp, eax
mov edx, dword [ebx + 0x78]
movzx eax, byte [edx + 0x13]
lea eax, [eax + ebp + 1]
lea eax, [eax + eax*2]
shl eax, 4
mov edi, dword [eax + edx]
mov ebx, dword [eax + edx + 4]
add eax, edx
mov edx, dword [eax + 8]
mov dword [esp + 0x30], edx
lea edx, [ecx + ecx*2]
shl edx, 4
add eax, edx
mov edx, dword [eax]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], edx
lea edx, [ecx + esi]
mov dword [esp + 0x18], eax
lea eax, [edx + ecx*2]
test eax, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
jge 0x5aeb3f
add eax, dword [0xa6f970]
js 0x5aeb37
cdq
idiv dword [0xa6f970]
mov eax, dword [0xa6f96c]
imul edx, edx, 0x88
lea ecx, [edx + eax]
mov edx, dword [ecx + 0x78]
movzx eax, byte [edx + 0x13]
movzx ecx, byte [ecx + 0x6c]
add eax, 1
lea eax, [eax + eax*2]
shl eax, 4
add eax, edx
sub ecx, 2
cmp ebp, 1
jge 0x5aeb79
mov ecx, 1
jmp 0x5aeb7f
cmp ebp, ecx
jg 0x5aeb7f
mov ecx, ebp
fld dword [esp + 0x10]
lea ecx, [ecx + ecx*2]
fsub dword [esp + 0x28]
shl ecx, 4
mov edx, dword [eax + ecx]
add eax, ecx
mov ecx, dword [eax + 4]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
mov dword [esp + 0x1c], edx
fsub dword [esp + 0x2c]
mov edx, dword [eax + 8]
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ecx
fstp dword [esp + 0x14]
push eax
fld dword [esp + 0x1c]
mov ecx, eax
fsub dword [esp + 0x34]
push ecx
mov dword [esp + 0x2c], edx
fstp dword [esp + 0x20]
call fcn.00402020
fld dword [esp + 0x24]
lea edx, [esp + 0x24]
fsub dword [esp + 0x30]
push edx
mov eax, edx
push eax
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fsub dword [esp + 0x3c]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fsub dword [esp + 0x40]
fstp dword [esp + 0x34]
call fcn.00402020
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00407df0
fld dword [esp + 0x40]
movss xmm0, dword [esp + 0x2c]
fstp dword [esp + 0x7c]
mov esi, dword [esp + 0x84]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [esp + 0x60], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esp + 0x50]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [esp + 0x54]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [esp + 0x58]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [esp + 0x38]
add esp, 0x1c
test esi, esi
movss dword [esp + 0x58], xmm0
movss xmm0, dword [esp + 0x20]
movss dword [esp + 0x5c], xmm0
je 0x5aecbc
fld dword [esp + 0x28]
push ecx
fstp dword [esp]
call fcn.0058fe30
fld dword [esp + 0x30]
fstp dword [esp]
call fcn.0058fe30
fld dword [esp + 0x34]
fstp dword [esp]
call fcn.0058fe30
mov ecx, dword [esp + 0x34]
mov dword [esi], edi
mov dword [esi + 4], ebx
add esp, 4
mov dword [esi + 8], ecx
mov edi, dword [esp + 0x6c]
test edi, edi
je 0x5aed3f
fld dword [esp + 0x10]
push ecx
fstp dword [esp]
call fcn.0058fe30
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0058fe30
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.0058fe30
fld dword [esp + 0x38]
fstp dword [esp]
call fcn.0058fe30
fld dword [esp + 0x3c]
fstp dword [esp]
call fcn.0058fe30
fld dword [esp + 0x40]
fstp dword [esp]
call fcn.0058fe30
fld dword [esp + 0x20]
fstp dword [esp]
call fcn.0058fe30
fld dword [esp + 0x24]
fstp dword [esp]
call fcn.0058fe30
fld dword [esp + 0x28]
fstp dword [esp]
call fcn.0058fe30
mov ecx, 9
lea esi, [esp + 0x44]
add esp, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8