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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
fld qword [ebp + 8]
fmul qword [0x10059a70]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
cmp ebx, 3
push edi
fstp qword [esp + 0xe0]
mov dword [esp + 0x60], 0xa2879f2e
mov dword [esp + 0x64], 0x547d42ae
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x90], 0x100
mov dword [esp + 0x24], esi
mov dword [esp + 0x44], esi
jl 0x1003cead
cmp ebx, 0x15
jg 0x1003cead
mov ecx, dword [ebp + 0x14]
cmp ecx, 1
jl 0x1003cea6
lea eax, [ebx - 2]
cmp ecx, eax
mov dword [esp + 0xd8], eax
jg 0x1003cea6
mov eax, ebx
sub eax, ecx
mov ecx, dword [ebp + 0x20]
dec eax
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x18]
cmp eax, ecx
jle 0x1003bf07
mov eax, ecx
mov dword [ebp + 0x18], eax
mov edi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x34]
xor ecx, ecx
cmp edi, esi
setne cl
lea edi, [ebx - 1]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0x3c], edi
add edi, edx
lea ecx, [ebx + ebx - 2]
mov dword [esp + 0xc4], edi
cmp ecx, edi
jg 0x1003bf35
mov ecx, edi
cmp ecx, eax
mov dword [esp + 0xc], ecx
jle 0x1003bf47
mov esi, 3
jmp 0x1003ce90
mov esi, eax
lea ecx, [ebx*8]
imul esi, ebx
mov dword [esp + 0x6c], esi
mov esi, edi
imul esi, eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0xa0], ecx
lea esi, [eax + ebx]
add ecx, 8
mov dword [esp + 0x84], esi
mov esi, dword [esp + 0x6c]
add eax, edi
mov dword [esp + 0xb0], ecx
imul ecx, edx
mov dword [esp + 0x8c], eax
mov edx, edi
add eax, esi
mov esi, dword [esp + 0x8c]
imul edx, edi
lea eax, [eax + esi*2]
mov esi, dword [ebp + 0x20]
mov dword [esp + 0x80], edx
mov dword [esp + 0x88], ecx
lea eax, [eax + esi*4]
mov esi, dword [esp + 0x84]
add eax, esi
add eax, edx
mov edx, dword [esp + 0x5c]
add eax, edx
mov edx, dword [ebp + 0x20]
lea ecx, [ecx + eax*8]
add ecx, edx
push ecx
call fcn.10003ce0
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
jne 0x1003bfe4
mov esi, 3
jmp 0x1003ce90
mov edx, dword [ebp + 0x18]
lea esi, [eax + esi*8]
shl edx, 3
lea eax, [esp + 0xec]
mov ecx, 3
mov dword [eax], esi
add esi, edx
add eax, 4
dec ecx
jne 0x1003bff9
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x40], esi
lea ecx, [edx*8]
mov dword [esp + 0xd0], ecx
lea eax, [ecx + esi]
mov dword [esp + 0x98], eax
mov dword [esp + 0x84], eax
add eax, ecx
mov dword [esp + 0x8c], eax
add eax, ecx
mov dword [esp + 0xb4], eax
add eax, ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xa4], eax
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x7c], eax
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x5c], eax
lea eax, [eax + ecx*8]
lea ecx, [edi*8]
mov dword [esp + 0xbc], eax
add eax, ecx
mov dword [esp + 0xc0], eax
add eax, ecx
mov dword [esp + 0x94], eax
add eax, ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
test edx, edx
lea edi, [ecx + eax]
mov dword [esp + 0x88], edi
jle 0x1003c0b6
mov ecx, edx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x88]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
jle 0x1003c0d8
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax]
add eax, 4
mov byte [ecx + edi], 1
mov ecx, dword [esp + 0x4c]
dec ecx
mov dword [esp + 0x4c], ecx
jne 0x1003c0c4
mov eax, dword [ebp + 0x28]
cmp eax, 4
je 0x1003c0fa
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
push esi
push edx
push 1
push 0
push ecx
push 3
push eax
call fcn.100460f0
add esp, 0x1c
jmp 0x1003c117
test edx, edx
jle 0x1003c117
mov ecx, dword [ebp + 0x2c]
mov eax, esi
sub ecx, esi
mov edi, dword [ecx + eax]
mov dword [eax], edi
mov edi, dword [ecx + eax + 4]
mov dword [eax + 4], edi
add eax, 8
dec edx
jne 0x1003c105
mov edx, dword [esp + 0x98]
mov eax, dword [ebp + 0x1c]
test eax, eax
fld qword [edx - 8]
fsub qword [esi]
fmul qword [0x10059a80]
fstp qword [esp + 0xf8]
jne 0x1003c142
mov dword [esp + 0x90], 1
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x70]
sub eax, ebx
mov dword [esp + 0xa8], 0x39a08cea
cdq
idiv edi
mov dword [esp + 0xac], 0x46293e59
mov ecx, eax
mov eax, dword [ebp + 0x18]
sub eax, ebx
inc ecx
cdq
idiv edi
lea edi, [ecx - 1]
mov dword [esp + 0x78], ecx
imul edi, dword [esp + 0x70]
add edi, ebx
mov dword [esp + 0x10], edi
inc eax
cmp ecx, eax
mov dword [esp + 0xdc], eax
jg 0x1003cdf0
jmp 0x1003c197
mov ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x80], 1
mov dword [esp + 0x4c], 0
lea edi, [eax - 1]
mov eax, dword [esp + 0x90]
mov dword [esp + 0xd4], edi
imul edi, dword [esp + 0x70]
add edi, ebx
test eax, eax
mov dword [esp + 0x10], edi
jle 0x1003cdd8
mov eax, dword [esp + 0x80]
test eax, eax
je 0x1003cdd8
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x1003c2de
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
test ecx, ecx
jle 0x1003c20c
mov eax, dword [esp + 0x24]
mov ebx, ecx
mov edx, dword [esi]
mov dword [eax], edx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
add eax, 8
dec ecx
jne 0x1003c1fc
cmp dword [esp + 0x78], 1
jle 0x1003c29a
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0xd4]
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
cdq
idiv dword [esp + 0x78]
cmp eax, 1
jge 0x1003c241
mov eax, 1
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jle 0x1003c24b
mov eax, ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x48], 0
test ecx, ecx
jle 0x1003c281
mov edx, dword [esp + 0x24]
lea ecx, [edx + ebx*8]
mov edx, dword [esi + eax*8]
inc ebx
mov dword [ecx], edx
mov edx, dword [esi + eax*8 + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x48]
add ecx, 8
inc edx
cmp edx, dword [esp + 0x70]
mov dword [esp + 0x48], edx
jl 0x1003c262
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
add ecx, eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
jne 0x1003c22e
mov ecx, dword [ebp + 0x10]
add ecx, edi
cmp edi, ecx
jge 0x1003c2c4
mov edx, dword [esp + 0x24]
sub ecx, edi
lea eax, [edx + edi*8]
mov edx, dword [esp + 0x98]
mov ebx, dword [edx - 8]
mov dword [eax], ebx
mov ebx, dword [edx - 4]
mov dword [eax + 4], ebx
add eax, 8
dec ecx
jne 0x1003c2b3
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xd8]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edi
push edx
call fcn.10045a60
add esp, 0x10
mov ebx, dword [esp + 0x7c]
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0x24]
push ebx
push 0
push eax
push esi
mov esi, dword [ebp + 0x10]
push ecx
push edx
push edi
push esi
call fcn.10043440
add esp, 0x20
push ebx
push edi
push esi
call fcn.100435a0
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x1c]
add esp, 0xc
test eax, eax
je 0x1003c336
fld qword [esp + 0xa8]
fcomp qword [esp + 0xe0]
fnstsw ax
test ah, 1
je 0x1003c341
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x3c]
xor ebx, ebx
test eax, eax
jle 0x1003c3d5
mov ecx, dword [esp + 0x10]
lea eax, [ecx*8]
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], eax
jmp 0x1003c368
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x1003c37a
and ecx, 0x1fffffff
mov edi, esi
shl ecx, 1
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0xa0]
mov eax, edi
mov ecx, dword [ebp + 0x10]
sub eax, edx
mov edx, dword [esp + 0x7c]
mov dword [esi + ebx*8], 0
mov dword [esi + ebx*8 + 4], 0x3ff00000
mov dword [eax + esi + 8], 0
mov dword [eax + esi + 0xc], 0xbff00000
mov eax, dword [esp + 0x10]
push esi
push edx
push eax
push ecx
call fcn.10043340
mov eax, dword [esp + 0x54]
add esp, 0x10
add esi, eax
mov eax, dword [esp + 0x3c]
inc ebx
add edi, 8
cmp ebx, eax
mov dword [esp + 0x18], edi
jl 0x1003c364
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
cmp eax, edx
jle 0x1003c539
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x1003c539
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebp + 0x38]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
lea edi, [ecx + 8]
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c0]
lea ecx, [esp + 0x48]
push eax
mov eax, dword [edx]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x48]
mov ebx, dword [ebp + 0x10]
sub esp, 8
fld qword [ecx + eax*8]
mov eax, dword [esp + 0x20]
fstp qword [esp]
push edx
push 0xffffffffffffffff
push eax
push ebx
call fcn.1004c360
mov ecx, dword [esp + 0x68]
add esp, 0x20
mov dword [edi - 8], ecx
mov edx, dword [esp + 0x48]
test ebx, ebx
lea eax, [edx + ebx - 1]
mov dword [edi - 4], eax
jle 0x1003c47c
lea eax, [esp + 0x1c0]
mov ecx, edi
mov dword [esp + 0x18], ebx
mov edx, dword [eax]
add eax, 8
mov dword [ecx], edx
mov edx, dword [eax - 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x18]
add ecx, 8
dec edx
mov dword [esp + 0x18], edx
jne 0x1003c461
mov eax, dword [esp + 0x48]
xor edx, edx
test eax, eax
jle 0x1003c4a1
mov ecx, esi
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esp + 0x48]
inc edx
add ecx, 8
cmp edx, eax
jl 0x1003c488
lea ecx, [eax + ebx]
mov edx, eax
cmp eax, ecx
jge 0x1003c4d8
lea ecx, [esi + eax*8]
mov edi, edx
add ecx, 8
sub edi, eax
inc edx
mov eax, dword [esp + edi*8 + 0x1c0]
mov dword [ecx - 8], eax
mov eax, dword [esp + edi*8 + 0x1c4]
mov dword [ecx - 4], eax
mov eax, dword [esp + 0x48]
lea edi, [eax + ebx]
cmp edx, edi
jl 0x1003c4ad
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add eax, ebx
cmp eax, ecx
jge 0x1003c4f7
sub ecx, eax
lea edi, [esi + eax*8]
shl ecx, 1
and ecx, 0x3ffffffe
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x10]
push esi
push ecx
push edx
push ebx
call fcn.10043340
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xc0]
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea esi, [esi + eax*8]
mov eax, dword [esp + 0x1c]
add edi, edx
add ecx, 4
dec eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jne 0x1003c406
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
xor esi, esi
mov dword [esp + 0x1c], ecx
cmp edi, esi
mov dword [esp + 0x50], esi
jle 0x1003c6b6
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x10]
shl eax, 3
lea ecx, [edx + 8]
mov edx, dword [esp + 0xa4]
mov dword [esp + 0xc], esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jmp 0x1003c586
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x14]
cmp esi, eax
jge 0x1003c5dc
cmp esi, edi
jge 0x1003c673
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
add eax, 8
lea esi, [edx + ecx]
mov ecx, ebx
mov ebx, dword [esp + 0x50]
add ecx, eax
sub edx, eax
mov eax, edi
sub eax, ebx
fld qword [edx + ecx]
fsub qword [ecx]
mov ebx, dword [esp + 0x44]
add esi, 8
add ecx, ebx
dec eax
fstp qword [esi - 8]
jne 0x1003c5c3
jmp 0x1003c673
mov eax, dword [ecx - 8]
mov edx, dword [ecx - 4]
cmp esi, edi
mov dword [esp + 0x9c], eax
mov dword [esp + 0x28], edx
jge 0x1003c668
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
add ecx, esi
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x50]
sub edi, ecx
mov dword [esp + 0x38], edi
jmp 0x1003c616
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x9c]
fld qword [0x10059a90]
cmp eax, edx
jg 0x1003c642
lea esi, [eax*8]
sub edx, eax
mov ecx, esi
inc edx
mov edi, dword [esp + 0x34]
mov eax, ecx
fld qword [ecx + ebx]
sub eax, esi
add ecx, 8
dec edx
fmul qword [edi + eax]
faddp st(1)
jne 0x1003c62c
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x44]
add ebx, edx
fstp qword [eax]
add eax, 8
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x38], eax
jne 0x1003c60b
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
add ecx, dword [esp + 0xb0]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
lea eax, [edx + edi*8]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
add ebx, ecx
mov ecx, 8
inc eax
add esi, ecx
add edx, ecx
cmp eax, edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], edx
jl 0x1003c57e
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
call fcn.1004e1e0
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x24]
lea edx, [esp + 0xf8]
add esp, 0xc
mov dword [esp + 0x14], 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x1c], eax
mov edi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x10]
test edi, edi
jle 0x1003c718
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0x1c]
mov edx, edi
mov esi, dword [eax]
add eax, 0x18
mov dword [ecx], esi
mov esi, dword [eax - 0x14]
mov dword [ecx + 4], esi
add ecx, 8
dec edx
jne 0x1003c705
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xb4]
mov eax, dword [ebp + 0x30]
mov esi, dword [ecx]
mov ecx, dword [esp + 0x40]
push esi
push 0
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edi
mov edi, dword [esp + 0x28]
push edx
push edi
push ebx
call fcn.10043240
mov eax, dword [esp + 0xa0]
add esp, 0x24
push esi
push eax
push edi
push ebx
call fcn.10043340
mov ecx, dword [esp + 0x4c]
add esp, 0x10
xor eax, eax
mov edx, ecx
test ecx, ecx
jle 0x1003c778
mov edi, dword [esp + 0x94]
and ecx, 0x1fffffff
shl ecx, 1
rep stosd dword es:[edi], eax
mov eax, edx
cmp dword [esp + 0x20], edx
jle 0x1003c7b9
mov edi, dword [ebp + 0x34]
test edi, edi
jle 0x1003c7b9
mov ecx, dword [esp + 0x94]
mov edx, dword [ebp + 0x38]
lea ecx, [ecx + eax*8]
mov eax, dword [edx]
mov ebx, dword [esp + 0x14]
add ecx, 8
add edx, 4
lea ebx, [ebx + eax*2]
add eax, ebx
mov ebx, dword [ebp + 0x24]
dec edi
mov ebx, dword [ebx + eax*8]
mov dword [ecx - 8], ebx
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx + eax*8 + 4]
mov dword [ecx - 4], eax
jne 0x1003c792
mov eax, dword [esp + 0x20]
xor edx, edx
test eax, eax
mov dword [esp + 0x50], edx
jle 0x1003c87f
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], esi
lea ebx, [eax + 8]
mov eax, dword [esp + 0x10]
shl eax, 3
mov dword [esp + 0xc], eax
cmp edx, dword [esp + 0x3c]
jge 0x1003c80b
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0xa0]
sub eax, edi
mov edi, dword [esp + 0x18]
fld qword [edi]
fsub qword [esi + eax + 8]
jmp 0x1003c84b
mov edi, dword [ebx - 8]
mov eax, dword [ebx - 4]
fld qword [0x10059a90]
cmp edi, eax
jg 0x1003c844
sub eax, edi
lea edx, [edi*8]
inc eax
mov ecx, edx
mov edi, eax
mov eax, ecx
add ecx, 8
sub eax, edx
dec edi
fld qword [ebx + eax]
fmul qword [esi + ecx - 8]
faddp st(1)
jne 0x1003c829
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x50]
add ebx, dword [esp + 0xb0]
mov edi, dword [esp + 0x18]
mov eax, 8
fsub qword [ecx]
add edi, eax
inc edx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0xc]
add edi, eax
mov dword [esp + 0x50], edx
fstp qword [ecx]
add ecx, eax
mov eax, dword [esp + 0x20]
cmp edx, eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x38], ecx
jl 0x1003c7ec
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call fcn.1004e300
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0xb8]
add esp, 0x14
test ecx, ecx
jle 0x1003c90e
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x20]
fld qword [0x10059a90]
test eax, eax
jle 0x1003c8f0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, ebx
lea edi, [eax*8]
mov eax, dword [esp + 0xc0]
fld qword [eax]
fmul qword [ecx]
add eax, 8
add ecx, edi
dec edx
faddp st(1)
jne 0x1003c8e2
fld qword [esi]
mov eax, dword [esp + 0x38]
add ebx, 8
fsub st(1)
add esi, 8
dec eax
mov dword [esp + 0x38], eax
fstp qword [esi - 8]
fstp st(0)
jne 0x1003c8bc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
inc eax
add edi, 8
add esi, 4
cmp eax, 3
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], esi
jl 0x1003c6ee
xor esi, esi
test ecx, ecx
jle 0x1003c96c
mov eax, dword [ebp + 0x50]
lea ecx, [esp + 0xec]
mov edx, 3
mov edi, dword [ecx]
add eax, 8
add ecx, 4
dec edx
mov ebx, dword [edi + esi*8]
mov dword [eax - 8], ebx
mov edi, dword [edi + esi*8 + 4]
mov dword [eax - 4], edi
jne 0x1003c94b
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, ecx
jl 0x1003c93f
mov eax, dword [ebp + 0x20]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x1c], edi
jle 0x1003cca3
mov ebx, dword [esp + 0x84]
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x24]
sub eax, ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x8c]
add ecx, 0x10
sub eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x9c], eax
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x100]
push edx
mov edx, dword [esp + 0xbc]
mov eax, dword [esi + ebx + 4]
mov ecx, dword [esi + ebx]
push eax
mov eax, dword [ebp + 0x50]
push ecx
mov ecx, dword [esp + 0x30]
push 1
push edx
mov edx, dword [esp + 0x24]
push 0
push eax
mov eax, dword [ebp + 0x10]
push ecx
push 0xffffffffffffffff
push edx
push eax
call fcn.1004e440
mov eax, dword [esp + 0x38]
add esp, 0x2c
fld qword [eax - 8]
fld qword [eax - 0x10]
fsub qword [esp + 0x100]
fxch st(1)
fsub qword [esp + 0x108]
lea ecx, [eax - 0x10]
fld qword [eax]
fsub qword [esp + 0x110]
fxch st(2)
fst qword [esp + 0x28]
fld st(1)
fxch st(1)
fmul qword [esp + 0x28]
fxch st(1)
fmul st(2)
fxch st(3)
fst qword [esp + 0x28]
fmul qword [esp + 0x28]
fxch st(3)
faddp st(1)
fxch st(2)
faddp st(2)
fxch st(1)
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x88]
fsqrt
cmp byte [ecx + edi], 0
fstp qword [esp + 0x50]
fstp st(0)
je 0x1003ca7d
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
cmp edx, eax
je 0x1003ca7d
mov eax, 1
jmp 0x1003ca7f
xor eax, eax
cmp dword [ebp + 0x1c], 1
jne 0x1003cc4c
test eax, eax
jne 0x1003cc4c
mov eax, dword [esp + 0x38]
xor esi, esi
fld qword [eax + ebx]
fst qword [esp + 0x28]
fld qword [0x10059a90]
fld qword [0x10059a90]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x118]
mov edx, 3
fld qword [eax]
fld qword [eax - 0x18]
fsub qword [ecx]
fld st(1)
fmul st(2)
fxch st(1)
fmul qword [eax]
fxch st(1)
faddp st(4)
add ecx, 8
add eax, 8
dec edx
faddp st(2)
fstp st(0)
jne 0x1003caba
fdivrp st(1)
fld st(0)
fabs
fcomp qword [esp + 0xf8]
fnstsw ax
test ah, 1
jne 0x1003cbc3
fld qword [esp + 0x50]
fcomp qword [0x10059a80]
fnstsw ax
test ah, 1
jne 0x1003cbc3
test edi, edi
jle 0x1003cb0f
mov ecx, edi
jmp 0x1003cb13
mov ecx, dword [ebp + 0x20]
dec ecx
mov edx, dword [ebp + 0x20]
xor eax, eax
dec edx
cmp edi, edx
mov edx, dword [esp + 0x40]
setge al
fld qword [edx + ecx*8 - 8]
fsub qword [edx + ecx*8]
dec eax
and eax, edi
fstp qword [esp + 0x28]
fld qword [edx + eax*8 + 8]
fsub qword [edx + eax*8]
fstp qword [esp + 0xc8]
fcom qword [esp + 0x28]
fnstsw ax
test ah, 1
je 0x1003cb4f
fstp st(0)
fld qword [esp + 0x28]
fcom qword [esp + 0xc8]
fnstsw ax
test ah, 0x41
jne 0x1003cb66
fstp st(0)
fld qword [esp + 0xc8]
cmp esi, 0x1f
jne 0x1003cb6f
inc dword [esp + 0x74]
fxch st(1)
fsub st(1)
lea eax, [esp + 0x100]
push eax
mov eax, dword [esp + 0xbc]
fstp qword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 0x50]
push edx
mov edx, dword [esp + 0x30]
push 1
push eax
mov eax, dword [esp + 0x24]
push 0
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push 0xffffffffffffffff
push eax
push ecx
fstp st(0)
call fcn.1004e440
fld qword [esp + 0x54]
add esp, 0x2c
inc esi
cmp esi, 0x20
jl 0x1003ca9e
jmp 0x1003cbc5
fstp st(0)
cmp esi, dword [esp + 0x1c]
fstp st(0)
jle 0x1003cbd1
mov dword [esp + 0x1c], esi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [ebx], edx
mov dword [ebx + 4], eax
test edi, edi
jle 0x1003cbf4
fld qword [esp + 0x28]
fcomp qword [ebx - 8]
fnstsw ax
test ah, 0x41
je 0x1003cbf4
inc dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
fld qword [ecx]
fld qword [eax - 8]
fxch st(1)
fsub qword [esp + 0x100]
fxch st(1)
fsub qword [esp + 0x108]
fld qword [eax]
fsub qword [esp + 0x110]
fxch st(2)
fst qword [esp + 0x28]
fld st(1)
fxch st(1)
fmul qword [esp + 0x28]
fxch st(1)
fmul st(2)
fxch st(3)
fst qword [esp + 0x28]
fmul qword [esp + 0x28]
fxch st(3)
faddp st(1)
fxch st(2)
faddp st(2)
fxch st(1)
fsqrt
fstp qword [esp + 0x50]
fstp st(0)
jmp 0x1003cc58
mov edx, dword [esi + ebx]
mov dword [ebx], edx
mov eax, dword [esi + ebx + 4]
mov dword [ebx + 4], eax
fld qword [esp + 0x50]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x1003cc7b
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x18], edi
fld qword [esp + 0x50]
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0xc]
inc edi
add edx, 0x18
fstp qword [eax + ebx]
mov eax, dword [ebp + 0x20]
add ebx, 8
cmp edi, eax
mov dword [esp + 0xc], edx
jl 0x1003c9c8
fld qword [esp + 0x60]
fcomp qword [ebp + 8]
fnstsw ax
test ah, 0x41
je 0x1003ccc4
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0xc4]
cmp ecx, eax
je 0x1003ce03
fld qword [esp + 0xa8]
fsub qword [esp + 0x60]
fld qword [esp + 0xa8]
fadd qword [esp + 0x60]
fxch st(1)
fabs
fxch st(1)
fdivp st(1)
mov edi, dword [esp + 0x40]
fcomp qword [0x10059a98]
fnstsw ax
test ah, 1
jne 0x1003cd1d
fld qword [esp + 0x60]
fcomp qword [esp + 0xa8]
fnstsw ax
test ah, 0x41
je 0x1003cd1d
mov eax, dword [esp + 0x14]
test eax, eax
jg 0x1003cd1d
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x4c]
dec edx
cmp eax, edx
jne 0x1003cd28
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1003cda2
cmp dword [ebp + 0x1c], 1
jne 0x1003cda2
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0x84]
mov edx, dword [ebp + 0x20]
fld qword [eax + ecx - 8]
fsub qword [ecx]
lea esi, [edx - 1]
cmp esi, 1
fdivr qword [0x10059aa0]
fstp qword [esp + 0xc8]
jle 0x1003cda2
mov ebx, dword [esp + 0x98]
mov edx, ecx
sub edx, edi
lea eax, [edi + 8]
dec esi
fld qword [edx + eax]
fsub qword [ecx]
fld qword [0x10059aa0]
fxch st(1)
fmul qword [esp + 0xc8]
fxch st(1)
fsub st(1)
add eax, 8
dec esi
fmul qword [edi]
fst qword [eax - 8]
fld qword [ebx - 8]
fmul st(2)
fadd st(1)
fstp qword [eax - 8]
fstp st(0)
fstp st(0)
jne 0x1003cd71
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x10]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x90]
inc eax
cmp eax, ecx
mov dword [esp + 0x4c], eax
jl 0x1003c1d2
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0xdc]
inc eax
cmp eax, ecx
mov dword [esp + 0x78], eax
jle 0x1003c194
fld qword [esp + 0x60]
fcomp qword [ebp + 8]
fnstsw ax
test ah, 0x41
jne 0x1003ce03
dec edi
mov dword [esp + 0x10], edi
mov edx, dword [ebp + 0x48]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [edx], eax
lea edx, [eax + ecx]
test edx, edx
jle 0x1003ce31
mov eax, dword [ebp + 0x4c]
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov esi, dword [ecx + eax]
mov dword [eax], esi
mov esi, dword [ecx + eax + 4]
mov dword [eax + 4], esi
add eax, 8
dec edx
jne 0x1003ce1f
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x1003ce3e
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov eax, dword [ebp + 0x40]
mov edx, dword [ebp + 0x20]
test eax, eax
je 0x1003ce66
test edx, edx
jle 0x1003ce66
mov ecx, dword [esp + 0x40]
mov esi, edx
sub ecx, eax
mov edi, dword [ecx + eax]
mov dword [eax], edi
mov edi, dword [ecx + eax + 4]
mov dword [eax + 4], edi
add eax, 8
dec esi
jne 0x1003ce54
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x1003ce8c
test edx, edx
jle 0x1003ce8c
mov ecx, dword [esp + 0x8c]
sub ecx, eax
mov esi, dword [ecx + eax]
mov dword [eax], esi
mov esi, dword [ecx + eax + 4]
mov dword [eax + 4], esi
add eax, 8
dec edx
jne 0x1003ce7a
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x24]
push eax
call fcn.10003d40
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 2
jmp 0x1003ce90
mov esi, 1
jmp 0x1003ce90