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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x2c]
mov eax, dword [edi + 0x60]
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x10]
and eax, 0xffffc000
mov ecx, dword [edi + 0x6c]
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
mov ecx, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
lea eax, [ecx - 1]
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x14]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
mov ebx, eax
sar ebx, 0xe
lea eax, [esi - 1]
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x48]
dec eax
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [esp + 0x48]
sar eax, 0xe
mov dword [esp + 0xa0], eax
lea eax, [edx + 1]
mov edx, dword [edi + 0x10]
shl eax, 0xe
sub eax, edx
mov edx, dword [esp + 0x3c]
shl edx, 0xe
sub ecx, edx
mov edx, dword [edi + 0x14]
add ecx, 0x4000
mov dword [esp + 0x84], ecx
lea ecx, [ebx + 1]
shl ecx, 0xe
sub ecx, edx
mov edx, dword [esp + 0x44]
shl edx, 0xe
sub esi, edx
mov edx, dword [esp + 0x44]
add esi, 0x4000
sub edx, ebx
cmp edx, 2
mov dword [esp + 0x30], eax
mov dword [esp + 0x9c], esi
jge 0x53fd3e
mov ecx, dword [edi + 0x1c]
sub ecx, dword [edi + 0x14]
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
sub esi, edx
cmp esi, 2
jge 0x53fd57
mov eax, dword [edi + 0x18]
sub eax, dword [edi + 0x10]
mov dword [esp + 0x30], eax
fild dword [esp + 0x50]
mov esi, dword [edi + 0x44]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x44]
cmp ebx, ecx
fmul dword [0x5e9724]
mov dword [esp + 0x24], esi
mov dword [esp + 0x54], ebx
fdivr dword [0x5e971c]
fstp dword [esp + 0x2c]
jge 0x54024c
shl edx, 4
mov dword [esp + 0x98], edx
jmp 0x53fda0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x98]
lea ecx, [ecx]
mov ecx, dword [edi + 0x40]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 8]
imul eax, ebx
add eax, dword [edi + 4]
add eax, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
imul dword [esp + 0x50]
shrd eax, edx, 0xe
mov dword [esp + 0x18], eax
mov eax, esi
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
mov ebx, eax
mov eax, dword [esp + 0x18]
lea eax, [eax + esi - 1]
or eax, 0x3fff
sar ebx, 0xe
inc eax
cdq
and edx, 0x3fff
add eax, edx
lea edx, [ebx + 1]
shl edx, 0xe
sub edx, esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], edx
sar eax, 0xe
mov edx, eax
shl edx, 0xe
sub esi, edx
mov edx, dword [esp + 0x24]
lea edx, [esi + edx + 0x4000]
mov dword [esp + 0x4c], edx
mov edx, eax
sub edx, ebx
cmp edx, 2
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x90], edx
jge 0x53fe46
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test edx, edx
fmul dword [0x5e9724]
fstp dword [esp + 0x40]
fild dword [esp + 0x4c]
fmul dword [0x5e9724]
fstp dword [esp + 0x14]
jle 0x53fe7e
fild dword [esp + 0x18]
fmul dword [0x5e9724]
fdivr dword [0x5e971c]
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x3c]
mov dword [esp + 0x4c], edx
jge 0x5401f3
lea edx, [ebx + 1]
dec eax
mov dword [esp + 0x88], edx
mov dword [esp + 0x7c], eax
jmp 0x53feb0
mov ebx, dword [esp + 0xa4]
jmp 0x53feb0
mov eax, ecx
cdq
and edx, 0x3fff
add edx, eax
mov eax, dword [esp + 0xa0]
sar edx, 0xe
dec eax
cmp edx, eax
mov esi, 1
jl 0x53fee5
mov ecx, dword [edi + 0x48]
dec ecx
or ecx, 0x3fff
sub ecx, 0x3fff
mov dword [esp + 0x20], ecx
xor esi, esi
xor eax, eax
fld qword [0x5d8c90]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov eax, ecx
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
and ecx, 0x80003fff
jns 0x53ff23
dec ecx
or ecx, 0xffffc000
inc ecx
mov edx, dword [edi + 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0x38]
fild dword [esp + 0x10]
imul ecx, ebx
fmul dword [0x5e9724]
add ecx, edx
add esi, eax
shl eax, 4
shl esi, 4
mov edx, esi
mov ebx, dword [esp + 0x88]
fstp dword [esp + 0x10]
mov esi, dword [esp + 0x7c]
cmp ebx, esi
fld dword [edx + ecx]
fsub dword [eax + ecx]
fmul dword [esp + 0x10]
fadd dword [eax + ecx]
fmul dword [esp + 0x40]
faddp st(1)
fst qword [esp + 0x58]
fld dword [edx + ecx + 4]
fsub dword [eax + ecx + 4]
fmul dword [esp + 0x10]
fadd dword [eax + ecx + 4]
fmul dword [esp + 0x40]
fadd qword [esp + 0x60]
fst qword [esp + 0x60]
fld dword [edx + ecx + 8]
fsub dword [eax + ecx + 8]
fmul dword [esp + 0x10]
fadd dword [eax + ecx + 8]
fmul dword [esp + 0x40]
fadd qword [esp + 0x68]
fst qword [esp + 0x68]
fld dword [edx + ecx + 0xc]
fsub dword [eax + ecx + 0xc]
fmul dword [esp + 0x10]
fadd dword [eax + ecx + 0xc]
fmul dword [esp + 0x40]
fadd qword [esp + 0x70]
fst qword [esp + 0x70]
jge 0x54002b
sub esi, ebx
add ecx, dword [edi + 0x38]
dec esi
fld dword [edx + ecx]
fsub dword [eax + ecx]
fmul dword [esp + 0x10]
fadd dword [eax + ecx]
faddp st(4)
fld dword [edx + ecx + 4]
fsub dword [eax + ecx + 4]
fmul dword [esp + 0x10]
fadd dword [eax + ecx + 4]
faddp st(3)
fld dword [edx + ecx + 8]
fsub dword [eax + ecx + 8]
fmul dword [esp + 0x10]
fadd dword [eax + ecx + 8]
faddp st(2)
fld dword [edx + ecx + 0xc]
fsub dword [eax + ecx + 0xc]
fmul dword [esp + 0x10]
fadd dword [eax + ecx + 0xc]
faddp st(1)
jne 0x53ffc6
fst qword [esp + 0x70]
fxch st(2)
fst qword [esp + 0x60]
fxch st(3)
fst qword [esp + 0x58]
fstp st(2)
fstp qword [esp + 0x68]
fxch st(1)
jmp 0x54002f
fstp st(0)
fstp st(0)
cmp dword [esp + 0x90], 1
jle 0x5400ad
add ecx, dword [edi + 0x38]
fld dword [edx + ecx]
fsub dword [eax + ecx]
fmul dword [esp + 0x10]
fadd dword [eax + ecx]
fmul dword [esp + 0x14]
faddp st(2)
fxch st(1)
fst qword [esp + 0x58]
fxch st(1)
fld dword [edx + ecx + 4]
fsub dword [eax + ecx + 4]
fmul dword [esp + 0x10]
fadd dword [eax + ecx + 4]
fmul dword [esp + 0x14]
fadd st(1)
fstp qword [esp + 0x60]
fstp st(0)
fld dword [edx + ecx + 8]
fsub dword [eax + ecx + 8]
fmul dword [esp + 0x10]
fadd dword [eax + ecx + 8]
lea eax, [eax + ecx + 0xc]
fmul dword [esp + 0x14]
fadd qword [esp + 0x68]
fstp qword [esp + 0x68]
fld dword [edx + ecx + 0xc]
fsub dword [eax]
fmul dword [esp + 0x10]
fadd dword [eax]
fmul dword [esp + 0x14]
fadd qword [esp + 0x70]
fstp qword [esp + 0x70]
jmp 0x5400af
fstp st(0)
mov eax, dword [esp + 0x1c]
mov ecx, 0x4000
cmp eax, ecx
jne 0x5400c6
cmp dword [esp + 0x34], ecx
je 0x540163
mov eax, dword [ebp + 0x34]
test eax, eax
jne 0x540163
mov eax, dword [esp + 0x18]
fstp st(0)
test eax, eax
je 0x540194
mov eax, dword [esp + 0x34]
imul dword [esp + 0x1c]
shrd eax, edx, 0xe
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
mov eax, dword [esp + 0x38]
fmul dword [0x5e9724]
fld dword [eax]
fld dword [esp + 0x28]
fmul qword [esp + 0x58]
fsub st(1)
fld st(2)
fmulp st(1)
fadd st(1)
fstp dword [eax]
fstp st(0)
fld dword [eax + 4]
fld dword [esp + 0x28]
fmul qword [esp + 0x60]
fsub st(1)
fld st(2)
fmulp st(1)
fadd st(1)
fstp dword [eax + 4]
fstp st(0)
fld dword [eax + 8]
fld dword [esp + 0x28]
fmul qword [esp + 0x68]
fsub st(1)
fld st(2)
fmulp st(1)
fadd st(1)
fstp dword [eax + 8]
fstp st(0)
fld dword [eax + 0xc]
fld dword [esp + 0x28]
fmul qword [esp + 0x70]
fsub st(1)
fmulp st(2)
fxch st(1)
fadd st(1)
fstp dword [eax + 0xc]
fstp st(0)
jmp 0x540198
mov eax, dword [esp + 0x38]
fld dword [esp + 0x2c]
fmul st(1)
fstp dword [eax]
fstp st(0)
fld dword [esp + 0x2c]
fmul qword [esp + 0x60]
fstp dword [eax + 4]
fld dword [esp + 0x2c]
fmul qword [esp + 0x68]
fstp dword [eax + 8]
fld dword [esp + 0x2c]
fmul qword [esp + 0x70]
fstp dword [eax + 0xc]
jmp 0x540198
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x4c]
add eax, 0x10
mov dword [esp + 0x38], eax
cmp esi, dword [esp + 0x48]
jne 0x5401d0
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x30]
imul dword [esp + 0x78]
shrd eax, edx, 0xe
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x8c]
jmp 0x5401d8
mov eax, dword [esp + 0x78]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x4c], esi
jl 0x53fea1
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x24]
lea eax, [ecx - 2]
cmp ebx, eax
jne 0x54022d
mov eax, dword [esp + 0x1c]
imul dword [esp + 0x50]
shrd eax, edx, 0xe
mov dword [esp + 0x94], eax
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x1c], edx
jmp 0x540239
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0x4000
add esi, eax
inc ebx
cmp ebx, ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x54], ebx
jl 0x53fd92
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30