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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
mov eax, edi
mov dword [esp + 0x2c], esi
imul eax, esi
cdq
and edx, 3
mov dword [esp + 0x20], 0
add eax, edx
mov edx, dword [ebp + 0x20]
sar eax, 2
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push edx
push eax
push ecx
call fcn.00456850
add esp, 0x18
test esi, esi
jbe 0x456cc6
lea eax, [edi + edi*2]
mov dword [esp + 0x14], esi
lea ecx, [eax + eax*8]
mov eax, dword [ebp + 0xc]
lea edx, [edi + ecx*4]
lea ebx, [eax + 0x1a8]
shl edx, 2
test edi, edi
jbe 0x456cb9
mov eax, ebx
mov ecx, edi
mov dword [eax], 0
add eax, 0x1b4
dec ecx
jne 0x456cab
mov eax, dword [esp + 0x14]
add ebx, edx
dec eax
mov dword [esp + 0x14], eax
jne 0x456ca3
lea eax, [esi - 1]
mov dword [esp + 0x10], 1
cmp eax, 1
mov dword [esp + 0x28], eax
jbe 0x456e86
lea ecx, [edi + edi*2]
lea eax, [edi - 1]
lea ecx, [ecx + ecx*8]
lea ecx, [edi + ecx*4]
shl ecx, 2
mov dword [esp + 0x30], ecx
lea ecx, [edi + edi*2 + 3]
lea edx, [ecx + ecx*8]
lea ecx, [edi + edx*4 + 1]
mov edx, dword [ebp + 0xc]
lea ecx, [edx + ecx*4]
mov dword [esp + 0xc], ecx
cmp eax, 1
mov dword [esp + 0x38], 1
jbe 0x456e63
mov ebx, dword [esp + 0xc]
mov esi, dword [ebx]
mov edx, dword [ebx - 0x1b4]
mov eax, esi
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x456e49
mov eax, dword [ebx + 4]
mov edx, dword [ebx - 0x1b0]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x456e49
mov edx, dword [ebx + 0x1b4]
mov eax, esi
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x456e49
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 0x1b8]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x456e49
mov eax, dword [esp + 0x30]
mov ecx, ebx
sub ecx, eax
mov eax, esi
sub eax, dword [ecx]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x456e49
mov eax, dword [ebx + 4]
mov edx, dword [ecx + 4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x456e49
mov edx, dword [esp + 0x30]
mov eax, esi
sub eax, dword [edx + ebx]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x456e49
mov ecx, dword [esp + 0x30]
mov eax, dword [ebx + 4]
sub eax, dword [ecx + ebx + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x456e49
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push 0x10000
mov eax, dword [edx + 8]
mov edx, dword [esp + 0x3c]
mov esi, eax
push eax
imul esi, dword [esp + 0x18]
add esi, edx
mov edx, dword [ecx + 0x38]
shl esi, 4
add esi, edx
mov dword [esp + 0x20], eax
lea edx, [esi + 1]
push edx
push esi
call dword [0x4e265c]
add esp, 0x10
cmp eax, 0x200
jb 0x456e49
mov eax, dword [esp + 0x18]
push 0x10000
push eax
add eax, esi
push eax
push esi
call dword [0x4e265c]
add esp, 0x10
cmp eax, 0x200
jb 0x456e49
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x1a8], 1
inc eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x38]
lea eax, [edi - 1]
inc ecx
add ebx, 0x1b4
cmp ecx, eax
mov dword [esp + 0x38], ecx
jb 0x456d1b
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add esi, edx
mov edx, dword [esp + 0x28]
inc ecx
cmp ecx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
jb 0x456d06
call dword [0x4e2508]
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, 9
jl 0x4573ce
fld qword [0x470bd0]
fld qword [0x470bd0]
fld qword [0x470bd0]
fld qword [0x470bd0]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], 0
fld qword [0x470bd0]
fld qword [0x470bd0]
cmp eax, 1
mov dword [esp + 0x4c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
jbe 0x457040
lea eax, [edi + edi*2]
mov ebx, dword [ebp + 0xc]
mov edx, 0x18
lea eax, [eax + eax*8]
lea ecx, [edi + eax*4]
lea eax, [edi + edi*2 + 3]
shl ecx, 2
lea eax, [eax + eax*8]
mov dword [esp + 0x18], ecx
lea eax, [edi + eax*4 + 1]
lea eax, [ebx + eax*4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x10], eax
lea ebx, [edi - 1]
cmp ebx, 1
jbe 0x457024
mov ecx, dword [esp + 0xc]
dec ebx
mov eax, 0x18
mov dword [esp + 0x14], ebx
mov ebx, dword [ecx]
mov dword [esp + 0x38], ebx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x3c], ebx
mov ebx, dword [ecx + 0x1a8]
cmp ebx, esi
je 0x457008
fld qword [esp + 0x48]
fadd qword [0x46abb8]
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc4], esi
mov esi, eax
mov ebx, edx
imul esi, eax
imul ebx, edx
fstp qword [esp + 0x48]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc0], edx
fild qword [esp + 0xc8]
add esi, ebx
mov dword [esp + 0xd8], esi
xor esi, esi
fst qword [esp + 0xb8]
faddp st(4)
fild qword [esp + 0xc0]
mov dword [esp + 0xdc], esi
fst qword [esp + 0x20]
faddp st(5)
fild qword [esp + 0xd8]
faddp st(6)
fild dword [esp + 0x38]
fst qword [esp + 0x30]
faddp st(1)
fild dword [esp + 0x3c]
fst qword [esp + 0x40]
fmul qword [esp + 0x20]
fld qword [esp + 0x30]
fmul qword [esp + 0xb8]
faddp st(1)
faddp st(2)
fld qword [esp + 0x30]
fmul qword [esp + 0x20]
fld qword [esp + 0x40]
fmul qword [esp + 0xb8]
fsubp st(1)
faddp st(3)
fld qword [esp + 0x40]
fadd qword [esp + 0x70]
fstp qword [esp + 0x70]
mov ebx, dword [esp + 0x14]
add ecx, 0x1b4
add eax, 0x10
dec ebx
mov dword [esp + 0x14], ebx
jne 0x456f39
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
add edx, 0x10
add eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x456f1f
fld st(4)
fmul st(5)
fld st(4)
fmul st(5)
mov edx, dword [esp + 0x28]
mov dword [esp + 0x30], esi
cmp edx, 1
faddp st(1)
fld qword [esp + 0x48]
fmul st(7)
fsubp st(1)
fstp qword [esp + 0x40]
fld st(2)
fmul st(5)
fld st(1)
fmul st(7)
fsubp st(1)
fld st(2)
fmul st(5)
faddp st(1)
fstp qword [esp + 0x78]
fld st(0)
fmul st(4)
fld st(2)
fmul qword [esp + 0x48]
fsubp st(1)
fld qword [esp + 0x70]
fmul st(6)
faddp st(1)
fstp qword [esp + 0x80]
fmul st(4)
fld st(2)
fmul qword [esp + 0x48]
fsubp st(1)
fld qword [esp + 0x70]
fmul st(4)
fsubp st(1)
fstp qword [esp + 0x88]
fmul st(3)
fxch st(1)
fmul st(2)
fsubp st(1)
fld qword [esp + 0x70]
fmul st(4)
fsubp st(1)
fstp qword [esp + 0x90]
fstp st(0)
fstp st(0)
fstp st(0)
fld qword [0x46abb8]
fdiv qword [esp + 0x40]
fst qword [esp + 0x40]
fld qword [esp + 0x78]
fmul st(1)
fstp qword [esp + 0x78]
fmul qword [esp + 0x80]
fld qword [esp + 0x40]
fmul qword [esp + 0x88]
fst qword [esp + 0x88]
fld qword [esp + 0x40]
fmul qword [esp + 0x90]
fstp qword [esp + 0x90]
fld qword [0x470bd0]
fld qword [0x470bd0]
jbe 0x45721d
lea eax, [edi + edi*2]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x18
lea ecx, [eax + eax*8]
lea eax, [edi + edi*2 + 3]
lea eax, [eax + eax*8]
lea ecx, [edi + ecx*4]
shl ecx, 2
lea eax, [edi + eax*4 + 1]
dec edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
lea eax, [ebx + eax*4]
mov dword [esp + 0x14], eax
lea edx, [edi - 1]
cmp edx, 1
jbe 0x4571f9
mov ecx, 0x18
dec edx
mov ebx, dword [eax]
mov dword [esp + 0xa8], ebx
mov ebx, dword [eax + 4]
mov dword [esp + 0xac], ebx
mov ebx, dword [eax + 0x1a8]
cmp ebx, esi
je 0x4571e6
mov ebx, dword [esp + 0x30]
mov dword [esp + 0xec], esi
inc ebx
mov dword [esp + 0xd0], ecx
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xd4], esi
fild qword [esp + 0xe8]
fild qword [esp + 0xd0]
fld st(1)
fmul st(5)
fld st(1)
fmul st(7)
faddp st(1)
fadd qword [esp + 0x78]
fisub dword [esp + 0xa8]
fabs
faddp st(3)
fmul st(4)
fsubr qword [esp + 0x90]
fxch st(1)
fmul st(5)
faddp st(1)
fisub dword [esp + 0xac]
fabs
faddp st(2)
add eax, 0x1b4
add ecx, 0x10
dec edx
jne 0x45715f
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add eax, ecx
add ebx, 0x10
dec edx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
jne 0x45714d
fild dword [esp + 0x30]
fstp qword [esp + 0x18]
fld qword [0x46fad0]
fmul st(1)
fcomp qword [esp + 0x18]
fnstsw ax
and eax, 0x4100
jne 0x457247
fdiv qword [esp + 0x18]
fstp qword [esp + 0x98]
jmp 0x45725f
fstp st(0)
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0x3fd00000
fld qword [0x46fad0]
fmul st(1)
fcomp qword [esp + 0x18]
fnstsw ax
and eax, 0x4100
jne 0x45727a
fdiv qword [esp + 0x18]
jmp 0x457282
fstp st(0)
fld qword [0x470bc8]
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, esi
mov dword [esp + 0x20], eax
jbe 0x4573aa
lea eax, [edi + edi*2]
mov dword [esp + 0x10], 8
fld qword [esp + 0x98]
lea edx, [eax + eax*8]
mov dword [esp + 0x14], ecx
lea eax, [edi + edx*4]
shl eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
add eax, 0x1a8
mov dword [esp + 0xc], eax
cmp edi, esi
jbe 0x45737c
mov ecx, dword [esp + 0xc]
mov edx, 8
mov ebx, edi
mov eax, dword [ecx - 0x1a8]
mov dword [esp + 0xb0], eax
mov eax, dword [ecx - 0x1a4]
mov dword [esp + 0xb4], eax
mov eax, dword [ecx]
cmp eax, esi
je 0x45736c
mov eax, dword [esp + 0x10]
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], eax
mov dword [esp + 0x50], edx
fild qword [esp + 0xe0]
mov dword [esp + 0x54], esi
fild qword [esp + 0x50]
fld st(1)
fmul st(5)
fld st(1)
fmul st(7)
faddp st(1)
fadd qword [esp + 0x78]
fisub dword [esp + 0xb0]
fabs
fcomp st(3)
fnstsw ax
and eax, 0x4100
je 0x457366
fmul st(4)
fsubr qword [esp + 0x90]
fxch st(1)
fmul st(5)
faddp st(1)
fisub dword [esp + 0xb4]
fabs
fcomp st(2)
fnstsw ax
and eax, 0x4100
je 0x45736a
inc dword [esp + 0x20]
jmp 0x45736c
fstp st(0)
fstp st(0)
mov dword [ecx], esi
add ecx, 0x1b4
add edx, 0x10
dec ebx
jne 0x4572d6
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], edx
add ecx, 0x10
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x4572c3
mov eax, dword [esp + 0x20]
fstp st(0)
mov ecx, dword [esp + 0x30]
fstp st(0)
cmp ecx, eax
fstp st(0)
je 0x4573c3
cmp eax, 9
fstp st(0)
jge 0x456e9b
jmp 0x4573ce
cmp eax, 9
jge 0x457553
fstp st(0)
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x20], esi
mov dword [esp + 0x6c], esi
mov eax, dword [edx + 8]
mov dword [esp + 0x68], esi
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x10]
test ah, 2
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
je 0x45764b
cmp dword [esp + 0x28], 1
jbe 0x4575ca
lea eax, [edi + edi*2]
lea edx, [eax + eax*8]
lea eax, [edi + edx*4]
mov edx, dword [esp + 0xc]
mov ecx, edx
shl ecx, 4
mov dword [esp + 0x48], ecx
lea ecx, [edx + 1]
shl ecx, 4
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 0xc]
shl eax, 2
mov dword [esp + 0x30], eax
lea edx, [eax + ecx + 0x1b8]
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
lea eax, [edi - 1]
cmp eax, 1
jbe 0x457500
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
lea edx, [edi - 2]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
push 0x10000
mov esi, dword [eax + 0x38]
add esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esi + 1]
push edx
push esi
call dword [0x4e265c]
add esp, 0x10
cmp eax, 0x200
jb 0x4574e0
mov eax, dword [esp + 0xc]
push 0x10000
push eax
add eax, esi
push eax
push esi
call dword [0x4e265c]
add esp, 0x10
cmp eax, 0x200
jb 0x4574e0
mov ecx, dword [ebx - 4]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x20]
add edx, ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x58], edx
mov edx, dword [ebx]
mov dword [ebx + 0x1a4], 1
add ecx, edx
inc eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
add ebx, 0x1b4
add ecx, 0x10
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], eax
jne 0x45746b
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
add esi, eax
mov eax, dword [esp + 0x18]
add edx, ecx
dec eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
jne 0x45744c
mov eax, dword [esp + 0x58]
test eax, eax
je 0x45753c
cdq
idiv dword [esp + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4575ca
cdq
idiv dword [esp + 0x20]
mov dword [esp + 0x5c], eax
jmp 0x4575ca
fld qword [esp + 0x78]
fadd qword [0x46aba8]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x90]
fadd qword [0x46aba8]
mov dword [esp + 0x58], eax
call sub.MSVCRT.dll__ftol
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], esi
mov eax, dword [edx]
mov dword [esp + 0x50], eax
fild qword [esp + 0x50]
fst qword [esp + 0x50]
fmul st(1)
fadd qword [0x46aba8]
call sub.MSVCRT.dll__ftol
fstp st(0)
fld qword [esp + 0x50]
fmul qword [esp + 0x88]
mov esi, eax
mov dword [esp + 0x60], esi
fsubr qword [0x46aba8]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], esi
neg eax
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0xa4]
cmp ecx, eax
jle 0x45764b
mov ecx, dword [esp + 0x28]
cmp ecx, 1
jbe 0x45764b
lea eax, [edi + edi*2]
lea edx, [edi - 1]
mov dword [esp + 0x18], edx
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov eax, dword [ebp + 0xc]
shl edi, 2
dec ecx
lea ebx, [eax + 0x35c]
lea esi, [edi + eax + 0x35c]
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x18], 1
jbe 0x45763c
mov edx, dword [esp + 0x18]
mov eax, esi
mov ecx, ebx
dec edx
cmp dword [eax - 0x1b4], 0
jne 0x457628
cmp dword [ecx], 0
je 0x45762e
mov dword [eax], 0
add ecx, 0x1b4
add eax, 0x1b4
dec edx
jne 0x45761a
mov eax, dword [esp + 0x2c]
add esi, edi
add ebx, edi
dec eax
mov dword [esp + 0x2c], eax
jne 0x45760a
mov eax, dword [ebp + 8]
lea esi, [esp + 0x58]
mov edi, eax
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret