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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [ebp + 0xc]
push ebx
add eax, 0x80
push esi
mov dword [esp + 0x8c], eax
add eax, 0x40
push edi
lea ebx, [eax + 0x40]
mov dword [esp + 0x88], ebx
lea edx, [ebx + 0x240]
mov dword [esp + 0x94], edx
lea esi, [edx + 0x200]
mov dword [esp + 0x74], esi
lea edi, [esi + 0x200]
mov dword [esp + 0x70], edi
lea eax, [edi + 0x400]
mov dword [esp + 0x5c], eax
add eax, 0x200
mov dword [esp + 0x9c], eax
add eax, 0x200
mov dword [esp + 0x10], eax
add eax, 0x200
mov dword [esp + 0x98], eax
xor ecx, ecx
mov eax, dword [ebp + 8]
fld qword [ecx + eax]
fcomp qword [0x58a368]
fnstsw ax
test ah, 1
jne 0x536594
xor eax, eax
mov dword [esp + ecx + 0xe8], eax
mov dword [esp + ecx + 0x228], eax
mov dword [esp + ecx + 0xec], 0x3ff00000
mov dword [esp + ecx + 0x22c], 0xbff00000
jmp 0x5365c5
xor eax, eax
mov dword [esp + ecx + 0xe8], eax
mov dword [esp + ecx + 0x228], eax
mov eax, dword [ebp + 8]
mov dword [esp + ecx + 0xec], 0xbff00000
mov dword [esp + ecx + 0x22c], 0x3ff00000
fld qword [ecx + eax]
fchs
fstp qword [ecx + eax]
add ecx, 8
cmp ecx, 0x140
jl 0x536559
lea eax, [esp + 0xe8]
lea ecx, [ebx + 0x40]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x20], 0x28
mov eax, dword [esp + 0x3c]
lea ebx, [esp + 0xe8]
fld qword [eax]
fcomp qword [0x58a368]
fnstsw ax
test ah, 1
je 0x53660f
lea ebx, [esp + 0x228]
lea eax, [ebx + 0x18]
mov ebx, 8
fld qword [eax - 0x10]
fmul qword [ecx]
add ecx, 8
add edx, 8
add esi, 8
add edi, 8
add eax, 0x28
dec ebx
fstp qword [ecx - 8]
fld qword [eax - 0x30]
fmul qword [edx - 8]
fstp qword [edx - 8]
fld qword [esi - 8]
fmul qword [eax - 0x28]
fstp qword [esi - 8]
fld qword [eax - 0x20]
fmul qword [edi - 8]
fstp qword [edi - 8]
jne 0x536617
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
add ebx, 0x28
dec eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], eax
jne 0x5365ee
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x9c]
add ecx, 0x200
lea ebx, [esp + 0xf0]
mov dword [esp + 0x14], 8
fld qword [ebx]
fcomp qword [0x58a368]
lea edi, [esp + 0xe8]
fnstsw ax
test ah, 1
je 0x5366a3
lea edi, [esp + 0x228]
lea eax, [edi + 0x20]
mov edi, 8
fld qword [eax - 0x10]
fmul qword [ecx]
add ecx, 8
add edx, 8
add esi, 8
add eax, 0x28
dec edi
fstp qword [ecx - 8]
fld qword [eax - 0x30]
fmul qword [edx - 8]
fstp qword [edx - 8]
fld qword [eax - 0x28]
fmul qword [esi - 8]
fstp qword [esi - 8]
jne 0x5366ab
mov eax, dword [esp + 0x14]
add ebx, 0x28
dec eax
mov dword [esp + 0x14], eax
jne 0x536686
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x98]
lea edi, [esp + 0xf8]
mov ebx, 8
fld qword [edi]
fcomp qword [0x58a368]
lea esi, [esp + 0xe8]
fnstsw ax
test ah, 1
je 0x536716
lea esi, [esp + 0x228]
lea eax, [esi + 0x18]
mov esi, 8
fld qword [eax]
fmul qword [ecx]
add ecx, 8
add edx, 8
add eax, 0x28
dec esi
fstp qword [ecx - 8]
fld qword [eax - 0x20]
fmul qword [edx - 8]
fstp qword [edx - 8]
jne 0x53671e
add edi, 0x28
dec ebx
jne 0x5366f9
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x90]
fld qword [0x58ba50]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x84], eax
fld qword [0x589a58]
mov esi, dword [esp + 0x20]
lea eax, [edx + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
add eax, 0x18
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x6c], 3
mov dword [esp + 0x3c], eax
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xbff00000
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x3ff00000
or edi, 0xffffffff
mov dword [esp + 0x10], 2
mov edx, dword [ebp + 8]
mov ecx, 2
fld qword [0x58ba50]
add edx, 0x10
add edi, 0xfffffffe
fld qword [edx]
fsub st(1)
fcomp qword [0x58a368]
fnstsw ax
test ah, 0x41
jne 0x5367ec
test edi, edi
je 0x5367ec
fstp st(0)
fld qword [edx]
mov esi, ecx
add ecx, 5
sub edi, 5
add edx, 0x28
cmp ecx, 0x28
jl 0x5367d1
mov eax, 0x66666667
mov ecx, dword [ebp + 8]
imul esi
fstp st(0)
fld qword [ecx + esi*8]
fstp qword [esp + 0x60]
sar edx, 1
mov eax, edx
mov ecx, dword [esp + 0x5c]
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x90]
mov edi, esi
fld qword [eax + edx*8]
fmul qword [0x5899d8]
shl edx, 6
add ecx, edx
cmp ebx, 0x28
mov dword [esp + 0x28], edi
mov edx, ebx
fstp qword [esp + 0x78]
jge 0x5368d0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
sub ebx, ecx
mov dword [esp + 0x24], ebx
fld qword [esp + 0x60]
fadd qword [edi]
fld qword [ebx + ecx]
fmul qword [0x5899d8]
add ecx, 8
fadd qword [esp + 0x78]
fadd qword [ecx - 8]
fstp qword [esp + 0x50]
fld st(0)
fmul st(1)
fld st(0)
fmul qword [esp + 0x18]
fld qword [esp + 0x50]
fmul qword [esp + 0x30]
fsubp st(1)
fcomp qword [0x58a368]
fnstsw ax
test ah, 0x41
jne 0x5368b9
fstp qword [esp + 0x30]
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
fstp qword [esp + 0xa0]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edx
jmp 0x5368bd
fstp st(0)
fstp st(0)
add edx, 5
add edi, 0x28
cmp edx, 0x28
jl 0x536852
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x5367bd
mov ecx, dword [esp + 0x4c]
mov eax, 0x66666667
imul ecx
fld qword [esp + 0x18]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], ecx
sar edx, 1
mov ecx, edx
mov ebx, dword [esp + 0x48]
shr ecx, 0x1f
lea edi, [eax + 0x40]
add edx, ecx
lea eax, [esp + 0xa8]
mov esi, edx
mov edx, dword [esp + 0x70]
sub eax, edi
mov dword [esp + 0x10], eax
mov eax, 0x66666667
lea ecx, [edx + 0x200]
imul ebx
sar edx, 1
mov eax, edx
mov dword [esp + 0x60], esi
shr eax, 0x1f
add edx, eax
lea ecx, [ecx + esi*8]
mov dword [esp + 0x60], edx
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x84]
lea eax, [edx*8]
mov edx, eax
mov dword [esp + 0x30], 0
sub edx, ecx
mov dword [esp + 0x34], 0xbff00000
add edx, ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0x3ff00000
mov edx, 8
fld qword [edi]
fmul qword [0x5899d8]
mov ebx, dword [esp + 0x24]
add ecx, 0x40
add edi, 8
dec edx
fadd qword [ebx + ecx - 0x40]
mov ebx, dword [esp + 0x10]
fadd qword [ecx - 0x40]
fstp qword [ebx + edi - 8]
jne 0x53697a
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x88]
add edx, 0x40
lea ecx, [ecx + esi*8]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x8c]
sub eax, ecx
xor ebx, ebx
add eax, edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x60]
fld qword [esp + 0xa0]
fadd qword [eax]
mov eax, dword [esp + 0x24]
add ecx, 0x40
lea edi, [esp + 0xa8]
fld qword [eax]
fmul qword [0x5899d8]
add eax, 8
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
fadd qword [edx + ecx - 0x40]
mov edx, 1
lea esi, [eax + 8]
fadd st(2)
fadd qword [ecx - 0x40]
mov eax, dword [esp + 0x28]
add edi, 8
fld st(1)
fadd qword [esi]
fld qword [eax]
fadd qword [edi - 8]
add eax, 8
mov dword [esp + 0x28], eax
fadd st(2)
fstp qword [esp + 0x50]
fld st(0)
fmulp st(1)
fld st(0)
fmul qword [esp + 0x18]
fld qword [esp + 0x50]
fmul qword [esp + 0x30]
fsubp st(1)
fcomp qword [0x58a368]
fnstsw ax
test ah, 0x41
jne 0x536a7b
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
fstp qword [esp + 0x30]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edx
jmp 0x536a7d
fstp st(0)
add edx, 5
add esi, 0x28
cmp edx, 0x28
jl 0x536a1b
mov edx, dword [esp + 0x10]
add ebx, 5
fstp st(0)
add edx, 0x28
cmp ebx, 0x28
fstp st(0)
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], edx
jl 0x5369d9
fstp st(0)
fld qword [esp + 0x30]
fmul st(1)
fld qword [esp + 0x18]
fmul st(3)
fsubp st(1)
fcomp qword [0x58a368]
fnstsw ax
test ah, 0x41
jne 0x536af2
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
fstp st(0)
fstp st(0)
fld qword [esp + 0x30]
fld qword [esp + 0x18]
mov dword [esp + 0x38], esi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
jmp 0x536af6
mov esi, dword [esp + 0x20]
or eax, 0xffffffff
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xbff00000
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x3ff00000
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 2
jmp 0x536b2b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
fld qword [0x58ba50]
cmp ecx, 0x28
jge 0x536b6b
mov edx, dword [esp + 0x3c]
sub eax, ecx
mov edi, eax
fld qword [edx]
fsub st(1)
fcomp qword [0x58a368]
fnstsw ax
test ah, 0x41
jne 0x536b5d
test edi, edi
je 0x536b5d
fstp st(0)
fld qword [edx]
mov esi, ecx
add ecx, 5
sub edi, 5
add edx, 0x28
cmp ecx, 0x28
jl 0x536b42
mov eax, 0x66666667
mov edi, dword [ebp + 8]
imul esi
fstp st(0)
fld qword [edi + esi*8]
mov eax, dword [esp + 0x14]
mov ebx, dword [ebp + 0xc]
sar edx, 1
mov ecx, edx
mov dword [esp + 0x28], esi
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [esp + 0x8c]
fld qword [eax + edx*8]
fmul qword [0x5899d8]
lea edx, [ecx + edx*8]
xor ecx, ecx
fld st(1)
fadd qword [edi]
fld qword [ebx]
fmul qword [0x5899d8]
add edx, 0x40
add ebx, 8
mov dword [esp + 0x60], ebx
fadd st(2)
fadd qword [edx - 0x40]
fstp qword [esp + 0x50]
fld st(0)
fmul st(1)
fld st(0)
fmul qword [esp + 0x18]
fld qword [esp + 0x50]
fmul qword [esp + 0x30]
fsubp st(1)
fcomp qword [0x58a368]
fnstsw ax
test ah, 0x41
jne 0x536c0c
fstp qword [esp + 0x30]
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
fstp qword [esp + 0xa0]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ecx
jmp 0x536c10
fstp st(0)
fstp st(0)
add ecx, 5
add edi, 0x28
cmp ecx, 0x28
jl 0x536ba3
mov eax, dword [esp + 0x24]
fstp st(0)
dec eax
fstp st(0)
mov dword [esp + 0x24], eax
jne 0x536b27
mov ecx, dword [esp + 0x48]
mov eax, 0x66666667
imul ecx
fld qword [esp + 0x18]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x78], ecx
sar edx, 1
mov ecx, edx
mov eax, 0x66666667
shr ecx, 0x1f
add edx, ecx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x60], edx
mov dword [esp + 0x20], esi
lea ecx, [edx*8]
imul esi
sar edx, 1
mov eax, edx
lea esi, [esp + 0xa8]
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x5c]
shl ecx, 3
lea edi, [eax + edx*8]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x60], edx
mov dword [esp + 0x60], ecx
sub ecx, eax
sub esi, eax
add ebx, ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xbff00000
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x3ff00000
mov ecx, 8
fld qword [eax]
fmul qword [0x5899d8]
add edi, 0x40
add eax, 8
dec ecx
fadd qword [ebx + eax - 8]
fadd qword [edi - 0x40]
fstp qword [esi + eax - 8]
jne 0x536cbf
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
add eax, 0x40
mov ebx, 1
lea edx, [ecx + edx*8]
mov ecx, dword [esp + 0x60]
add ecx, eax
mov eax, dword [esp + 0x70]
add eax, 0x200
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
add eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
add eax, 0x40
sub eax, ecx
mov dword [esp + 0x60], eax
jmp 0x536d2b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x10]
add edx, 0x40
fld qword [esp + 0xa0]
fadd qword [esi]
fld qword [eax + ecx]
fmul qword [0x5899d8]
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], edx
lea edi, [esp + 0xa8]
fadd qword [ecx]
add ecx, 8
lea esi, [eax + 0x10]
fadd st(2)
fadd qword [edx - 0x40]
mov edx, 2
mov eax, dword [esp + 0x28]
add edi, 8
fld st(1)
fadd qword [esi]
fld qword [eax]
fadd qword [edi - 8]
add eax, 8
mov dword [esp + 0x28], eax
fadd st(2)
fstp qword [esp + 0x50]
fld st(0)
fmulp st(1)
fld st(0)
fmul qword [esp + 0x18]
fld qword [esp + 0x50]
fmul qword [esp + 0x30]
fsubp st(1)
fcomp qword [0x58a368]
fnstsw ax
test ah, 0x41
jne 0x536dc4
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
fstp qword [esp + 0x30]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edx
jmp 0x536dc6
fstp st(0)
add edx, 5
add esi, 0x28
cmp edx, 0x28
jl 0x536d64
mov edx, dword [esp + 0x10]
add ebx, 5
fstp st(0)
add edx, 0x28
cmp ebx, 0x28
fstp st(0)
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], edx
jl 0x536d23
fstp st(0)
fld qword [esp + 0x30]
fmul st(1)
fld qword [esp + 0x18]
fmul st(3)
fsubp st(1)
fcomp qword [0x58a368]
fnstsw ax
test ah, 0x41
jne 0x536e3b
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
fstp st(0)
fstp st(0)
fld qword [esp + 0x30]
fld qword [esp + 0x18]
mov dword [esp + 0x74], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], eax
jmp 0x536e3f
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x88]
inc eax
add edx, 8
cmp eax, 5
mov dword [esp + 0x14], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x3c], edx
jl 0x53678e
mov ebx, dword [esp + 0x40]
fstp st(0)
fstp st(0)
fld qword [esp + ebx*8 + 0xe8]
call fcn.005418dc
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
fld qword [esp + edx*8 + 0xe8]
call fcn.005418dc
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x38]
fld qword [esp + eax*8 + 0xe8]
call fcn.005418dc
mov esi, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
fld qword [esp + esi*8 + 0xe8]
call fcn.005418dc
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
fild dword [esp + 0x20]
mov ecx, 0x50
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
fstp qword [edx + ebx*8]
fild dword [esp + 0x78]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
test ebx, ebx
fstp qword [edx + ecx*8]
fild dword [esp + 0x2c]
mov ebx, dword [ebp + 0x18]
fstp qword [edx + eax*8]
fild dword [esp + 0x14]
fstp qword [edx + esi*8]
jle 0x536f2a
mov ecx, dword [esp + 0x40]
mov edi, ebx
and ecx, 0x1fffffff
shl ecx, 1
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
mov edx, dword [ebp + 0x10]
test eax, eax
mov eax, dword [esp + 0x40]
jle 0x536f61
cmp eax, 0x28
jge 0x536f86
mov edi, eax
mov ecx, edx
mov edx, 0x28
lea eax, [ebx + edi*8]
sub edx, edi
mov edi, dword [ecx]
add ecx, 8
mov dword [eax], edi
mov edi, dword [ecx - 4]
mov dword [eax + 4], edi
add eax, 8
dec edx
jne 0x536f4c
jmp 0x536f83
cmp eax, 0x28
jge 0x536f86
mov edi, dword [esp + 0x40]
mov eax, 0x28
sub eax, edi
lea ecx, [ebx + edi*8]
fld qword [edx]
fchs
fstp qword [ecx]
add ecx, 8
add edx, 8
dec eax
jne 0x536f74
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x78]
test eax, eax
mov eax, dword [esp + 0x44]
jle 0x536fb5
cmp eax, 0x28
jge 0x536fdb
mov edi, eax
mov ecx, 0x28
sub ecx, edi
lea eax, [ebx + edi*8]
fld qword [eax]
fadd qword [edx]
add eax, 8
add edx, 8
dec ecx
fstp qword [eax - 8]
jne 0x536fa3
jmp 0x536fd8
cmp eax, 0x28
jge 0x536fdb
mov edi, dword [esp + 0x44]
mov ecx, 0x28
sub ecx, edi
lea eax, [ebx + edi*8]
fld qword [eax]
fsub qword [edx]
add eax, 8
add edx, 8
dec ecx
fstp qword [eax - 8]
jne 0x536fc8
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x2c]
test eax, eax
mov eax, dword [esp + 0x38]
jle 0x53700a
cmp eax, 0x28
jge 0x537030
mov edi, eax
mov ecx, 0x28
sub ecx, edi
lea eax, [ebx + edi*8]
fld qword [eax]
fadd qword [edx]
add eax, 8
add edx, 8
dec ecx
fstp qword [eax - 8]
jne 0x536ff8
jmp 0x53702d
cmp eax, 0x28
jge 0x537030
mov edi, dword [esp + 0x38]
mov ecx, 0x28
sub ecx, edi
lea eax, [ebx + edi*8]
fld qword [eax]
fsub qword [edx]
add eax, 8
add edx, 8
dec ecx
fstp qword [eax - 8]
jne 0x53701d
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x537059
cmp esi, 0x28
jge 0x537078
mov ecx, 0x28
lea eax, [ebx + esi*8]
sub ecx, esi
fld qword [eax]
fadd qword [edx]
add eax, 8
add edx, 8
dec ecx
fstp qword [eax - 8]
jne 0x537047
jmp 0x537078
cmp esi, 0x28
jge 0x537078
mov ecx, 0x28
lea eax, [ebx + esi*8]
sub ecx, esi
fld qword [eax]
fsub qword [edx]
add eax, 8
add edx, 8
dec ecx
fstp qword [eax - 8]
jne 0x537068
mov ecx, dword [esp + 0x20]
xor eax, eax
test ecx, ecx
jle 0x537087
mov eax, 1
mov ecx, dword [esp + 0x78]
test ecx, ecx
jle 0x537092
add eax, 2
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x53709d
add eax, 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x5370a8
add eax, 8
mov ecx, dword [ebp + 0x1c]
pop edi
mov dword [ecx], eax
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
lea ecx, [edx + edx*2 + 3]
imul dword [esp + 0x34]
sar edx, 1
mov eax, edx
sub esi, ecx
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
lea ecx, [edx + esi*8]
imul dword [esp + 0x40]
sar edx, 1
mov eax, edx
pop esi
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
pop ebx
lea ecx, [edx + ecx*8]
imul dword [esp + 0x34]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx + ecx*8]
mov esp, ebp
pop ebp
ret