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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x10]
and eax, 0xffffc000
cdq
mov ecx, dword [ebx + 0x6c]
and edx, 0x3fff
add eax, edx
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + 0x18]
mov esi, eax
lea eax, [ecx - 1]
or eax, 0x3fff
sar esi, 0xe
inc eax
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x14]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x10], eax
mov edi, dword [ebx + 0x1c]
lea eax, [edi - 1]
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x44]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x4c]
dec eax
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [ebx + 0x10]
sar eax, 0xe
mov dword [esp + 0x80], eax
lea eax, [esi + 1]
shl eax, 0xe
sub eax, edx
mov edx, dword [esp + 0x20]
shl edx, 0xe
sub ecx, edx
mov edx, dword [ebx + 0x14]
add ecx, 0x4000
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], ecx
lea ecx, [eax + 1]
shl ecx, 0xe
sub ecx, edx
mov edx, dword [esp + 0x30]
shl edx, 0xe
sub edi, edx
mov edx, dword [esp + 0x30]
add edi, 0x4000
sub edx, eax
cmp edx, 2
mov dword [esp + 0x7c], esi
mov dword [esp + 0x70], edi
jge 0x53a434
mov ecx, dword [ebx + 0x1c]
sub ecx, dword [ebx + 0x14]
mov eax, dword [esp + 0x20]
sub eax, esi
cmp eax, 2
jge 0x53a449
mov eax, dword [ebx + 0x18]
sub eax, dword [ebx + 0x10]
mov dword [esp + 0x54], eax
fild dword [esp + 0x38]
mov eax, dword [esp + 0x40]
cdq
sub eax, edx
fmul qword [0x5eb2b8]
mov edx, eax
mov eax, dword [ebx + 0x44]
fdivr qword [0x5d6138]
sar edx, 1
lea eax, [edx + eax + 0x2000]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
fstp qword [esp + 0xb8]
jge 0x53a9a5
mov ecx, esi
shl ecx, 4
mov dword [esp + 0x9c], ecx
jmp 0x53a4a4
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0xc]
mov edi, dword [ebx + 0x40]
mov dword [esp + 0x14], edx
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xc]
and eax, 0x80003fff
mov dword [esp + 0x24], edi
jns 0x53a4d9
dec eax
or eax, 0xffffc000
inc eax
mov edx, dword [ebx + 4]
fld qword [0x5d8c90]
sar eax, 2
fstp qword [esp + 0xa0]
shl eax, 4
add eax, 0x6a3960
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 8]
imul eax, dword [esp + 0x10]
add eax, edx
add eax, ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x80]
push eax
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0xdc]
push eax
call fcn.00537220
cmp esi, dword [esp + 0x20]
mov dword [esp + 0x5c], esi
jge 0x53a945
jmp 0x53a540
mov edi, dword [esp + 0x24]
jmp 0x53a540
mov eax, dword [esp + 0x14]
imul dword [esp + 0x38]
shrd eax, edx, 0xe
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov eax, edi
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
mov esi, eax
lea eax, [ecx + edi - 1]
or eax, 0x3fff
sar esi, 0xe
inc eax
cdq
and edx, 0x3fff
add edx, eax
lea eax, [esi + 1]
shl eax, 0xe
sub eax, edi
sar edx, 0xe
mov dword [esp + 0x1c], eax
mov eax, edx
shl eax, 0xe
sub ecx, eax
mov eax, edx
sub eax, esi
cmp eax, 2
lea ecx, [ecx + edi + 0x4000]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
jge 0x53a5b2
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
test eax, eax
fmul dword [0x5e9724]
fild dword [esp + 0x34]
fmul dword [0x5e9724]
jle 0x53a5e5
fild dword [esp + 0x18]
fmul qword [0x5eb2b8]
fdivr qword [0x5d6138]
fstp qword [esp + 0xa0]
xor eax, eax
mov ecx, 0x20
lea edi, [esp + 0xe0]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x34]
mov ebx, esi
lea edi, [edx - 1]
shl ebx, 4
inc esi
mov edx, edi
sub edx, esi
mov dword [esp + 0x94], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x98], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x74], edx
lea eax, [esp + 0xe8]
jmp 0x53a640
mov esi, dword [esp + 0x98]
mov edx, dword [esp + 0x74]
lea ecx, [ecx]
mov ecx, dword [esp + 0x1c]
fld st(1)
mov ecx, dword [esp + ecx*4 + 0xd0]
add ecx, dword [esp + 0x58]
imul ecx, dword [esp + 0x8c]
add ecx, dword [esp + 0x94]
cmp edx, 4
fmul dword [ebx + ecx]
fadd qword [eax - 8]
fst qword [esp + 0xc8]
fstp qword [eax - 8]
fld st(1)
fmul dword [ecx + ebx + 4]
fadd qword [eax]
fst qword [esp + 0xc0]
fstp qword [eax]
fld st(1)
fmul dword [ecx + ebx + 8]
fadd qword [eax + 8]
fst qword [esp + 0x60]
fstp qword [eax + 8]
fld st(1)
fmul dword [ebx + ecx + 0xc]
fadd qword [eax + 0x10]
fst qword [esp + 0x48]
fstp qword [eax + 0x10]
jl 0x53a734
fld qword [esp + 0xc8]
sub edi, esi
fld qword [esp + 0xc0]
sub edi, 4
fld qword [esp + 0x60]
mov edx, esi
fld qword [esp + 0x48]
shl edx, 4
shr edi, 2
inc edi
lea edx, [edx + ecx + 8]
lea esi, [esi + edi*4]
fld dword [edx + 0x28]
add edx, 0x40
dec edi
fadd dword [edx - 0x28]
fadd dword [edx - 0x48]
fadd dword [edx - 0x38]
faddp st(4)
fld dword [edx - 0x14]
fadd dword [edx - 0x24]
fadd dword [edx - 0x34]
fadd dword [edx - 0x44]
faddp st(3)
fld dword [edx - 0x10]
fadd dword [edx - 0x20]
fadd dword [edx - 0x30]
fadd dword [edx - 0x40]
faddp st(2)
fld dword [edx - 0xc]
fadd dword [edx - 0x1c]
fadd dword [edx - 0x2c]
fadd dword [edx - 0x3c]
faddp st(1)
jne 0x53a6d5
mov edi, dword [esp + 0x34]
fstp qword [esp + 0x60]
fstp qword [esp + 0x48]
fxch st(1)
fstp qword [eax - 8]
fstp qword [eax]
fld qword [esp + 0x48]
fstp qword [eax + 8]
fld qword [esp + 0x60]
fstp qword [eax + 0x10]
cmp esi, edi
jge 0x53a789
fld qword [eax - 8]
mov edx, esi
fld qword [eax]
shl edx, 4
fld qword [eax + 8]
sub edi, esi
fld qword [eax + 0x10]
lea edx, [edx + ecx + 8]
add esi, edi
fld dword [edx - 8]
add edx, 0x10
dec edi
faddp st(4)
fld dword [edx - 0x14]
faddp st(3)
fld dword [edx - 0x10]
faddp st(2)
fadd dword [edx - 0xc]
jne 0x53a750
mov edi, dword [esp + 0x34]
fstp qword [esp + 0x60]
fstp qword [esp + 0x48]
fxch st(1)
fstp qword [eax - 8]
fstp qword [eax]
fld qword [esp + 0x48]
fstp qword [eax + 8]
fld qword [esp + 0x60]
fstp qword [eax + 0x10]
cmp dword [esp + 0x3c], 1
jle 0x53a7bf
fld st(0)
shl esi, 4
fmul dword [ecx + esi]
add ecx, esi
fadd qword [eax - 8]
fstp qword [eax - 8]
fld st(0)
fmul dword [ecx + 4]
fadd qword [eax]
fstp qword [eax]
fld st(0)
fmul dword [ecx + 8]
fadd qword [eax + 8]
fstp qword [eax + 8]
fld st(0)
fmul dword [ecx + 0xc]
fadd qword [eax + 0x10]
fstp qword [eax + 0x10]
mov ecx, dword [esp + 0x1c]
inc ecx
add eax, 0x20
cmp ecx, 4
mov dword [esp + 0x1c], ecx
jl 0x53a632
mov eax, dword [esp + 0x14]
fstp st(0)
mov esi, 0x4000
fstp st(0)
cmp eax, esi
jne 0x53a7ef
cmp dword [esp + 0x28], esi
je 0x53a8af
mov eax, dword [ebp + 0x34]
test eax, eax
jne 0x53a8af
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x53a8d3
mov eax, dword [esp + 0x14]
imul dword [esp + 0x28]
shrd eax, edx, 0xe
mov dword [esp + 0x90], eax
fild dword [esp + 0x90]
mov eax, dword [esp + 0x44]
sub esp, 8
fmul dword [0x5e9724]
lea ecx, [esp + 0xe8]
lea edx, [esp + 0xb0]
fstp dword [esp + 0x44]
fld qword [esp + 0xa8]
fstp qword [esp]
push eax
push ecx
push edx
call fcn.005372d0
mov eax, dword [esp + 0x2c]
fld dword [eax]
fld dword [esp + 0x3c]
fld dword [esp + 0xa8]
fsub st(2)
fmul st(1)
fadd st(2)
fstp dword [eax]
fld dword [eax + 4]
fld dword [esp + 0xac]
fsub st(1)
fmul st(2)
fadd st(1)
fstp dword [eax + 4]
fstp st(0)
fld dword [eax + 8]
fld dword [esp + 0xb0]
fsub st(1)
fmul st(2)
fadd st(1)
fstp dword [eax + 8]
fstp st(0)
fld dword [eax + 0xc]
fld dword [esp + 0xb4]
fsub st(1)
fmul st(2)
fadd st(1)
fstp dword [eax + 0xc]
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x53a8d7
fld qword [esp + 0xb8]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
sub esp, 8
fstp qword [esp]
push eax
lea ecx, [esp + 0xec]
push ecx
push edx
call fcn.005372d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x5c]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffffe
cmp ecx, eax
jne 0x53a91b
mov eax, dword [esp + 0x14]
imul dword [esp + 0x38]
shrd eax, edx, 0xe
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x88]
add edx, eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x14], edx
jmp 0x53a92d
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add edx, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x20]
mov ebx, dword [ebp + 0x2c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x5c], ecx
jl 0x53a537
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
lea eax, [edi - 2]
cmp ecx, eax
jne 0x53a982
mov eax, dword [esp + 0x28]
imul dword [esp + 0x40]
shrd eax, edx, 0xe
mov dword [esp + 0x84], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x84]
add edx, eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x28], edx
jmp 0x53a998
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x40]
add edx, eax
mov dword [esp + 0x28], 0x4000
mov dword [esp + 0xc], edx
inc ecx
cmp ecx, edi
mov dword [esp + 0x10], ecx
jl 0x53a49d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30