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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
mov eax, dword [0x6c7190]
and eax, 0xffff
push ebx
push esi
push edi
lea ebx, [eax + eax*2]
lea edi, [ebp - 4]
shl ebx, 0xd
add ebx, eax
mov eax, dword [ebp + 0x28]
shl ebx, 3
and eax, 0xf8000000
add ebx, 0x70995c
cmp eax, 0x30000000
jne 0x5653c0
mov edx, dword [ebp + 0x28]
and edx, 0xffff
mov ecx, dword [edx*4 + 0x6c728c]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x5653c0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov eax, dword [ebp + 0x28]
shl edx, 0x10
and eax, 0x7ff0000
cmp edx, eax
jne 0x5653c0
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x90]
and ecx, 0xffff
mov eax, dword [ecx*4 + 0x682d80]
mov dword [ebp - 0x10], eax
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx + 0x1c]
je 0x564bd9
mov eax, dword [0x6c7190]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x90]
call fcn.005912c0
mov edx, dword [eax + 0x1c]
push edx
call fcn.00569f38
add esp, 8
mov ecx, dword [0x6c7190]
push ecx
call fcn.00565aa0
pop ecx
mov eax, dword [0x662b7c]
xor edx, edx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
fld dword [ebp + 0x10]
fsub dword [ebp + 8]
mov esi, dword [0x7072b0]
fstp dword [ebp - 0x14]
fld dword [ebp + 0x20]
fsub dword [ebp + 0x18]
fstp dword [ebp - 0x1c]
fld dword [ebp + 0x14]
fsub dword [ebp + 0xc]
fstp dword [ebp - 0x18]
fld dword [ebp + 0x24]
fsub dword [ebp + 0x1c]
fstp dword [ebp - 0x20]
fld dword [ebp + 0x18]
fsub dword [ebp + 8]
fstp dword [ebp - 0x24]
fld dword [ebp + 0x20]
fsub dword [ebp + 0x10]
fstp dword [ebp - 0x2c]
fld dword [ebp + 0x1c]
fsub dword [ebp + 0xc]
fstp dword [ebp - 0x28]
fld dword [ebp + 0x24]
fsub dword [ebp + 0x14]
fstp dword [ebp - 0x30]
fld dword [ebp + 0x10]
fsub dword [ebp + 8]
fld dword [ebp + 0x1c]
fsub dword [ebp + 0xc]
fmulp st(1)
fld dword [ebp + 0x18]
fsub dword [ebp + 8]
fld dword [ebp + 0x14]
fsub dword [ebp + 0xc]
fmulp st(1)
fsubp st(1)
fstp dword [ebp - 0x60]
fld dword [ebp + 0x10]
fsub dword [ebp + 0x20]
fchs
fld dword [ebp + 0x1c]
fsub dword [ebp + 0x24]
fmulp st(1)
fld dword [ebp + 0x14]
fsub dword [ebp + 0x24]
fld dword [ebp + 0x18]
fsub dword [ebp + 0x20]
fmulp st(1)
faddp st(1)
fstp dword [ebp - 0x64]
mov eax, dword [ebp - 0xc]
add eax, 0x18
add esp, 0xfffffffc
mov dword [ebp - 8], eax
fld dword [ebp - 0x14]
fsub dword [ebp - 0x1c]
fstp dword [esp]
call fcn.0045eb6c
pop ecx
fcomp dword [0x5653c8]
fnstsw ax
sahf
jae 0x564ccb
fld dword [ebp - 0x18]
fsub dword [ebp - 0x20]
add esp, 0xfffffffc
fstp dword [esp]
call fcn.0045eb6c
pop ecx
fcomp dword [0x5653c8]
fnstsw ax
sahf
jae 0x564ccb
inc dword [ebp - 0x54]
mov dword [ebp - 0x58], 1
fld dword [ebp - 0x24]
fsub dword [ebp - 0x2c]
add esp, 0xfffffffc
fstp dword [esp]
call fcn.0045eb6c
pop ecx
fcomp dword [0x5653c8]
fnstsw ax
sahf
jae 0x564d0f
fld dword [ebp - 0x28]
fsub dword [ebp - 0x30]
add esp, 0xfffffffc
fstp dword [esp]
call fcn.0045eb6c
pop ecx
fcomp dword [0x5653c8]
fnstsw ax
sahf
jae 0x564d0f
inc dword [ebp - 0x54]
mov dword [ebp - 0x5c], 1
cmp dword [ebp - 0x54], 2
je 0x565187
xor edx, edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
fld dword [ebp - 0x14]
fmul dword [ebp - 0x14]
fld dword [ebp - 0x18]
fmul dword [ebp - 0x18]
faddp st(1)
add esp, 0xfffffffc
fstp dword [esp]
call fcn.0045ec58
pop ecx
fstp dword [ebp - 0x34]
fld dword [ebp - 0x14]
fdiv dword [ebp - 0x34]
fstp dword [ebp - 0x44]
fld dword [ebp - 0x18]
fdiv dword [ebp - 0x34]
fstp dword [ebp - 0x48]
fld dword [ebp - 0x1c]
fmul dword [ebp - 0x1c]
fld dword [ebp - 0x20]
fmul dword [ebp - 0x20]
faddp st(1)
add esp, 0xfffffffc
fstp dword [esp]
call fcn.0045ec58
pop ecx
fstp dword [ebp - 0x38]
fld dword [ebp - 0x1c]
fdiv dword [ebp - 0x38]
fstp dword [ebp - 0x4c]
fld dword [ebp - 0x20]
fdiv dword [ebp - 0x38]
fstp dword [ebp - 0x50]
fld dword [ebp - 0x44]
fsub dword [ebp - 0x4c]
add esp, 0xfffffffc
fstp dword [esp]
call fcn.0045eb6c
pop ecx
fcomp dword [0x5653cc]
fnstsw ax
sahf
jae 0x564dc6
fld dword [ebp - 0x48]
fsub dword [ebp - 0x50]
add esp, 0xfffffffc
fstp dword [esp]
call fcn.0045eb6c
pop ecx
fcomp dword [0x5653cc]
fnstsw ax
sahf
jae 0x564dc6
inc dword [ebp - 0x54]
mov dword [ebp - 0x58], 1
fld dword [ebp - 0x24]
fmul dword [ebp - 0x24]
fld dword [ebp - 0x28]
fmul dword [ebp - 0x28]
faddp st(1)
add esp, 0xfffffffc
fstp dword [esp]
call fcn.0045ec58
pop ecx
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x24]
fdiv dword [ebp - 0x3c]
fstp dword [ebp - 0x44]
fld dword [ebp - 0x28]
fdiv dword [ebp - 0x3c]
fstp dword [ebp - 0x48]
fld dword [ebp - 0x2c]
fmul dword [ebp - 0x2c]
fld dword [ebp - 0x30]
fmul dword [ebp - 0x30]
faddp st(1)
add esp, 0xfffffffc
fstp dword [esp]
call fcn.0045ec58
pop ecx
fstp dword [ebp - 0x40]
fld dword [ebp - 0x2c]
fdiv dword [ebp - 0x40]
fstp dword [ebp - 0x4c]
fld dword [ebp - 0x30]
fdiv dword [ebp - 0x40]
fstp dword [ebp - 0x50]
fld dword [ebp - 0x44]
fsub dword [ebp - 0x4c]
add esp, 0xfffffffc
fstp dword [esp]
call fcn.0045eb6c
pop ecx
fcomp dword [0x5653cc]
fnstsw ax
sahf
jae 0x564e68
fld dword [ebp - 0x48]
fsub dword [ebp - 0x50]
add esp, 0xfffffffc
fstp dword [esp]
call fcn.0045eb6c
pop ecx
fcomp dword [0x5653cc]
fnstsw ax
sahf
jae 0x564e68
inc dword [ebp - 0x54]
mov dword [ebp - 0x5c], 1
push esi
lea edi, [ebp - 0xd0]
mov esi, 0x5f3f18
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
fld dword [ebp + 0x20]
fsub dword [ebp + 8]
pop esi
add esp, 0xfffffffc
fstp dword [ebp - 0xac]
fld dword [ebp + 0x24]
fsub dword [ebp + 0xc]
fstp dword [ebp - 0xb0]
fld dword [ebp + 0x18]
fsub dword [ebp + 0x10]
fstp dword [ebp - 0xb4]
fld dword [ebp + 0x1c]
fsub dword [ebp + 0x14]
fstp dword [ebp - 0xb8]
fld dword [ebp - 0xac]
fmul dword [ebp - 0xac]
fld dword [ebp - 0xb0]
fmul dword [ebp - 0xb0]
faddp st(1)
fstp dword [esp]
call fcn.0045ec58
pop ecx
fstp xword [ebp - 0x114]
fld dword [ebp - 0xb4]
fmul dword [ebp - 0xb4]
fld dword [ebp - 0xb8]
fmul dword [ebp - 0xb8]
faddp st(1)
add esp, 0xfffffffc
fstp dword [esp]
call fcn.0045ec58
mov eax, dword [0x662b64]
pop ecx
imul dword [0x662b64]
mov edx, dword [0x662b68]
imul edx, dword [0x662b68]
fld xword [ebp - 0x114]
faddp st(1)
add eax, edx
add esp, 0xfffffffc
fstp xword [ebp - 0x120]
mov dword [ebp - 0x124], eax
fild dword [ebp - 0x124]
fstp dword [esp]
call fcn.0045ec58
pop ecx
fmul dword [0x5653d0]
fld xword [ebp - 0x120]
fdivrp st(1)
fstp dword [ebp - 0xbc]
mov edx, 8
cmp edx, 8
jge 0x564f63
mov edx, 8
jmp 0x564f6d
cmp edx, 0x21
jle 0x564f6d
mov edx, 0x21
mov ecx, 5
jmp 0x564f75
dec ecx
test ecx, ecx
jle 0x564f92
mov eax, 5
sub eax, ecx
fld dword [ebp - 0xbc]
fcomp dword [ebp + eax*4 - 0xd0]
fnstsw ax
sahf
jb 0x564f74
lea ecx, [edx - 1]
lea eax, [edx - 1]
mov dword [ebp - 0x128], ecx
lea ecx, [edx - 1]
fild dword [ebp - 0x128]
fdivr dword [ebp - 0x24]
fstp dword [ebp - 0x84]
mov dword [ebp - 0x12c], eax
lea eax, [edx - 1]
fild dword [ebp - 0x12c]
fdivr dword [ebp - 0x28]
fstp dword [ebp - 0x88]
mov dword [ebp - 0x130], ecx
fild dword [ebp - 0x130]
fdivr dword [ebp - 0x2c]
fstp dword [ebp - 0x8c]
mov dword [ebp - 0x134], eax
fild dword [ebp - 0x134]
fdivr dword [ebp - 0x30]
fstp dword [ebp - 0x90]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 8]
fld dword [ecx + 0x68]
fsub dword [eax + 0x14]
lea ecx, [edx - 1]
mov dword [ebp - 0x138], ecx
fild dword [ebp - 0x138]
fdivp st(1)
fstp dword [ebp - 0x9c]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
fld dword [eax + 0x6c]
fsub dword [ecx + 0x18]
lea eax, [edx - 1]
mov dword [ebp - 0x13c], eax
fild dword [ebp - 0x13c]
fdivp st(1)
fstp dword [ebp - 0xa0]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x18]
xor ecx, ecx
mov dword [ebp - 0xa8], eax
mov eax, 0x63bc54
cmp edx, ecx
jle 0x56516d
fld dword [ebp - 0x74]
fsub dword [ebp - 0x6c]
lea ebx, [edx - 1]
mov dword [ebp - 0x140], ebx
fild dword [ebp - 0x140]
fdivp st(1)
fstp dword [ebp - 0x94]
fld dword [ebp - 0x78]
fsub dword [ebp - 0x70]
lea ebx, [edx - 1]
mov dword [ebp - 0x144], ebx
fild dword [ebp - 0x144]
fdivp st(1)
fstp dword [ebp - 0x98]
mov ebx, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], ebx
mov ebx, dword [ebp - 0x70]
mov dword [ebp - 0x80], ebx
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx + 0x14]
mov dword [ebp - 0xa4], ebx
xor ebx, ebx
cmp edx, ebx
jle 0x565122
mov edi, dword [ebp - 0x7c]
inc ebx
mov dword [eax], edi
mov edi, dword [ebp - 0x80]
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x68]
mov dword [eax + 8], edi
mov dword [eax + 0xc], 0x3f800000
mov edi, dword [ebp - 0xa4]
mov dword [eax + 0x14], edi
mov edi, dword [ebp - 0xa8]
mov dword [eax + 0x18], edi
mov dword [eax + 0x10], esi
fld dword [ebp - 0x9c]
fadd dword [ebp - 0xa4]
add eax, 0x1c
cmp edx, ebx
fstp dword [ebp - 0xa4]
fld dword [ebp - 0x94]
fadd dword [ebp - 0x7c]
fstp dword [ebp - 0x7c]
fld dword [ebp - 0x98]
fadd dword [ebp - 0x80]
fstp dword [ebp - 0x80]
jg 0x5650c3
fld dword [ebp - 0xa0]
fadd dword [ebp - 0xa8]
inc ecx
cmp edx, ecx
fstp dword [ebp - 0xa8]
fld dword [ebp - 0x84]
fadd dword [ebp - 0x6c]
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x88]
fadd dword [ebp - 0x70]
fstp dword [ebp - 0x70]
fld dword [ebp - 0x8c]
fadd dword [ebp - 0x74]
fstp dword [ebp - 0x74]
fld dword [ebp - 0x90]
fadd dword [ebp - 0x78]
fstp dword [ebp - 0x78]
jg 0x56506b
mov eax, dword [0x6c7190]
push eax
push edx
push edx
push 0x63bc54
call fcn.00566ebc
add esp, 0x10
jmp 0x5653c0
cmp dword [ebx + 0x34], 0
jne 0x565193
cmp dword [ebx + 0x38], 0
je 0x5651a0
mov edx, dword [0x6c7190]
push edx
call fcn.00565aa0
pop ecx
cmp dword [ebx + 0xd4], 0
je 0x56521a
cmp dword [ebx + 0xdc], 4
jne 0x5651ca
mov eax, dword [ebx + 0xd8]
mov ecx, dword [ebx + 0xd4]
add ecx, 6
cmp ecx, dword [eax*4 + 0x5f3edc]
jle 0x56521a
push 0
mov edx, dword [ebx + 0xd4]
push edx
mov ecx, dword [ebx + 0xd8]
mov eax, dword [ebx + ecx*4 + 0xf8]
push eax
mov edx, dword [ebx + 0xd8]
mov ecx, dword [edx*4 + 0x5f3ee8]
push ecx
mov eax, dword [ebx + 0xdc]
push eax
mov edx, dword [ebx + 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x64]
xor eax, eax
mov dword [ebx + 0xd4], eax
mov edx, dword [ebx + 0xd8]
mov ecx, dword [ebx + edx*4 + 0xf8]
mov dword [ebx + 0xd0], ecx
mov dword [ebx + 0xdc], 4
mov eax, dword [ebx + 0xd0]
mov dword [edi], eax
mov edx, dword [edi]
mov dword [edx + 0x64], esi
mov eax, dword [edi]
mov dword [eax + 0x10], esi
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [edi]
fld dword [ebp + 0x10]
fst dword [eax + 0x1c]
mov edx, dword [edi]
fstp dword [edx + 0x8c]
mov ecx, dword [edi]
fld dword [ebp + 0x18]
fst dword [ecx + 0x38]
mov eax, dword [edi]
fstp dword [eax + 0x70]
mov edx, dword [edi]
mov ecx, dword [ebp + 0x20]
mov dword [edx + 0x54], ecx
mov eax, dword [edi]
mov edx, dword [ebp + 0xc]
mov dword [eax + 4], edx
mov ecx, dword [edi]
fld dword [ebp + 0x14]
fst dword [ecx + 0x20]
mov eax, dword [edi]
fstp dword [eax + 0x90]
mov edx, dword [edi]
fld dword [ebp + 0x1c]
fst dword [edx + 0x3c]
mov ecx, dword [edi]
fstp dword [ecx + 0x74]
mov eax, dword [edi]
mov edx, dword [ebp + 0x24]
mov dword [eax + 0x58], edx
mov ecx, dword [ebp - 8]
mov eax, dword [edi]
fld dword [ecx + 0x14]
fst dword [eax + 0x14]
mov edx, dword [edi]
fst dword [edx + 0x4c]
mov ecx, dword [edi]
fstp dword [ecx + 0x84]
mov eax, dword [ebp - 8]
mov edx, dword [edi]
fld dword [eax + 0x30]
fst dword [edx + 0x30]
mov ecx, dword [edi]
fst dword [ecx + 0x68]
mov eax, dword [edi]
fstp dword [eax + 0xa0]
mov edx, dword [ebp - 8]
mov ecx, dword [edi]
fld dword [edx + 0x18]
fst dword [ecx + 0x18]
mov eax, dword [edi]
fst dword [eax + 0x34]
mov edx, dword [edi]
fstp dword [edx + 0xa4]
mov ecx, dword [ebp - 8]
mov eax, dword [edi]
fld dword [ecx + 0x50]
fst dword [eax + 0x50]
mov edx, dword [edi]
fst dword [edx + 0x6c]
mov ecx, dword [edi]
fstp dword [ecx + 0x88]
mov eax, dword [edi]
mov edx, dword [ebp - 0x68]
mov dword [eax + 0x94], edx
mov eax, dword [edi]
mov dword [eax + 0x78], edx
mov eax, dword [edi]
mov dword [eax + 0x5c], edx
mov eax, dword [edi]
mov dword [eax + 0x40], edx
mov eax, dword [edi]
mov dword [eax + 0x24], edx
mov eax, dword [edi]
mov dword [eax + 8], edx
fld dword [ebp - 0x60]
fcomp dword [0x5653d4]
fnstsw ax
sahf
ja 0x5653af
fld dword [ebp - 0x64]
fcomp dword [0x5653d4]
fnstsw ax
sahf
ja 0x5653af
mov edx, dword [edi]
push edi
lea edi, [ebp - 0x108]
mov ecx, 7
lea esi, [edx + 0x1c]
rep movsd dword es:[edi], dword [esi]
pop edi
mov ecx, 7
mov eax, dword [edi]
push edi
lea edi, [ebp - 0xec]
lea esi, [eax + 0x70]
rep movsd dword es:[edi], dword [esi]
pop edi
mov ecx, 7
mov eax, dword [edi]
mov edx, dword [edi]
push edi
lea edi, [edx + 0x1c]
lea esi, [eax + 0x38]
rep movsd dword es:[edi], dword [esi]
pop edi
mov ecx, 7
mov eax, dword [edi]
mov edx, dword [edi]
push edi
lea edi, [edx + 0x70]
lea esi, [eax + 0x8c]
rep movsd dword es:[edi], dword [esi]
pop edi
lea esi, [ebp - 0x108]
mov ecx, 7
mov eax, dword [edi]
push edi
lea edi, [eax + 0x38]
rep movsd dword es:[edi], dword [esi]
pop edi
lea esi, [ebp - 0xec]
mov ecx, 7
mov eax, dword [edi]
push edi
lea edi, [eax + 0x8c]
rep movsd dword es:[edi], dword [esi]
pop edi
add dword [ebx + 0xd0], 0xa8
add dword [ebx + 0xd4], 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret