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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3b6c
call fcn.1007d430
mov eax, dword [0x1008a2c0]
xor eax, esp
mov dword [esp + 0x3b68], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0x1c]
fld qword [0x1007e250]
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xf0]
mov dword [esp + 0x94], eax
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x970]
mov dword [esp + 0xb0], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x10]
shr eax, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0xd4], eax
mov eax, dword [ecx + 0x10]
lea edx, [esp + 0x170]
mov dword [esp + 0x84], ecx
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0xc]
shr eax, 1
xor ebx, ebx
mov dword [esp + 0xb4], ecx
mov ecx, dword [ebp + 0x24]
mov edi, dword [ebp + 0x18]
mov dword [esp + 0xa4], edx
mov edx, dword [esi + 4]
mov dword [esp + 0xd0], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0xe8], eax
cmp ecx, 0x1e
jle 0x10046411
fstp st(0)
sub ecx, 0x1e
fld qword [0x1007e278]
mov edx, 1
imul edi, dword [ebp + 0x14]
shl edx, cl
mov dword [esp + 0x4c], edx
fild dword [esp + 0x4c]
fdivp st(1)
fst qword [esp + 0xe0]
cmp edi, 0x100
jle 0x1004645a
lea eax, [edi*8]
fstp st(0)
push eax
call sub.MSVCR100.dll_malloc
add esp, 4
mov dword [esp + 0x68], eax
cmp eax, ebx
je 0x1004657c
fld qword [esp + 0xe0]
xor ebx, ebx
cmp edi, 4
jl 0x100464a5
mov ecx, dword [esp + 0x68]
mov eax, dword [ebp + 0x10]
lea edx, [edi - 4]
shr edx, 2
add ecx, 0x10
add eax, 8
inc edx
lea ebx, [edx*4]
fild dword [eax - 8]
add eax, 0x10
add ecx, 0x20
dec edx
fmul st(1)
fstp qword [ecx - 0x30]
fild dword [eax - 0x14]
fmul st(1)
fstp qword [ecx - 0x28]
fild dword [eax - 0x10]
fmul st(1)
fstp qword [ecx - 0x20]
fild dword [eax - 0xc]
fmul st(1)
fstp qword [ecx - 0x18]
jne 0x1004647c
cmp ebx, edi
jge 0x100464be
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x68]
fild dword [eax + ebx*4]
inc ebx
fmul st(1)
fstp qword [ecx + ebx*8 - 8]
cmp ebx, edi
jl 0x100464b0
cmp dword [ebp + 0x14], 1
fstp st(0)
jne 0x10046515
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x8c]
push edi
push esi
call fcn.100459c0
mov esi, eax
lea eax, [esp + 0x180]
add esp, 0x10
cmp edi, eax
je 0x100464fe
push edi
call sub.MSVCR100.dll_free
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b68]
xor ecx, esp
call fcn.1007d356
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x54]
lea ebx, [edi + 3]
imul ebx, esi
cmp ebx, 0x640
jg 0x10046530
cmp edi, 0xf
jle 0x100465a0
mov ecx, edi
add ecx, ebx
lea edx, [ecx*8 + 8]
push edx
call sub.MSVCR100.dll_malloc
add esp, 4
mov dword [esp + 0xb0], eax
test eax, eax
jne 0x10046596
lea eax, [esp + 0x970]
test eax, eax
je 0x10046564
push 0
call sub.MSVCR100.dll_free
add esp, 4
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x170]
cmp eax, ecx
je 0x1004657c
push eax
call sub.MSVCR100.dll_free
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b68]
xor ecx, esp
call fcn.1007d356
mov esp, ebp
pop ebp
ret
lea edx, [eax + ebx*8]
mov dword [esp + 0x94], edx
mov ecx, dword [esp + 0x94]
lea edx, [edi + 1]
xor eax, eax
test edx, edx
jle 0x100465cc
mov edi, dword [esp + 0xb0]
lea ebx, [esi*8]
mov dword [ecx + eax*4], edi
inc eax
add edi, ebx
cmp eax, edx
jl 0x100465be
mov edi, dword [esp + 0x28]
xor eax, eax
test edx, edx
jle 0x100465e7
lea edi, [ecx + edi*4 + 4]
mov ebx, dword [ecx + eax*4]
mov dword [edi], ebx
inc eax
add edi, 4
cmp eax, edx
jl 0x100465d6
mov edi, dword [esp + 0x28]
mov eax, dword [ecx + edi*4]
lea ebx, [eax + esi*8]
mov ecx, esi
and ecx, 0xfffffffe
lea edx, [ecx + esi*2]
lea eax, [ebx + edx*4]
mov ecx, 1
sub ecx, dword [ebp + 0x14]
mov edx, 1
add esi, ecx
mov ecx, dword [esp + 0x18]
sub edx, edi
add dword [esp + 0xa4], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xec], eax
imul ecx, edx
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0xd0]
add eax, ecx
mov ecx, dword [esp + 0xb4]
lea eax, [ecx + eax*2]
mov dword [esp + 0x54], esi
mov dword [esp + 0xb4], eax
mov dword [esp + 0xa0], 0
test edx, edx
jle 0x10047b64
jmp 0x10046660
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0xa0]
mov edx, 1
dec ecx
shl edx, cl
test dword [ebp + 0x28], edx
je 0x10047b4b
cmp dword [esp + 0x28], 0
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xb4]
lea edi, [ecx + eax*2]
lea eax, [edx + eax*2]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x30], 0
jle 0x100467f8
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x3c]
lea eax, [edx + ecx - 1]
mov ecx, dword [esp + 0xd4]
lea edx, [ecx + ecx]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
jmp 0x100466e0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x94]
mov edx, dword [eax + ecx*4]
xor ecx, ecx
cmp dword [esp + 0x20], 4
mov dword [esp + 0x14], edx
jl 0x100467ab
mov eax, dword [esp + 0x14]
lea ecx, [esi + esi*2]
lea ecx, [edi + ecx*2]
mov dword [esp + 0x2c], ecx
lea ecx, [edi + esi*4]
mov dword [esp + 0x34], ecx
lea ecx, [edi + esi*2]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffffc
shr ecx, 2
add eax, 0x10
inc ecx
mov dword [esp + 0x6c], edi
lea edi, [ecx*4]
lea edx, [esi*8]
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x6c]
movsx edi, word [edi]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x50]
add dword [esp + 0x6c], edx
fild dword [esp + 0x4c]
add dword [esp + 0x50], edx
add eax, 0x20
fstp qword [eax - 0x30]
movsx edi, word [edi]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x34]
add dword [esp + 0x34], edx
fild dword [esp + 0x4c]
fstp qword [eax - 0x28]
movsx edi, word [edi]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x2c]
add dword [esp + 0x2c], edx
dec ecx
fild dword [esp + 0x4c]
fstp qword [eax - 0x20]
movsx edi, word [edi]
mov dword [esp + 0x4c], edi
fild dword [esp + 0x4c]
fstp qword [eax - 0x18]
jne 0x10046742
mov ecx, dword [esp + 0x84]
mov edi, dword [esp + 0x58]
cmp ecx, dword [esp + 0x20]
jge 0x100467dd
mov edx, ecx
imul edx, esi
lea edx, [edi + edx*2]
lea esp, [esp]
movsx eax, word [edx]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
inc ecx
fild dword [esp + 0x4c]
lea edx, [edx + esi*2]
fstp qword [eax + ecx*8 - 8]
cmp ecx, dword [esp + 0x20]
jl 0x100467c0
mov eax, dword [esp + 0x30]
add edi, dword [esp + 0x18]
inc eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x28]
jl 0x100466e0
xor esi, esi
mov dword [esp + 0x6c], esi
cmp dword [esp + 0x54], esi
jle 0x10046818
mov esi, dword [esp + 0x54]
mov ecx, esi
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
cmp dword [esp + 0xa4], 0
mov dword [esp + 0x4c], 0
jle 0x10047b4b
mov edi, edi
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x6c]
lea eax, [ecx + edx*4]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x84], eax
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x30], 0
test ecx, ecx
jle 0x10047010
jmp 0x10046870
cmp dword [ebp + 0x14], 0
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x30]
mov edx, dword [eax + ecx*4]
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], 0
jle 0x10046ffd
mov edi, dword [esp + 0x54]
add edi, 0xfffffffe
mov dword [esp + 0x38], edi
nop
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
lea ecx, [eax + edx*8]
mov eax, dword [ebp + 0x14]
sub eax, edx
cmp eax, 0xe
jle 0x100468bc
mov eax, 7
jmp 0x100468c6
cmp eax, 7
jle 0x100468c6
cdq
sub eax, edx
sar eax, 1
mov edx, dword [esp + 0x58]
fld qword [ecx]
fld qword [ecx + 8]
mov esi, dword [esp + 0x50]
fld qword [ecx + 0x10]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x5c]
fld qword [ecx + 0x18]
fld qword [ecx + 0x20]
mov dword [esp + 0x24], edx
fstp qword [esp + 0x98]
lea edx, [ecx + 0x10]
fld qword [ecx + 0x28]
add dword [esp + 0x34], eax
mov dword [esp + 0x48], edx
fstp qword [esp + 0xc0]
fld qword [esi]
lea edx, [ecx + 0x18]
fld qword [esi + 8]
mov dword [esp + 0x2c], edx
lea edx, [ecx + 0x20]
fst qword [esp + 0xc8]
fld qword [esi + 0x10]
mov dword [esp + 0x14], edx
lea edx, [ecx + 0x28]
fst qword [esp + 0x70]
fld qword [esi + 0x18]
fstp qword [esp + 0x78]
fld qword [esi + 0x20]
fstp qword [esp + 0x88]
fld qword [esi + 0x28]
fstp qword [esp + 0xa8]
fld qword [esi + 0x30]
lea esi, [esi + eax*8]
fstp qword [esp + 0xd8]
mov dword [esp + 0x50], esi
cmp eax, 7
jne 0x10046ce7
mov eax, dword [esp + 0x28]
fstp st(0)
dec eax
cmp dword [esp + 0x30], eax
jl 0x10046bce
mov eax, dword [ebp + 0x14]
cmp dword [esp + 0x34], eax
jl 0x10046bce
xor esi, esi
test edi, edi
js 0x1004796a
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x5c]
lea eax, [ebx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
sub eax, ebx
add edx, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
add edx, edi
add ecx, 0x38
sub eax, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x48], eax
jmp 0x100469d0
fld qword [esp + 0xc8]
mov eax, dword [esp + 0x48]
fxch st(3)
fxch st(5)
fxch st(2)
fxch st(4)
fxch st(1)
fxch st(3)
movsx eax, word [eax + edx]
fxch st(5)
fstp qword [esp + 0xb8]
cdq
fxch st(3)
fstp qword [esp + 0x60]
mov edx, dword [esp + 0x1c]
fld qword [esp + 0x98]
mov edi, eax
movsx eax, word [edx]
fld qword [esp + 0xc0]
fld qword [ecx - 8]
fst qword [esp + 0x98]
fld qword [ecx]
cdq
fstp qword [esp + 0xc0]
xor ecx, ecx
or ecx, eax
mov eax, dword [esp + 0xec]
mov dword [eax + esi*4], ecx
mov ecx, dword [esp + 0x2c]
xor edx, edx
or edi, edx
mov dword [eax + esi*4 + 4], edi
mov edi, dword [esp + 0x20]
fld qword [eax + esi*4]
mov eax, dword [esp + 0x40]
fstp qword [esp + 0xe0]
fild dword [esp + 0xe0]
fstp qword [eax + esi*8]
fild dword [esp + 0xe4]
fstp qword [ecx + edi]
fld qword [esp + 0x60]
fmulp st(7)
fld qword [esp + 0xb8]
fmul st(6)
faddp st(7)
fld qword [esp + 0x70]
fmul st(5)
faddp st(7)
fld qword [esp + 0x78]
fmul st(4)
faddp st(7)
fld qword [esp + 0x88]
fmul st(3)
faddp st(7)
fld qword [esp + 0xa8]
fmul st(2)
faddp st(7)
fld qword [esp + 0xd8]
fmul st(1)
faddp st(7)
fxch st(6)
fadd qword [edi - 8]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x10046ab1
fstp st(0)
mov dword [esp + 0x10], 0x80000000
jmp 0x10046ae2
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x10046acc
fstp st(0)
mov dword [esp + 0x10], 0x7fffffff
jmp 0x10046ae2
fstp st(6)
fxch st(5)
call fcn.1007d380
fld qword [esp + 0x98]
mov dword [esp + 0x10], eax
fxch st(5)
fld qword [esp + 0x60]
fmul st(5)
fld qword [esp + 0xc8]
fmul st(5)
faddp st(1)
fld qword [esp + 0x70]
fmul st(4)
faddp st(1)
fld qword [esp + 0x78]
fmul st(3)
faddp st(1)
fld qword [esp + 0x88]
fmul st(2)
faddp st(1)
fld qword [esp + 0xa8]
fmulp st(7)
faddp st(6)
fld qword [esp + 0xd8]
fmul qword [esp + 0xc0]
faddp st(6)
fxch st(5)
fadd qword [edi]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x10046b45
fstp st(0)
mov eax, 0x80000000
jmp 0x10046b62
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x10046b5d
fstp st(0)
mov eax, 0x7fffffff
jmp 0x10046b62
call fcn.1007d380
mov ecx, dword [esp + 0x10]
fldz
mov edx, dword [esp + 0x24]
sar ecx, 0x10
mov word [edx], cx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sar eax, 0x10
mov word [edx], ax
fst qword [edi - 8]
mov eax, dword [esp + 0x3c]
fstp qword [edi]
add eax, eax
add eax, eax
add dword [esp + 0x1c], eax
add dword [esp + 0x24], eax
add edx, eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffffe
add esi, 2
add ecx, 0x10
add edi, 0x10
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], eax
cmp esi, eax
jle 0x100469b9
fstp st(2)
mov edi, eax
fstp st(0)
fstp st(0)
fstp st(1)
jmp 0x10046fee
xor esi, esi
test edi, edi
js 0x1004796a
fld qword [esp + 0xc0]
lea eax, [ecx + 0x38]
mov ecx, dword [esp + 0x38]
jmp 0x10046bfd
fld qword [esp + 0xc8]
fxch st(4)
fxch st(6)
fxch st(3)
fxch st(5)
fxch st(1)
fxch st(4)
fxch st(1)
fxch st(6)
add esi, 2
fstp qword [esp + 0xb8]
add eax, 0x10
fxch st(4)
fstp qword [esp + 0x60]
fld qword [esp + 0x98]
fld qword [eax - 0x18]
fst qword [esp + 0x98]
fld qword [eax - 0x10]
fstp qword [esp + 0xc0]
fld qword [esp + 0x60]
fmulp st(6)
fld qword [esp + 0xb8]
fmul st(3)
faddp st(6)
fld qword [esp + 0x70]
fmul st(5)
faddp st(6)
fld qword [esp + 0x78]
fmul st(4)
faddp st(6)
fld qword [esp + 0x88]
fmul st(2)
faddp st(6)
fld qword [esp + 0xa8]
fmul st(7)
faddp st(6)
fld qword [esp + 0xd8]
fmul st(1)
faddp st(6)
fxch st(5)
fadd qword [ebx + esi*8 - 0x10]
fstp qword [ebx + esi*8 - 0x10]
fld qword [esp + 0x60]
fmul st(2)
fld qword [esp + 0xc8]
fmul st(5)
faddp st(1)
fld qword [esp + 0x70]
fmul st(4)
faddp st(1)
fld qword [esp + 0x78]
fmul st(2)
faddp st(1)
fld qword [esp + 0x88]
fmul st(7)
faddp st(1)
fld qword [esp + 0xa8]
fmulp st(6)
faddp st(5)
fld qword [esp + 0xd8]
fld qword [esp + 0xc0]
fmul st(1), st(0)
fxch st(6)
faddp st(1)
fadd qword [ebx + esi*8 - 8]
fstp qword [ebx + esi*8 - 8]
cmp esi, ecx
jle 0x10046be8
mov edi, dword [esp + 0x38]
fstp st(4)
fstp st(2)
fstp st(0)
fstp st(1)
fstp st(1)
jmp 0x10046fee
cmp eax, 6
jne 0x100470d7
mov eax, dword [esp + 0x28]
fstp st(0)
dec eax
cmp dword [esp + 0x30], eax
jl 0x10046f05
mov eax, dword [ebp + 0x14]
cmp dword [esp + 0x34], eax
jl 0x10046f05
xor esi, esi
test edi, edi
js 0x1004796a
mov eax, dword [esp + 0x3c]
add eax, eax
lea edx, [eax + eax]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x5c]
add eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
sub eax, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
add ecx, 0x30
sub eax, edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], ecx
mov eax, ecx
mov ecx, dword [esp + 0x18]
lea edi, [ebx + 8]
jmp 0x10046d6e
fld qword [esp + 0xc8]
fxch st(3)
fxch st(5)
fxch st(2)
fxch st(4)
fxch st(2)
fxch st(3)
fxch st(1)
fxch st(2)
fxch st(1)
fxch st(5)
fstp qword [esp + 0xb8]
fxch st(3)
fst qword [esp + 0x60]
fld qword [esp + 0x98]
fld qword [eax - 8]
fld qword [eax]
mov eax, dword [esp + 0x1c]
movsx edx, word [eax]
fstp qword [esp + 0x98]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x48]
fild dword [esp + 0x10]
fstp qword [eax + esi*8]
movsx eax, word [ecx + edx]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp qword [edi + ecx]
fxch st(2)
fmul st(6)
fld qword [esp + 0xb8]
fmul st(6)
faddp st(1)
fld qword [esp + 0x70]
fmul st(5)
faddp st(1)
fld qword [esp + 0x78]
fmul st(4)
faddp st(1)
fld qword [esp + 0x88]
fmul st(2)
faddp st(1)
fld qword [esp + 0xa8]
fmul st(3)
faddp st(1)
fadd qword [edi - 8]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x10046e11
mov ecx, 0x80000000
fstp st(0)
mov dword [esp + 0x10], ecx
jmp 0x10046e38
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x10046e2d
mov ecx, 0x7fffffff
fstp st(0)
mov dword [esp + 0x10], ecx
jmp 0x10046e38
call fcn.1007d380
mov dword [esp + 0x10], eax
mov ecx, eax
fld qword [esp + 0x60]
fmul st(5)
fxch st(6)
fmul st(4)
faddp st(6)
fld qword [esp + 0x70]
fmul st(3)
faddp st(6)
fld qword [esp + 0x78]
fmul st(1)
faddp st(6)
fld qword [esp + 0x88]
fmul st(2)
faddp st(6)
fld qword [esp + 0xa8]
fmul qword [esp + 0x98]
faddp st(6)
fxch st(5)
fadd qword [edi]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x10046e8b
fstp st(0)
mov eax, 0x80000000
jmp 0x10046eac
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x10046ea3
fstp st(0)
mov eax, 0x7fffffff
jmp 0x10046eac
call fcn.1007d380
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
fldz
sar ecx, 0x10
mov word [edx], cx
mov ecx, dword [esp + 0x18]
sar eax, 0x10
mov word [ecx], ax
fst qword [edi - 8]
mov eax, dword [esp + 0x20]
fstp qword [edi]
add dword [esp + 0x1c], eax
add dword [esp + 0x24], eax
add ecx, eax
mov eax, dword [esp + 0x14]
add esi, 2
add eax, 0x10
add edi, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
cmp esi, dword [esp + 0x38]
jle 0x10046d55
mov edi, dword [esp + 0x38]
fstp st(2)
fstp st(0)
fstp st(2)
fstp st(1)
jmp 0x10046fee
xor esi, esi
test edi, edi
js 0x1004796a
fld qword [esp + 0x98]
lea eax, [ecx + 0x30]
mov ecx, dword [esp + 0x38]
jmp 0x10046f36
fld qword [esp + 0xc8]
fxch st(4)
fxch st(6)
fxch st(3)
fxch st(5)
fxch st(3)
fxch st(4)
fxch st(1)
fxch st(3)
fxch st(6)
add esi, 2
fstp qword [esp + 0xb8]
add eax, 0x10
fxch st(4)
fst qword [esp + 0x60]
fld qword [eax - 0x18]
fld qword [eax - 0x10]
fstp qword [esp + 0x98]
fxch st(1)
fmul st(5)
fld qword [esp + 0xb8]
fmul st(3)
faddp st(1)
fld qword [esp + 0x70]
fmul st(5)
faddp st(1)
fld qword [esp + 0x78]
fmul st(4)
faddp st(1)
fld qword [esp + 0x88]
fmul st(7)
faddp st(1)
fld qword [esp + 0xa8]
fmul st(2)
faddp st(1)
fadd qword [ebx + esi*8 - 0x10]
fstp qword [ebx + esi*8 - 0x10]
fld qword [esp + 0x60]
fmul st(2)
fxch st(5)
fmul st(4)
faddp st(5)
fld qword [esp + 0x70]
fmul st(3)
faddp st(5)
fld qword [esp + 0x78]
fmul st(6)
faddp st(5)
fld qword [esp + 0x88]
fmul st(1)
faddp st(5)
fld qword [esp + 0xa8]
fld qword [esp + 0x98]
fmul st(1), st(0)
fxch st(6)
faddp st(1)
fadd qword [ebx + esi*8 - 8]
fstp qword [ebx + esi*8 - 8]
cmp esi, ecx
jle 0x10046f1f
fstp st(4)
fstp st(2)
fstp st(0)
mov edi, dword [esp + 0x38]
fstp st(2)
fstp st(0)
mov eax, dword [ebp + 0x14]
fstp st(0)
cmp dword [esp + 0x34], eax
jl 0x100468a0
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x28]
jl 0x10046870
cmp esi, dword [esp + 0x54]
jge 0x100479ef
mov edi, dword [ebp + 0x14]
mov eax, dword [esp + 0x68]
fldz
xor ecx, ecx
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x28], ecx
jle 0x100479ab
mov edx, dword [esp + 0x84]
mov ecx, dword [edx + ecx*4]
lea edx, [esi*8]
add ecx, edx
xor edx, edx
mov dword [esp + 0x44], ecx
cmp edi, 4
jl 0x10047092
add edi, 0xfffffffc
shr edi, 2
add ecx, 0x10
inc edi
lea edx, [edi*4]
fld qword [ecx - 8]
add eax, 0x20
fmul qword [eax - 0x18]
add ecx, 0x20
dec edi
fld qword [ecx - 0x30]
fmul qword [eax - 0x20]
faddp st(2)
faddp st(1)
fld qword [eax - 0x10]
fmul qword [ecx - 0x20]
faddp st(1)
fld qword [ecx - 0x18]
fmul qword [eax - 8]
faddp st(1)
jne 0x10047062
mov edi, dword [ebp + 0x14]
mov ecx, dword [esp + 0x44]
cmp edx, edi
jge 0x100470a5
fld qword [ecx + edx*8]
inc edx
fmul qword [eax]
add eax, 8
faddp st(1)
cmp edx, edi
jl 0x10047096
mov ecx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x30], ecx
cmp ecx, dword [esp + 0x28]
jl 0x10047033
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x10047993
fstp st(0)
mov eax, 0x80000000
jmp 0x100479b0
cmp eax, 5
jne 0x1004734f
mov eax, dword [esp + 0x28]
fstp st(0)
dec eax
cmp dword [esp + 0x30], eax
jl 0x100472ac
mov eax, dword [ebp + 0x14]
cmp dword [esp + 0x34], eax
jl 0x100472ac
xor esi, esi
test edi, edi
js 0x1004796a
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x40]
add ecx, ecx
lea eax, [ecx + ecx]
sub edx, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x58]
add ecx, eax
sub edx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
lea edi, [ebx + 8]
mov dword [esp + 0x48], edx
jmp 0x1004714c
mov edx, dword [esp + 0x48]
fxch st(3)
fxch st(5)
fxch st(2)
fxch st(4)
fxch st(4)
fstp qword [esp + 0x60]
fld qword [eax - 8]
fld qword [eax]
mov eax, dword [esp + 0x1c]
movsx eax, word [eax]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
fild dword [esp + 0x10]
fstp qword [eax + esi*8]
movsx ecx, word [ecx + edx]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fstp qword [edi + edx]
fld qword [esp + 0x60]
fmul st(6)
fxch st(7)
fmul st(3)
faddp st(7)
fld qword [esp + 0x70]
fmul st(5)
faddp st(7)
fld qword [esp + 0x78]
fmul st(4)
faddp st(7)
fld qword [esp + 0x88]
fmul st(2)
faddp st(7)
fxch st(6)
fadd qword [edi - 8]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x100471c8
mov ecx, 0x80000000
fstp st(0)
mov dword [esp + 0x10], ecx
jmp 0x100471ef
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x100471e4
mov ecx, 0x7fffffff
fstp st(0)
mov dword [esp + 0x10], ecx
jmp 0x100471ef
call fcn.1007d380
mov dword [esp + 0x10], eax
mov ecx, eax
fld qword [esp + 0x60]
fmul st(2)
fld st(5)
fmul st(5)
faddp st(1)
fld qword [esp + 0x70]
fmul st(4)
faddp st(1)
fld qword [esp + 0x78]
fmul st(2)
faddp st(1)
fld qword [esp + 0x88]
fmul st(7)
faddp st(1)
fadd qword [edi]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x10047230
fstp st(0)
mov eax, 0x80000000
jmp 0x10047251
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x10047248
fstp st(0)
mov eax, 0x7fffffff
jmp 0x10047251
call fcn.1007d380
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
fldz
sar ecx, 0x10
mov word [edx], cx
mov ecx, dword [esp + 0x18]
sar eax, 0x10
mov word [ecx], ax
fst qword [edi - 8]
mov eax, dword [esp + 0x20]
fstp qword [edi]
add dword [esp + 0x1c], eax
add dword [esp + 0x24], eax
add ecx, eax
mov eax, dword [esp + 0x14]
add esi, 2
add eax, 0x10
add edi, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
cmp esi, dword [esp + 0x38]
jle 0x10047140
mov edi, dword [esp + 0x38]
fstp st(3)
fstp st(1)
fstp st(1)
fstp st(2)
fstp st(1)
jmp 0x10046fee
xor esi, esi
test edi, edi
js 0x1004796a
mov eax, edx
jmp 0x100472c8
fxch st(3)
fxch st(5)
fxch st(2)
fxch st(4)
fxch st(2)
fxch st(3)
fxch st(2)
fxch st(4)
add esi, 2
fst qword [esp + 0x60]
add eax, 0x10
fld qword [eax - 0x18]
fld qword [eax - 0x10]
fxch st(2)
fmul st(6)
fxch st(7)
fmul st(3)
faddp st(7)
fld qword [esp + 0x70]
fmul st(5)
faddp st(7)
fld qword [esp + 0x78]
fmul st(4)
faddp st(7)
fld qword [esp + 0x88]
fmul st(1)
faddp st(7)
fxch st(6)
fadd qword [ebx + esi*8 - 0x10]
fstp qword [ebx + esi*8 - 0x10]
fld qword [esp + 0x60]
fmul st(2)
fld st(5)
fmul st(5)
faddp st(1)
fld qword [esp + 0x70]
fmul st(4)
faddp st(1)
fld qword [esp + 0x78]
fmul st(7)
faddp st(1)
fld qword [esp + 0x88]
fmul st(2)
faddp st(1)
fadd qword [ebx + esi*8 - 8]
fstp qword [ebx + esi*8 - 8]
cmp esi, edi
jle 0x100472ba
fstp st(3)
fstp st(1)
fstp st(3)
fstp st(0)
fstp st(1)
jmp 0x10046fee
fstp st(3)
cmp eax, 4
jne 0x100475a1
mov eax, dword [esp + 0x28]
dec eax
cmp dword [esp + 0x30], eax
jl 0x10047522
mov eax, dword [ebp + 0x14]
cmp dword [esp + 0x34], eax
jl 0x10047522
xor esi, esi
test edi, edi
js 0x10047977
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x5c]
add ecx, ecx
lea edx, [ecx + ecx]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x40]
sub edx, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x58]
add ecx, eax
sub edx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
lea edi, [ebx + 8]
mov dword [esp + 0x48], edx
jmp 0x100473c8
mov edx, dword [esp + 0x48]
fxch st(3)
fxch st(5)
fxch st(3)
fxch st(4)
fxch st(4)
fstp qword [esp + 0x60]
fld qword [eax - 8]
fld qword [eax]
mov eax, dword [esp + 0x1c]
movsx eax, word [eax]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
fild dword [esp + 0x10]
fstp qword [eax + esi*8]
movsx ecx, word [edx + ecx]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fstp qword [edx + edi]
fld qword [esp + 0x60]
fmul st(6)
fxch st(7)
fmul st(3)
faddp st(7)
fld st(3)
fmul st(5)
faddp st(7)
fld qword [esp + 0x78]
fmul st(2)
faddp st(7)
fxch st(6)
fadd qword [edi - 8]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x10047437
mov ecx, 0x80000000
fstp st(0)
mov dword [esp + 0x10], ecx
jmp 0x10047468
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x10047453
mov ecx, 0x7fffffff
fstp st(0)
mov dword [esp + 0x10], ecx
jmp 0x10047468
fstp st(3)
fxch st(2)
call fcn.1007d380
fld qword [esp + 0x70]
mov dword [esp + 0x10], eax
fxch st(2)
mov ecx, eax
fld qword [esp + 0x60]
fmul st(2)
fld st(5)
fmul st(5)
faddp st(1)
fld st(3)
fmul st(2)
faddp st(1)
fld qword [esp + 0x78]
fmul st(7)
faddp st(1)
fadd qword [edi]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1004749c
fstp st(0)
mov eax, 0x80000000
jmp 0x100474c7
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x100474b4
fstp st(0)
mov eax, 0x7fffffff
jmp 0x100474c7
fstp st(3)
fxch st(2)
call fcn.1007d380
fld qword [esp + 0x70]
mov ecx, dword [esp + 0x10]
fxch st(2)
mov edx, dword [esp + 0x24]
fldz
sar ecx, 0x10
mov word [edx], cx
mov ecx, dword [esp + 0x18]
sar eax, 0x10
mov word [ecx], ax
fst qword [edi - 8]
mov eax, dword [esp + 0x20]
fstp qword [edi]
add dword [esp + 0x1c], eax
add dword [esp + 0x24], eax
add ecx, eax
mov eax, dword [esp + 0x14]
add esi, 2
add eax, 0x10
add edi, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
cmp esi, dword [esp + 0x38]
jle 0x100473bc
mov edi, dword [esp + 0x38]
fstp st(2)
fstp st(2)
fstp st(0)
fstp st(2)
fstp st(1)
jmp 0x10046fee
xor esi, esi
test edi, edi
js 0x10047977
mov eax, dword [esp + 0x14]
jmp 0x10047538
fxch st(3)
fxch st(5)
fxch st(4)
fxch st(4)
add esi, 2
fst qword [esp + 0x60]
add eax, 0x10
fld qword [eax - 0x18]
fld qword [eax - 0x10]
fxch st(2)
fmul st(6)
fxch st(7)
fmul st(3)
faddp st(7)
fld st(3)
fmul st(5)
faddp st(7)
fld qword [esp + 0x78]
fmul st(1)
faddp st(7)
fxch st(6)
fadd qword [ebx + esi*8 - 0x10]
fstp qword [ebx + esi*8 - 0x10]
fld qword [esp + 0x60]
fmul st(2)
fld st(5)
fmul st(5)
faddp st(1)
fld st(3)
fmul st(7)
faddp st(1)
fld qword [esp + 0x78]
fmul st(2)
faddp st(1)
fadd qword [ebx + esi*8 - 8]
fstp qword [ebx + esi*8 - 8]
cmp esi, edi
jle 0x10047532
fstp st(2)
fstp st(2)
fstp st(3)
fstp st(2)
fstp st(1)
jmp 0x10046fee
cmp eax, 3
fstp st(3)
mov eax, dword [esp + 0x28]
jne 0x100477ae
dec eax
cmp dword [esp + 0x30], eax
jl 0x1004774e
mov eax, dword [ebp + 0x14]
cmp dword [esp + 0x34], eax
jl 0x1004774e
xor esi, esi
test edi, edi
js 0x10047986
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x5c]
add ecx, ecx
lea edx, [ecx + ecx]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x40]
sub edx, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x58]
add ecx, eax
sub edx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
lea edi, [ebx + 8]
mov dword [esp + 0x48], edx
jmp 0x10047618
mov edx, dword [esp + 0x48]
fxch st(3)
fxch st(4)
fxch st(3)
fld qword [eax - 8]
fld qword [eax]
mov eax, dword [esp + 0x1c]
movsx eax, word [eax]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
fild dword [esp + 0x10]
fstp qword [eax + esi*8]
movsx ecx, word [ecx + edx]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fstp qword [edi + edx]
fld st(5)
fmul st(5)
fxch st(7)
fmul st(3)
faddp st(7)
fld st(3)
fmul st(2)
faddp st(7)
fxch st(6)
fadd qword [edi - 8]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x10047677
mov ecx, 0x80000000
fstp st(0)
mov dword [esp + 0x10], ecx
jmp 0x100476a8
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x10047693
mov ecx, 0x7fffffff
fstp st(0)
mov dword [esp + 0x10], ecx
jmp 0x100476a8
fstp st(3)
fxch st(2)
call fcn.1007d380
fld qword [esp + 0x70]
mov dword [esp + 0x10], eax
fxch st(2)
mov ecx, eax
fxch st(4)
fmul st(1)
fld st(3)
fmul st(5)
faddp st(1)
fld st(2)
fmul st(6)
faddp st(1)
fadd qword [edi]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x100476d2
fstp st(0)
mov eax, 0x80000000
jmp 0x100476fd
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x100476ea
fstp st(0)
mov eax, 0x7fffffff
jmp 0x100476fd
fstp st(2)
fxch st(1)
call fcn.1007d380
fld qword [esp + 0x70]
mov ecx, dword [esp + 0x10]
fxch st(1)
mov edx, dword [esp + 0x24]
fldz
sar ecx, 0x10
mov word [edx], cx
mov ecx, dword [esp + 0x18]
sar eax, 0x10
mov word [ecx], ax
fst qword [edi - 8]
mov eax, dword [esp + 0x20]
fstp qword [edi]
add dword [esp + 0x1c], eax
add dword [esp + 0x24], eax
add ecx, eax
mov eax, dword [esp + 0x14]
add esi, 2
add eax, 0x10
add edi, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
cmp esi, dword [esp + 0x38]
jle 0x1004760e
fstp st(1)
fstp st(2)
jmp 0x10046fe6
xor esi, esi
test edi, edi
js 0x10047986
mov eax, dword [esp + 0x2c]
jmp 0x10047764
fxch st(3)
fxch st(4)
fxch st(3)
fld qword [eax - 8]
add esi, 2
fld qword [eax]
add eax, 0x10
fld st(5)
fmul st(5)
fxch st(7)
fmul st(3)
faddp st(7)
fld st(3)
fmul st(2)
faddp st(7)
fxch st(6)
fadd qword [ebx + esi*8 - 0x10]
fstp qword [ebx + esi*8 - 0x10]
fxch st(4)
fmul st(1)
fld st(3)
fmul st(5)
faddp st(1)
fld st(2)
fmul st(6)
faddp st(1)
fadd qword [ebx + esi*8 - 8]
fstp qword [ebx + esi*8 - 8]
cmp esi, edi
jle 0x1004775e
fstp st(1)
fstp st(2)
jmp 0x10046fea
dec eax
fstp st(1)
fstp st(2)
cmp dword [esp + 0x30], eax
jl 0x10047924
mov eax, dword [ebp + 0x14]
cmp dword [esp + 0x34], eax
jl 0x10047924
xor esi, esi
test edi, edi
js 0x10046fea
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x5c]
add ecx, ecx
lea edx, [ecx + ecx]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x40]
sub edx, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x58]
add ecx, eax
sub edx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
lea edi, [ebx + 8]
mov dword [esp + 0x48], edx
jmp 0x10047814
mov edx, dword [esp + 0x48]
fld qword [eax - 8]
fld qword [eax]
mov eax, dword [esp + 0x1c]
movsx eax, word [eax]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
fild dword [esp + 0x10]
fstp qword [eax + esi*8]
movsx ecx, word [ecx + edx]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fstp qword [edi + edx]
fld st(1)
fmul st(3)
fxch st(5)
fmul st(4)
faddp st(5)
fxch st(4)
fadd qword [edi - 8]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1004786d
mov ecx, 0x80000000
fstp st(0)
mov dword [esp + 0x10], ecx
jmp 0x10047894
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x10047889
mov ecx, 0x7fffffff
fstp st(0)
mov dword [esp + 0x10], ecx
jmp 0x10047894
call fcn.1007d380
mov dword [esp + 0x10], eax
mov ecx, eax
fmul st(2)
fld st(1)
fmul st(4)
faddp st(1)
fadd qword [edi]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x100478b6
fstp st(0)
mov eax, 0x80000000
jmp 0x100478d7
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x100478ce
fstp st(0)
mov eax, 0x7fffffff
jmp 0x100478d7
call fcn.1007d380
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
fldz
sar ecx, 0x10
mov word [edx], cx
mov ecx, dword [esp + 0x18]
sar eax, 0x10
mov word [ecx], ax
fst qword [edi - 8]
mov eax, dword [esp + 0x20]
fstp qword [edi]
add dword [esp + 0x1c], eax
add dword [esp + 0x24], eax
add ecx, eax
mov eax, dword [esp + 0x14]
add esi, 2
add eax, 0x10
add edi, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
cmp esi, dword [esp + 0x38]
jle 0x10047810
jmp 0x10046fe6
xor esi, esi
test edi, edi
js 0x10046fea
mov eax, dword [esp + 0x48]
fld qword [eax - 8]
add esi, 2
fld qword [eax]
add eax, 0x10
fld st(1)
fmul st(3)
fxch st(5)
fmul st(4)
faddp st(5)
fxch st(4)
fadd qword [ebx + esi*8 - 0x10]
fstp qword [ebx + esi*8 - 0x10]
fmul st(2)
fld st(1)
fmul st(4)
faddp st(1)
fadd qword [ebx + esi*8 - 8]
fstp qword [ebx + esi*8 - 8]
cmp esi, edi
jle 0x10047932
jmp 0x10046fea
fstp st(5)
fstp st(3)
fstp st(1)
fstp st(0)
jmp 0x10046fec
fstp st(2)
fstp st(4)
fstp st(2)
fstp st(0)
fstp st(1)
jmp 0x10046fee
fstp st(1)
fstp st(3)
fstp st(1)
fstp st(1)
jmp 0x10046fee
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x100479ab
fstp st(0)
mov eax, 0x7fffffff
jmp 0x100479b0
call fcn.1007d380
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
sar eax, 0x10
mov word [edx], ax
movsx eax, word [ecx]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
inc esi
fild dword [esp + 0x44]
fstp qword [eax + esi*8 - 8]
mov eax, dword [esp + 0x3c]
lea ecx, [ecx + eax*2]
add eax, eax
add edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
cmp esi, dword [esp + 0x54]
jl 0x1004701d
mov eax, dword [ebp + 0x14]
dec eax
xor edi, edi
mov dword [esp + 0x34], eax
cmp eax, 4
jl 0x10047ab8
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x1c]
lea edx, [edi*8]
lea edi, [edi + edi*2]
lea edi, [ecx + edi*2]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x3c]
lea ecx, [ecx + edi*4]
mov dword [esp + 0x50], ecx
lea ecx, [edi + edi]
add ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffffc
shr ecx, 2
inc ecx
lea edi, [ecx*4]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x14]
movsx edi, word [edi]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x18]
add dword [esp + 0x14], edx
fild dword [esp + 0x44]
add dword [esp + 0x18], edx
add eax, 0x20
fstp qword [eax - 0x20]
movsx edi, word [edi]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x50]
add dword [esp + 0x50], edx
fild dword [esp + 0x44]
fstp qword [eax - 0x18]
movsx edi, word [edi]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x20]
add dword [esp + 0x20], edx
dec ecx
fild dword [esp + 0x44]
fstp qword [eax - 0x10]
movsx edi, word [edi]
mov dword [esp + 0x44], edi
fild dword [esp + 0x44]
fstp qword [eax - 8]
jne 0x10047a56
mov edi, dword [esp + 0x30]
mov eax, dword [ebp + 0x14]
dec eax
mov dword [esp + 0x34], eax
cmp edi, eax
jge 0x10047b01
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
lea eax, [edi + edx]
mov edx, edi
imul edx, dword [esp + 0x3c]
lea ecx, [ecx + eax*8]
mov eax, dword [esp + 0x1c]
lea edx, [eax + edx*2]
mov eax, dword [esp + 0x34]
sub eax, edi
movsx edi, word [edx]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x3c]
add ecx, 8
dec eax
fild dword [esp + 0x44]
lea edx, [edx + edi*2]
fstp qword [ecx - 8]
jne 0x10047ae6
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0x28]
add eax, eax
add dword [esp + 0x58], eax
mov eax, dword [esp + 0xd0]
add eax, eax
add dword [esp + 0x5c], eax
mov eax, dword [esp + 0x6c]
inc eax
inc ecx
mov dword [esp + 0x6c], eax
cmp eax, ecx
jl 0x10047b35
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0xa4]
jl 0x10046830
mov eax, dword [esp + 0xa0]
inc eax
mov dword [esp + 0xa0], eax
cmp eax, dword [esp + 0x3c]
jl 0x10046660
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0x970]
cmp eax, ecx
je 0x10047b7f
push eax
call sub.MSVCR100.dll_free
add esp, 4
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x170]
cmp eax, edx
je 0x10047b97
push eax
call sub.MSVCR100.dll_free
add esp, 4
mov ecx, dword [esp + 0x3b74]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1007d356
mov esp, ebp
pop ebp
ret