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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28c
fld qword [ebp + 8]
fmul qword [0x10059a40]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp esi, 3
push edi
fstp qword [esp + 0x118]
mov dword [esp + 0x58], 0xa2879f2e
mov dword [esp + 0x5c], 0x547d42ae
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x88], 0x100
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
jl 0x1003be3f
cmp esi, 0x15
jg 0x1003be3f
mov ecx, dword [ebp + 0x14]
cmp ecx, 1
jl 0x1003be35
lea eax, [esi - 2]
cmp ecx, eax
mov dword [esp + 0xd4], eax
jg 0x1003be35
mov edx, dword [ebp + 0x18]
mov eax, esi
sub eax, ecx
dec eax
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0x20]
cmp edx, eax
jle 0x1003ac4a
mov edx, eax
mov dword [ebp + 0x18], edx
cmp eax, 4
mov dword [esp + 0x98], 4
jg 0x1003ac61
mov dword [esp + 0x98], eax
mov ecx, dword [ebp + 0x38]
mov edi, dword [ebp + 0x40]
xor eax, eax
cmp ecx, ebx
setne al
mov dword [esp + 0xc0], eax
xor eax, eax
cmp edi, ebx
setne al
mov dword [esp + 0xc4], eax
xor eax, eax
cmp dword [ebp + 0x1c], ebx
setne al
mov dword [esp + 0xb4], eax
mov eax, 2
cmp ecx, ebx
mov dword [esp + 0x6c], eax
je 0x1003aca8
mov eax, 3
mov dword [esp + 0x6c], eax
cmp edi, ebx
je 0x1003acb1
inc eax
mov dword [esp + 0x6c], eax
mov ecx, dword [ebp + 0x44]
add eax, ecx
mov ecx, esi
cmp esi, eax
mov dword [esp + 0x94], eax
jg 0x1003acc5
mov ecx, eax
cmp ecx, edx
mov dword [esp + 0x48], ecx
jle 0x1003acda
mov dword [esp + 0x1c], 3
jmp 0x1003be47
lea ecx, [esi*8 + 8]
mov edi, eax
mov dword [esp + 0x64], ecx
imul edi, ecx
mov ecx, edx
mov ebx, eax
imul ecx, esi
imul ebx, eax
mov esi, eax
add eax, edx
imul esi, edx
mov dword [esp + 0x68], esi
mov esi, dword [ebp + 0x10]
add esi, edx
mov edx, eax
add edx, ecx
mov dword [esp + 0x84], ecx
lea ecx, [edx + eax*2]
mov eax, dword [ebp + 0x20]
lea edx, [ecx + eax*4]
mov ecx, dword [esp + 0x68]
add edx, esi
add edx, ebx
add edx, ecx
lea ecx, [edi + edx*8]
add ecx, eax
push ecx
call fcn.10003ce0
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
jne 0x1003ad45
mov dword [esp + 0x1c], 4
jmp 0x1003be47
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 0x18]
mov ecx, 3
lea esi, [edx + esi*8]
lea edx, [eax*8]
lea eax, [esp + 0x124]
mov dword [eax], esi
add esi, edx
add eax, 4
dec ecx
jne 0x1003ad62
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x3c], esi
lea ecx, [edx*8]
lea eax, [ecx + esi]
mov dword [esp + 0x80], eax
mov dword [esp + 0xac], eax
add eax, ecx
mov dword [esp + 0xbc], eax
add eax, ecx
mov dword [esp + 0xd0], eax
add eax, ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x8c], eax
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x4c], eax
lea eax, [eax + ecx*8]
mov dword [esp + 0x68], eax
lea ebx, [eax + ebx*8]
mov eax, dword [esp + 0x94]
shl eax, 3
mov dword [esp + 0xcc], ebx
add ebx, eax
mov dword [esp + 0xc8], ebx
add ebx, eax
mov dword [esp + 0x9c], ebx
add ebx, eax
mov dword [esp + 0xb0], ebx
add ebx, edi
test edx, edx
mov dword [esp + 0xd8], ebx
jle 0x1003ae0d
mov ecx, edx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x44]
mov byte [ebx], 1
test ecx, ecx
mov byte [ebx + edx - 1], 1
jle 0x1003ae2b
mov eax, dword [ebp + 0x48]
mov edi, dword [eax]
add eax, 4
dec ecx
mov byte [edi + ebx], 1
jne 0x1003ae1f
mov eax, dword [ebp + 0x28]
cmp eax, 4
je 0x1003ae4d
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
push esi
push ecx
push 1
push 0
push edx
push 3
push eax
call fcn.100460f0
add esp, 0x1c
jmp 0x1003ae6a
test edx, edx
jle 0x1003ae6a
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 0x1003ae58
mov eax, dword [ebp + 0x1c]
test eax, eax
mov eax, dword [esp + 0x80]
fld qword [eax - 8]
fsub qword [esi]
fmul qword [0x10059a50]
fstp qword [esp + 0x110]
jne 0x1003ae95
mov dword [esp + 0x88], 1
mov eax, dword [esp + 0x48]
mov edi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x90]
sub eax, edi
cdq
idiv ecx
mov dword [esp + 0xa0], 0x39a08cea
mov dword [esp + 0xa4], 0x46293e59
mov ebx, eax
mov eax, dword [ebp + 0x18]
sub eax, edi
inc ebx
cdq
idiv ecx
lea edx, [ebx - 1]
mov dword [esp + 0x70], ebx
imul edx, ecx
add edx, edi
mov dword [esp + 0x10], edx
inc eax
cmp ebx, eax
mov dword [esp + 0x84], eax
jg 0x1003bd98
jmp 0x1003aef5
mov edi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x70]
mov dword [esp + 0xb8], 1
dec edx
mov dword [esp + 0x48], 0
mov eax, edx
mov dword [esp + 0xdc], edx
imul eax, ecx
add eax, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
test eax, eax
jle 0x1003bd7c
jmp 0x1003af37
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x1003bd7c
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x1003b021
mov ecx, dword [ebp + 0x10]
xor edi, edi
test ecx, ecx
jle 0x1003af71
mov eax, dword [esp + 0x24]
mov edi, ecx
mov ebx, dword [esi]
mov dword [eax], ebx
mov ebx, dword [esi + 4]
mov dword [eax + 4], ebx
add eax, 8
dec ecx
jne 0x1003af61
cmp dword [esp + 0x70], 1
jle 0x1003aff0
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x20], edx
lea ebx, [eax - 1]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x14]
cdq
idiv dword [esp + 0x70]
cmp eax, 1
jge 0x1003af99
mov eax, 1
cmp eax, ebx
jle 0x1003af9f
mov eax, ebx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x44], 0
test ecx, ecx
jle 0x1003afdb
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + edi*8]
mov edx, dword [esi + eax*8]
inc edi
mov dword [ecx], edx
mov edx, dword [esi + eax*8 + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x44]
add ecx, 8
inc edx
cmp edx, dword [esp + 0x90]
mov dword [esp + 0x44], edx
jl 0x1003afb9
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add ecx, ebx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
jne 0x1003af86
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x10]
lea ecx, [edx + eax]
cmp edx, ecx
jge 0x1003b021
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x80]
sub ecx, edx
lea eax, [eax + edx*8]
mov edx, dword [edi - 8]
mov dword [eax], edx
mov edx, dword [edi - 4]
mov dword [eax + 4], edx
add eax, 8
dec ecx
jne 0x1003b00e
jmp 0x1003b028
mov edi, dword [esp + 0x80]
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x1003b0e6
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xe0], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0xe4], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0xe8], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0xec], edx
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 0x34]
mov dword [esp + 0xf0], ecx
test eax, eax
mov dword [esp + 0xf4], edx
jne 0x1003b0e6
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov ebx, dword [esp + 0x98]
lea eax, [esp + 0x1d8]
push eax
mov eax, dword [ebp + 0x24]
push ecx
push edx
push 1
push 1
push esi
push eax
push ebx
call fcn.1004e800
add esp, 0x20
lea ecx, [esp + 0xe0]
push ecx
push 3
call fcn.10044950
fstp qword [esp + 0x38]
add esp, 8
lea edx, [esp + 0x1f0]
push edx
push 3
call fcn.10044950
fdiv qword [esp + 0x38]
add esp, 8
lea eax, [esp + 0xe0]
mov ecx, 3
fld qword [eax]
fmul st(1)
add eax, 8
dec ecx
fstp qword [eax - 8]
jne 0x1003b0d5
fstp st(0)
jmp 0x1003b0ed
mov ebx, dword [esp + 0x98]
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x1003b1b1
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xf8], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0xfc], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x100], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x104], edx
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x108], ecx
test eax, eax
mov dword [esp + 0x10c], edx
jne 0x1003b1b1
mov eax, dword [ebp + 0x20]
mov edx, dword [edi - 4]
lea ecx, [esp + 0x1d8]
sub eax, ebx
push ecx
mov ecx, dword [edi - 8]
push edx
push ecx
mov ecx, dword [ebp + 0x24]
lea edx, [esi + eax*8]
push 1
lea eax, [eax + eax*2]
push 1
push edx
lea edx, [ecx + eax*8]
push edx
push ebx
call fcn.1004e800
add esp, 0x20
lea eax, [esp + 0xf8]
push eax
push 3
call fcn.10044950
fstp qword [esp + 0x38]
add esp, 8
lea ecx, [esp + 0x1f0]
push ecx
push 3
call fcn.10044950
fdiv qword [esp + 0x38]
add esp, 8
lea eax, [esp + 0xf8]
mov ecx, 3
fld qword [eax]
fmul st(1)
add eax, 8
dec ecx
fstp qword [eax - 8]
jne 0x1003b1a2
fstp st(0)
mov edi, dword [esp + 0x4c]
mov edx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x24]
mov ebx, dword [ebp + 0x10]
push edi
push 0
push edx
push esi
mov esi, dword [esp + 0x20]
push eax
push ecx
push esi
push ebx
call fcn.10043440
add esp, 0x20
push edi
push esi
push ebx
call fcn.100435a0
mov eax, dword [ebp + 0x1c]
mov edx, dword [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x2c], edx
test eax, eax
je 0x1003b206
fld qword [esp + 0xa0]
fcomp qword [esp + 0x118]
fnstsw ax
test ah, 1
je 0x1003b211
mov eax, dword [esp + 0x94]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xb0]
mov ecx, 0x3ff00000
mov dword [eax], 0
mov dword [eax + 4], 0
add eax, 8
cmp esi, 1
mov dword [esp + 0x74], eax
mov dword [eax], 0
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x8c]
mov dword [eax], 0
mov dword [eax + 4], ecx
jle 0x1003b260
lea ecx, [esi + esi - 2]
lea edi, [eax + 8]
and ecx, 0x3ffffffe
xor eax, eax
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x10]
mov edi, dword [ebp + 0x10]
push ebx
push ecx
push esi
push edi
call fcn.10043340
mov edx, dword [esp + 0xc0]
lea eax, [esi*8]
mov dword [esp + 0x50], eax
add ebx, eax
mov eax, dword [esp + 0x74]
add esp, 0x10
lea esi, [edx + eax]
mov eax, dword [esp + 0xc0]
cmp eax, 1
jne 0x1003b370
mov eax, dword [esp + 0x24]
lea ecx, [edi - 1]
mov dword [esp + 0x18], ecx
fld qword [eax + edi*8]
fsub qword [eax + edi*8 - 8]
fild dword [esp + 0x18]
fxch st(1)
fdivp st(1)
cmp dword [esp + 0x10], 2
fchs
fst qword [esp + 0x130]
fchs
fstp qword [esp + 0x138]
mov dword [esi], 0
mov dword [esi + 4], 1
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov edx, dword [esp + 0x138]
mov eax, dword [esp + 0x13c]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
jle 0x1003b350
mov ecx, dword [esp + 0x10]
lea edi, [ebx + 0x10]
lea ecx, [ecx + ecx - 4]
and ecx, 0x3ffffffe
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
push ebx
push edx
push eax
push edi
call fcn.10043340
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x74]
add esp, 0x10
add ebx, ecx
add esi, eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x6c]
cmp ecx, eax
jle 0x1003b4cd
mov eax, dword [ebp + 0x44]
test eax, eax
jle 0x1003b4cd
mov edx, dword [ebp + 0x48]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x130]
lea ecx, [esp + 0x44]
push eax
mov eax, dword [edx]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x44]
sub esp, 8
fld qword [ecx + eax*8]
mov eax, dword [esp + 0x20]
fstp qword [esp]
push edx
push 0xffffffffffffffff
push eax
push edi
call fcn.1004c360
mov ecx, dword [esp + 0x64]
add esp, 0x20
mov dword [esi], ecx
mov edx, dword [esp + 0x44]
test edi, edi
lea eax, [edx + edi - 1]
mov dword [esi + 4], eax
jle 0x1003b409
lea eax, [esp + 0x130]
lea ecx, [esi + 8]
mov dword [esp + 0x20], edi
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 + 0x20]
add ecx, 8
dec edx
mov dword [esp + 0x20], edx
jne 0x1003b3ee
mov eax, dword [esp + 0x44]
xor edx, edx
test eax, eax
jle 0x1003b42e
mov ecx, ebx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esp + 0x44]
inc edx
add ecx, 8
cmp edx, eax
jl 0x1003b415
lea ecx, [eax + edi]
mov edx, eax
cmp eax, ecx
mov dword [esp + 0x1c], edx
jge 0x1003b475
lea ecx, [ebx + eax*8]
jmp 0x1003b444
mov ecx, dword [esp + 0x18]
sub edx, eax
add ecx, 8
mov dword [esp + 0x18], ecx
mov eax, dword [esp + edx*8 + 0x130]
mov dword [ecx - 8], eax
mov edx, dword [esp + edx*8 + 0x134]
mov dword [ecx - 4], edx
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
inc edx
lea ecx, [eax + edi]
cmp edx, ecx
mov dword [esp + 0x1c], edx
jl 0x1003b440
mov ecx, dword [esp + 0x10]
add eax, edi
cmp eax, ecx
jge 0x1003b493
sub ecx, eax
lea edi, [ebx + eax*8]
shl ecx, 1
and ecx, 0x3ffffffe
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
push ebx
push edx
push eax
push edi
call fcn.10043340
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x24]
add ebx, eax
mov eax, dword [esp + 0x38]
add esp, 0x10
add esi, edx
add ecx, 4
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
jne 0x1003b396
cmp dword [esp + 0xc4], 1
jne 0x1003b5a3
mov eax, dword [esp + 0x40]
lea ecx, [edi - 1]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
fild dword [esp + 0x18]
fld qword [eax + ecx]
fsub qword [eax + ecx - 8]
mov eax, dword [esp + 0xd4]
lea edx, [esp + edi*8 + 0x128]
fdivp st(1)
lea eax, [esp + eax*8 + 0x130]
mov dword [esp + 0x1c], eax
fst qword [edx]
fchs
fstp qword [eax]
mov eax, dword [esp + 0x10]
lea ecx, [eax - 2]
dec eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esi], ecx
mov dword [esp + 0x18], ecx
mov eax, dword [eax]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
test ecx, ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
mov eax, dword [edx]
mov dword [esi + 0x10], eax
mov eax, dword [edx + 4]
mov dword [esi + 0x14], eax
jle 0x1003b55e
and ecx, 0x1fffffff
mov edi, ebx
shl ecx, 1
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push ebx
mov eax, dword [eax]
mov dword [ebx + ecx*8], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [ebx + ecx*8 + 4], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [edx]
mov dword [eax + ebx - 8], ecx
mov edx, dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov dword [eax + ebx - 4], edx
mov eax, dword [esp + 0x50]
push eax
push ecx
push edi
call fcn.10043340
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x74]
add esp, 0x10
add ebx, edx
add esi, eax
mov eax, dword [esp + 0x10]
lea edx, [eax - 1]
test edx, edx
jle 0x1003b5c1
mov ecx, edx
mov edi, ebx
and ecx, 0x1fffffff
shl ecx, 1
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x40]
mov ecx, 0x3ff00000
push ebx
mov dword [eax + ebx - 8], 0
mov dword [eax + ebx - 4], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x50]
mov dword [esi], edx
mov dword [esi + 4], edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push edi
call fcn.10043340
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x78]
add esp, 0x10
xor ecx, ecx
test eax, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], ecx
jle 0x1003b6cd
mov ebx, dword [esp + 0x8c]
mov edi, dword [esp + 0x74]
mov dword [esp + 0x50], ebx
mov esi, dword [edi - 4]
mov eax, dword [edi - 8]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x2c]
cmp ecx, esi
mov dword [esp + 0x78], eax
jge 0x1003b6a5
lea edx, [edx + ecx*8]
mov dword [esp + 0x14], edx
mov edx, esi
sub edx, ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x18]
fld qword [0x10059a60]
cmp eax, edx
jg 0x1003b67f
lea esi, [eax*8]
sub edx, eax
mov ecx, esi
inc edx
fld qword [ecx + ebx]
mov eax, ecx
add ecx, 8
sub eax, esi
dec edx
fmul qword [edi + eax]
faddp st(1)
jne 0x1003b661
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
fstp qword [edx]
mov edx, dword [esp + 0x40]
add ebx, edx
mov edx, dword [esp + 0x14]
add edx, 8
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
dec edx
mov dword [esp + 0x20], edx
jne 0x1003b647
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x50]
add edi, eax
mov eax, dword [esp + 0x40]
inc ecx
lea edx, [edx + esi*8]
add ebx, eax
cmp ecx, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x50], ebx
jl 0x1003b622
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call fcn.1004e1e0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x130]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x24]
lea ecx, [esp + 0xec]
add esp, 0xc
sub ecx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0xf8]
sub ecx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
mov edx, dword [ebp + 0x20]
test edx, edx
jle 0x1003b744
mov ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0x28]
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 0x1003b731
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xd0]
mov eax, dword [ebp + 0x30]
mov esi, dword [esp + 0x10]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [ebp + 0x10]
push edi
push 0
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push esi
push ebx
call fcn.10043240
mov ecx, dword [esp + 0x70]
add esp, 0x24
push edi
push ecx
push esi
push ebx
call fcn.10043340
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xac]
mov esi, dword [esp + 0xd0]
add esp, 0x10
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, 1
cmp esi, edx
jne 0x1003b7c3
mov edx, dword [esp + 0x78]
mov esi, dword [edx + eax]
mov dword [ecx + 8], esi
mov eax, dword [edx + eax + 4]
mov dword [ecx + 0xc], eax
mov edx, 2
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x6c]
cmp eax, esi
jle 0x1003be5f
mov eax, dword [ebp + 0x44]
test eax, eax
jle 0x1003be5f
mov esi, dword [ebp + 0x48]
lea ecx, [ecx + edx*8]
mov dword [esp + 0x50], eax
add edx, eax
mov eax, dword [esi]
mov ebx, dword [esp + 0x14]
add ecx, 8
add esi, 4
lea ebx, [ebx + eax*2]
add eax, ebx
mov ebx, dword [ebp + 0x24]
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
mov eax, dword [esp + 0x50]
dec eax
mov dword [esp + 0x50], eax
jne 0x1003b7ea
mov ecx, dword [esp + 0x9c]
cmp dword [esp + 0xc4], 1
jne 0x1003b846
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
inc edx
mov esi, dword [eax + esi]
mov dword [ecx + edx*8 - 8], esi
mov esi, dword [esp + 0x28]
mov eax, dword [eax + esi + 4]
mov dword [ecx + edx*8 - 4], eax
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 0x20]
lea esi, [esi + eax*2]
add eax, esi
mov esi, dword [ebx + eax*8 - 0x18]
mov dword [ecx + edx*8], esi
mov eax, dword [ebx + eax*8 - 0x14]
mov ebx, dword [esp + 0x2c]
test ebx, ebx
mov dword [ecx + edx*8 + 4], eax
jle 0x1003b8d4
mov edx, dword [esp + 0x74]
mov esi, ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x18], ebx
mov ebx, dword [edx - 8]
mov eax, dword [edx - 4]
fld qword [0x10059a60]
cmp ebx, eax
jg 0x1003b8b3
sub eax, ebx
lea esi, [ebx*8]
inc eax
mov ecx, esi
mov ebx, eax
mov eax, ecx
add ecx, 8
sub eax, esi
dec ebx
fld qword [edx + eax]
fmul qword [edi + ecx - 8]
faddp st(1)
jne 0x1003b895
mov ecx, dword [esp + 0x9c]
mov esi, dword [esp + 0x50]
fsub qword [esi]
mov eax, dword [esp + 0x64]
add esi, 8
add edx, eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x50], esi
fstp qword [esi - 8]
mov dword [esp + 0x18], eax
jne 0x1003b877
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0xcc]
push edx
push ecx
mov ecx, dword [esp + 0x70]
push eax
push ecx
push ebx
call fcn.1004e300
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0xa0]
add esp, 0x14
test eax, eax
jle 0x1003b959
mov edx, dword [esp + 0x10]
mov eax, edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], edx
fld qword [0x10059a60]
test ebx, ebx
jle 0x1003b93b
mov eax, dword [esp + 0xc8]
mov ecx, esi
mov edx, ebx
fld qword [ecx]
fmul qword [eax]
add eax, 8
add ecx, edi
dec edx
faddp st(1)
jne 0x1003b929
mov eax, dword [esp + 0x18]
fld qword [eax]
mov ecx, dword [esp + 0x50]
add esi, 8
fsub st(1)
add eax, 8
dec ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], ecx
fstp qword [eax - 8]
fstp st(0)
jne 0x1003b914
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
inc eax
add esi, 8
add edx, 4
cmp eax, 3
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], edx
jl 0x1003b71f
mov eax, dword [esp + 0x10]
xor esi, esi
xor edi, edi
cmp eax, esi
jle 0x1003b9bf
mov eax, dword [ebp + 0x60]
lea ecx, [esp + 0x124]
mov edx, 3
mov esi, dword [ecx]
add eax, 8
add ecx, 4
dec edx
mov ebx, dword [esi + edi*8]
mov dword [eax - 8], ebx
mov esi, dword [esi + edi*8 + 4]
mov dword [eax - 4], esi
jne 0x1003b99c
mov ecx, dword [esp + 0x10]
inc edi
cmp edi, ecx
jl 0x1003b990
xor esi, esi
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x20], 0xffffffff
cmp eax, esi
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x74], esi
jle 0x1003bc95
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x1d8]
push eax
mov eax, dword [esp + 0xb8]
mov ecx, dword [edi + esi*8 + 4]
mov edx, dword [edi + esi*8]
push ecx
mov ecx, dword [ebp + 0x60]
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
call fcn.1004e440
mov eax, dword [ebp + 0x24]
lea edx, [esi + esi*2]
mov ecx, dword [esp + 0x104]
add esp, 0x2c
fld qword [eax + edx*8]
fsub qword [esp + 0x1d8]
fld qword [eax + edx*8 + 8]
lea ebx, [eax + edx*8]
mov al, byte [ecx + esi]
fsub qword [esp + 0x1e0]
fld qword [ebx + 0x10]
fsub qword [esp + 0x1e8]
fld st(2)
fmul st(3)
fld st(2)
fmul st(3)
test al, al
faddp st(1)
fld st(1)
fmul st(2)
faddp st(1)
fsqrt
fstp qword [esp + 0x78]
fstp st(0)
fstp st(0)
fstp st(0)
je 0x1003ba90
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x6c]
cmp edx, eax
je 0x1003ba90
mov eax, 1
jmp 0x1003ba92
xor eax, eax
cmp dword [ebp + 0x1c], 1
jne 0x1003bc43
test eax, eax
jne 0x1003bc43
test esi, esi
jle 0x1003bc43
mov eax, dword [ebp + 0x20]
dec eax
cmp esi, eax
jge 0x1003bc43
fld qword [edi + esi*8]
xor edi, edi
fst qword [esp + 0x30]
fld qword [0x10059a60]
fld qword [0x10059a60]
lea eax, [esp + 0x1f0]
mov ecx, ebx
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 0x1003badb
fdivrp st(1)
fld st(0)
fabs
fcomp qword [esp + 0x110]
fnstsw ax
test ah, 1
jne 0x1003bbc5
fld qword [esp + 0x78]
fcomp qword [0x10059a50]
fnstsw ax
test ah, 1
jne 0x1003bbc5
mov eax, dword [esp + 0x3c]
fld qword [eax + esi*8 - 8]
fsub qword [eax + esi*8]
fld st(1)
fld qword [eax + esi*8 + 8]
fsub qword [eax + esi*8]
fxch st(2)
fstp qword [esp + 0x30]
fcomp qword [esp + 0x30]
fstp qword [esp + 0x50]
fnstsw ax
test ah, 1
je 0x1003bb57
fstp st(0)
fld qword [esp + 0x30]
fcom qword [esp + 0x50]
fnstsw ax
test ah, 0x41
jne 0x1003bb68
fstp st(0)
fld qword [esp + 0x50]
cmp edi, 0x1f
jne 0x1003bb71
inc dword [esp + 0x18]
fxch st(1)
fsub st(1)
lea ecx, [esp + 0x1d8]
push ecx
mov ecx, dword [esp + 0xb8]
fstp qword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [ebp + 0x60]
push eax
mov eax, dword [esp + 0x30]
push 1
push ecx
mov ecx, dword [esp + 0x24]
push 0
push edx
mov edx, dword [ebp + 0x10]
push eax
push 0xffffffffffffffff
push ecx
push edx
fstp st(0)
call fcn.1004e440
fld qword [esp + 0x5c]
add esp, 0x2c
inc edi
cmp edi, 0x20
jl 0x1003bac1
jmp 0x1003bbc7
fstp st(0)
cmp edi, dword [esp + 0x74]
fstp st(0)
jle 0x1003bbd3
mov dword [esp + 0x74], edi
fld qword [esp + 0x30]
fld qword [esp + 0x30]
mov eax, dword [esp + 0xac]
fstp qword [eax + esi*8]
fcomp qword [eax + esi*8 - 8]
fnstsw ax
test ah, 0x41
je 0x1003bbf4
inc dword [esp + 0x14]
fld qword [ebx + 8]
fld qword [ebx]
fsub qword [esp + 0x1d8]
fxch st(1)
fsub qword [esp + 0x1e0]
fld qword [ebx + 0x10]
fsub qword [esp + 0x1e8]
fxch st(2)
fst qword [esp + 0x30]
fld st(1)
fxch st(1)
fmul qword [esp + 0x30]
fxch st(1)
fmul st(2)
fxch st(3)
fst qword [esp + 0x30]
fmul qword [esp + 0x30]
fxch st(3)
faddp st(1)
fxch st(2)
faddp st(2)
fxch st(1)
fsqrt
fstp qword [esp + 0x78]
fstp st(0)
jmp 0x1003bc58
mov eax, dword [esp + 0xac]
mov ecx, dword [edi + esi*8]
mov dword [eax + esi*8], ecx
mov edx, dword [edi + esi*8 + 4]
mov dword [eax + esi*8 + 4], edx
fld qword [esp + 0x78]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x1003bc7b
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x20], esi
fld qword [esp + 0x78]
mov edx, dword [esp + 0xbc]
mov eax, dword [ebp + 0x20]
fstp qword [edx + esi*8]
inc esi
cmp esi, eax
jl 0x1003b9ee
fld qword [esp + 0x58]
fcomp qword [ebp + 8]
fnstsw ax
test ah, 0x41
je 0x1003bcb6
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x94]
cmp eax, ecx
je 0x1003bdab
fld qword [esp + 0xa0]
fsub qword [esp + 0x58]
fld qword [esp + 0xa0]
fadd qword [esp + 0x58]
fxch st(1)
fabs
fxch st(1)
fdivp st(1)
fcomp qword [0x10059a68]
fnstsw ax
test ah, 1
jne 0x1003bd0b
fld qword [esp + 0x58]
fcomp qword [esp + 0xa0]
fnstsw ax
test ah, 0x41
je 0x1003bd0b
mov eax, dword [esp + 0x14]
test eax, eax
jg 0x1003bd0b
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x48]
dec ecx
cmp eax, ecx
jne 0x1003bd16
mov dword [esp + 0xb8], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1003bd4a
cmp dword [ebp + 0x1c], 1
jne 0x1003bd4a
mov edx, dword [ebp + 0x20]
test edx, edx
jle 0x1003bd4a
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xac]
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 0x1003bd38
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x48]
inc eax
mov dword [esp + 0xa0], edx
cmp eax, ecx
mov dword [esp + 0x48], eax
jl 0x1003af30
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x84]
inc eax
cmp eax, ecx
mov dword [esp + 0x70], eax
jle 0x1003aeeb
mov edx, dword [esp + 0x10]
fld qword [esp + 0x58]
fcomp qword [ebp + 8]
fnstsw ax
test ah, 0x41
jne 0x1003bdab
dec edx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x58]
add edx, eax
test edx, edx
mov dword [ecx], eax
jle 0x1003bdd8
mov eax, dword [ebp + 0x5c]
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 0x1003bdc6
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x1003bde5
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
mov eax, dword [ebp + 0x50]
mov edx, dword [ebp + 0x20]
test eax, eax
je 0x1003be0d
test edx, edx
jle 0x1003be0d
mov ecx, dword [esp + 0x3c]
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 0x1003bdfb
mov eax, dword [ebp + 0x54]
test eax, eax
je 0x1003be47
test edx, edx
jle 0x1003be47
mov ecx, dword [esp + 0xbc]
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 0x1003be21
jmp 0x1003be47
mov dword [esp + 0x1c], 2
jmp 0x1003be47
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x24]
push edx
call fcn.10003d40
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x24]
jmp 0x1003b820