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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
fld qword [ebp + 8]
fmul qword [0x10059b98]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
cmp ebx, 3
push edi
fstp qword [esp + 0xf0]
mov dword [esp + 0x58], 0xa2879f2e
mov dword [esp + 0x5c], 0x547d42ae
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x84], 0x100
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
jl 0x10042614
cmp ebx, 0x15
jg 0x10042614
mov ecx, dword [ebp + 0x14]
cmp ecx, 1
jl 0x1004260d
lea eax, [ebx - 2]
cmp ecx, eax
mov dword [esp + 0xd4], eax
jg 0x1004260d
mov eax, ebx
sub eax, ecx
mov ecx, dword [ebp + 0x20]
dec eax
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x18]
cmp eax, ecx
jle 0x100416d7
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 + 0xc8], ecx
mov dword [esp + 0x34], edi
add edi, edx
lea ecx, [ebx + ebx - 2]
mov dword [esp + 0xc0], edi
cmp ecx, edi
jg 0x10041705
mov ecx, edi
cmp ecx, eax
mov dword [esp + 0xc], ecx
jle 0x10041717
mov esi, 3
jmp 0x100425f7
lea ecx, [ebx*8]
mov esi, edi
mov dword [esp + 0x9c], ecx
add ecx, 8
mov dword [esp + 0x98], ecx
imul ecx, edx
mov edx, edi
imul esi, eax
imul edx, edi
mov dword [esp + 0x54], edx
mov edx, eax
imul edx, ebx
mov dword [esp + 0x64], esi
lea esi, [eax + ebx]
mov dword [esp + 0x88], esi
mov esi, dword [ebp + 0x20]
mov dword [esp + 0x80], edx
mov dword [esp + 0x8c], ecx
lea eax, [eax + esi*2]
mov esi, edi
add esi, edx
lea edx, [esi + edi*2]
mov esi, dword [esp + 0x88]
lea eax, [edx + eax*2]
mov edx, dword [esp + 0x54]
add eax, esi
add eax, edx
mov edx, dword [esp + 0x64]
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 0x100417a9
mov esi, 3
jmp 0x100425f7
mov edx, dword [ebp + 0x18]
lea esi, [eax + esi*8]
shl edx, 3
lea eax, [esp + 0xe0]
mov ecx, 2
mov dword [eax], esi
add esi, edx
add eax, 4
dec ecx
jne 0x100417be
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x38], esi
lea ecx, [edx*8]
mov dword [esp + 0xdc], ecx
lea eax, [ecx + esi]
mov dword [esp + 0x94], eax
mov dword [esp + 0xc4], eax
add eax, ecx
mov dword [esp + 0x88], eax
add eax, ecx
mov dword [esp + 0xb0], eax
add eax, ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0xac], eax
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x7c], eax
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x64], eax
lea eax, [eax + ecx*8]
lea ecx, [edi*8]
mov dword [esp + 0xcc], eax
add eax, ecx
mov dword [esp + 0xb4], eax
add eax, ecx
mov dword [esp + 0x90], eax
add eax, ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x54], eax
test edx, edx
lea edi, [ecx + eax]
mov dword [esp + 0x8c], edi
jle 0x1004187b
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 + 0x8c]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
jle 0x1004189d
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax]
add eax, 4
mov byte [ecx + edi], 1
mov ecx, dword [esp + 0x50]
dec ecx
mov dword [esp + 0x50], ecx
jne 0x10041889
mov eax, dword [ebp + 0x28]
cmp eax, 4
je 0x100418bf
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
push esi
push edx
push 1
push 0
push ecx
push 2
push eax
call fcn.100460f0
add esp, 0x1c
jmp 0x100418dc
test edx, edx
jle 0x100418dc
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 0x100418ca
mov edx, dword [esp + 0x94]
mov eax, dword [ebp + 0x1c]
test eax, eax
fld qword [edx - 8]
fsub qword [esi]
fmul qword [0x10059ba8]
fstp qword [esp + 0xe8]
jne 0x10041907
mov dword [esp + 0x84], 1
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x74]
sub eax, ebx
mov dword [esp + 0xa0], 0x39a08cea
cdq
idiv edi
mov dword [esp + 0xa4], 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 + 0x74]
add edi, ebx
mov dword [esp + 0x10], edi
inc eax
cmp ecx, eax
mov dword [esp + 0xd0], eax
jg 0x10042558
jmp 0x1004195c
mov ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x80], 1
mov dword [esp + 0x50], 0
lea edi, [eax - 1]
mov eax, dword [esp + 0x84]
mov dword [esp + 0xd8], edi
imul edi, dword [esp + 0x74]
add edi, ebx
test eax, eax
mov dword [esp + 0x10], edi
jle 0x10042540
mov eax, dword [esp + 0x80]
test eax, eax
je 0x10042540
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x10041aa3
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
test ecx, ecx
jle 0x100419d1
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 0x100419c1
cmp dword [esp + 0x78], 1
jle 0x10041a5f
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0xd8]
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
cdq
idiv dword [esp + 0x78]
cmp eax, 1
jge 0x10041a06
mov eax, 1
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jle 0x10041a10
mov eax, ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x3c], 0
test ecx, ecx
jle 0x10041a46
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 + 0x3c]
add ecx, 8
inc edx
cmp edx, dword [esp + 0x74]
mov dword [esp + 0x3c], edx
jl 0x10041a27
mov eax, dword [esp + 0x1c]
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 0x100419f3
mov ecx, dword [ebp + 0x10]
add ecx, edi
cmp edi, ecx
jge 0x10041a89
mov edx, dword [esp + 0x24]
sub ecx, edi
lea eax, [edx + edi*8]
mov edx, dword [esp + 0x94]
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 0x10041a78
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xd4]
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 + 0x40]
mov esi, dword [esp + 0xb8]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x1c]
add esp, 0xc
test eax, eax
je 0x10041afb
fld qword [esp + 0xa0]
fcomp qword [esp + 0xf0]
fnstsw ax
test ah, 1
je 0x10041b06
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x34]
xor ebx, ebx
test eax, eax
jle 0x10041b9a
mov ecx, dword [esp + 0x10]
lea eax, [ecx*8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
jmp 0x10041b2d
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x10041b3f
and ecx, 0x1fffffff
mov edi, esi
shl ecx, 1
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x9c]
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 + 0x3c]
add esp, 0x10
add esi, eax
mov eax, dword [esp + 0x34]
inc ebx
add edi, 8
cmp ebx, eax
mov dword [esp + 0x1c], edi
jl 0x10041b29
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
cmp eax, edx
jle 0x10041cfe
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x10041cfe
mov ecx, dword [esp + 0x54]
mov edx, dword [ebp + 0x38]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
lea edi, [ecx + 8]
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x178]
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [edx]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x40]
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 + 0x5c]
add esp, 0x20
mov dword [edi - 8], ecx
mov edx, dword [esp + 0x3c]
test ebx, ebx
lea eax, [edx + ebx - 1]
mov dword [edi - 4], eax
jle 0x10041c41
lea eax, [esp + 0x178]
mov ecx, edi
mov dword [esp + 0x1c], 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 + 0x1c]
add ecx, 8
dec edx
mov dword [esp + 0x1c], edx
jne 0x10041c26
mov eax, dword [esp + 0x3c]
xor edx, edx
test eax, eax
jle 0x10041c66
mov ecx, esi
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esp + 0x3c]
inc edx
add ecx, 8
cmp edx, eax
jl 0x10041c4d
lea ecx, [eax + ebx]
mov edx, eax
cmp eax, ecx
jge 0x10041c9d
lea ecx, [esi + eax*8]
mov edi, edx
add ecx, 8
sub edi, eax
inc edx
mov eax, dword [esp + edi*8 + 0x178]
mov dword [ecx - 8], eax
mov eax, dword [esp + edi*8 + 0x17c]
mov dword [ecx - 4], eax
mov eax, dword [esp + 0x3c]
lea edi, [eax + ebx]
cmp edx, edi
jl 0x10041c72
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add eax, ebx
cmp eax, ecx
jge 0x10041cbc
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 + 0xa8]
mov ecx, dword [esp + 0x28]
add esp, 0x10
lea esi, [esi + eax*8]
mov eax, dword [esp + 0x14]
add edi, edx
add ecx, 4
dec eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jne 0x10041bcb
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x64]
xor esi, esi
mov dword [esp + 0x28], ecx
cmp edi, esi
mov dword [esp + 0x68], esi
jle 0x10041e7b
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
shl eax, 3
lea ecx, [edx + 8]
mov edx, dword [esp + 0xac]
mov dword [esp + 0xc], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
jmp 0x10041d4b
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
cmp esi, eax
jge 0x10041da1
cmp esi, edi
jge 0x10041e38
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x28]
add eax, 8
lea esi, [edx + ecx]
mov ecx, ebx
mov ebx, dword [esp + 0x68]
add ecx, eax
sub edx, eax
mov eax, edi
sub eax, ebx
fld qword [edx + ecx]
fsub qword [ecx]
mov ebx, dword [esp + 0x2c]
add esi, 8
add ecx, ebx
dec eax
fstp qword [esi - 8]
jne 0x10041d88
jmp 0x10041e38
mov eax, dword [ecx - 8]
mov edx, dword [ecx - 4]
cmp esi, edi
mov dword [esp + 0xb8], eax
mov dword [esp + 0x48], edx
jge 0x10041e2d
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x28]
add ecx, esi
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x68]
sub edi, ecx
mov dword [esp + 0x30], edi
jmp 0x10041ddb
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0xb8]
fld qword [0x10059bb8]
cmp eax, edx
jg 0x10041e07
lea esi, [eax*8]
sub edx, eax
mov ecx, esi
inc edx
mov edi, dword [esp + 0x40]
mov eax, ecx
fld qword [ecx + ebx]
sub eax, esi
add ecx, 8
dec edx
fmul qword [edi + eax]
faddp st(1)
jne 0x10041df1
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add ebx, edx
fstp qword [eax]
add eax, 8
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x30], eax
jne 0x10041dd0
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
add ecx, dword [esp + 0x98]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0xc]
lea eax, [edx + edi*8]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
add ebx, ecx
mov ecx, 8
inc eax
add esi, ecx
add edx, ecx
cmp eax, edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], edx
jl 0x10041d43
mov edx, dword [esp + 0xcc]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
call fcn.1004e1e0
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x24]
lea edx, [esp + 0xec]
add esp, 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], eax
mov edi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x10]
test edi, edi
jle 0x10041edd
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0x28]
mov edx, edi
mov esi, dword [eax]
add eax, 0x10
mov dword [ecx], esi
mov esi, dword [eax - 0xc]
mov dword [ecx + 4], esi
add ecx, 8
dec edx
jne 0x10041eca
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xb0]
mov eax, dword [ebp + 0x30]
mov esi, dword [ecx]
mov ecx, dword [esp + 0x38]
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 + 0x44]
add esp, 0x10
xor eax, eax
mov edx, ecx
test ecx, ecx
jle 0x10041f3d
mov edi, dword [esp + 0x90]
and ecx, 0x1fffffff
shl ecx, 1
rep stosd dword es:[edi], eax
mov eax, edx
cmp dword [esp + 0x20], edx
jle 0x10041f7c
mov edx, dword [ebp + 0x34]
test edx, edx
jle 0x10041f7c
mov ecx, dword [esp + 0x90]
lea eax, [ecx + eax*8]
mov ecx, dword [ebp + 0x38]
mov edi, dword [ecx]
mov ebx, dword [esp + 0x18]
add eax, 8
add ecx, 4
lea edi, [ebx + edi*2]
mov ebx, dword [ebp + 0x24]
dec edx
mov ebx, dword [ebx + edi*8]
mov dword [eax - 8], ebx
mov ebx, dword [ebp + 0x24]
mov edi, dword [ebx + edi*8 + 4]
mov dword [eax - 4], edi
jne 0x10041f57
mov eax, dword [esp + 0x20]
xor edx, edx
test eax, eax
mov dword [esp + 0x68], edx
jle 0x10042041
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], esi
lea ebx, [eax + 8]
mov eax, dword [esp + 0x10]
shl eax, 3
mov dword [esp + 0xc], eax
cmp edx, dword [esp + 0x34]
jge 0x10041fce
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x9c]
sub eax, edi
mov edi, dword [esp + 0x14]
fld qword [edi]
fsub qword [esi + eax + 8]
jmp 0x1004200d
mov edi, dword [ebx - 8]
mov eax, dword [ebx - 4]
fld qword [0x10059bb8]
cmp edi, eax
jg 0x10042006
sub eax, edi
lea edx, [edi*8]
inc eax
mov ecx, edx
mov edi, eax
fld qword [esi + ecx]
mov eax, ecx
add ecx, 8
sub eax, edx
dec edi
fmul qword [ebx + eax]
faddp st(1)
jne 0x10041fec
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x68]
add ebx, dword [esp + 0x98]
mov edi, dword [esp + 0x14]
mov eax, 8
fsub qword [ecx]
add edi, eax
inc edx
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0xc]
add edi, eax
mov dword [esp + 0x68], edx
fstp qword [ecx]
add ecx, eax
mov eax, dword [esp + 0x20]
cmp edx, eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x30], ecx
jl 0x10041faf
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0xcc]
push ecx
mov ecx, dword [esp + 0x68]
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 + 0xc0]
add esp, 0x14
test ecx, ecx
jle 0x100420d0
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x20]
fld qword [0x10059bb8]
test eax, eax
jle 0x100420b2
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, ebx
lea edi, [eax*8]
mov eax, dword [esp + 0xb4]
fld qword [ecx]
fmul qword [eax]
add eax, 8
add ecx, edi
dec edx
faddp st(1)
jne 0x100420a4
fld qword [esi]
mov eax, dword [esp + 0x30]
add ebx, 8
fsub st(1)
add esi, 8
dec eax
mov dword [esp + 0x30], eax
fstp qword [esi - 8]
fstp st(0)
jne 0x1004207e
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x40]
inc eax
add edi, 8
add esi, 4
cmp eax, 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x40], esi
jl 0x10041eb3
xor esi, esi
test ecx, ecx
jle 0x1004212e
mov eax, dword [ebp + 0x50]
lea ecx, [esp + 0xe0]
mov edx, 2
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 0x1004210d
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, ecx
jl 0x10042101
mov eax, dword [ebp + 0x20]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], edi
jle 0x1004240b
mov ebx, dword [esp + 0xc4]
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x24]
sub eax, ebx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x88]
sub eax, ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xb8], eax
mov esi, dword [esp + 0x30]
lea edx, [esp + 0xf8]
push edx
mov edx, dword [esp + 0xcc]
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.10055180
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0xb8]
add esp, 0x2c
fld qword [eax]
fsub qword [esp + 0xf8]
fld qword [eax + 8]
fsub qword [esp + 0x100]
fld st(1)
fmul st(2)
fld st(1)
fmul st(2)
cmp byte [ecx + edi], 0
faddp st(1)
fsqrt
fstp qword [esp + 0x40]
fstp st(0)
fstp st(0)
je 0x1004220f
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
cmp edx, eax
je 0x1004220f
mov eax, 1
jmp 0x10042211
xor eax, eax
cmp dword [ebp + 0x1c], 1
jne 0x100423b4
test eax, eax
jne 0x100423b4
mov eax, dword [esp + 0x30]
xor esi, esi
fld qword [eax + ebx]
fst qword [esp + 0x48]
fld qword [0x10059bb8]
fld qword [0x10059bb8]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x108]
mov edx, 2
fld qword [eax]
fld qword [eax - 0x10]
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 0x1004224c
fdivrp st(1)
fld st(0)
fabs
fcomp qword [esp + 0xe8]
fnstsw ax
test ah, 1
jne 0x1004234c
fld qword [esp + 0x40]
fcomp qword [0x10059ba8]
fnstsw ax
test ah, 1
jne 0x1004234c
test edi, edi
jle 0x100422a1
mov ecx, edi
jmp 0x100422a5
mov ecx, dword [ebp + 0x20]
dec ecx
mov edx, dword [ebp + 0x20]
xor eax, eax
dec edx
cmp edi, edx
mov edx, dword [esp + 0x38]
setge al
fld qword [edx + ecx*8 - 8]
fsub qword [edx + ecx*8]
dec eax
and eax, edi
fstp qword [esp + 0x48]
fld qword [edx + eax*8 + 8]
fsub qword [edx + eax*8]
fstp qword [esp + 0x68]
fcom qword [esp + 0x48]
fnstsw ax
test ah, 1
je 0x100422de
fstp st(0)
fld qword [esp + 0x48]
fcom qword [esp + 0x68]
fnstsw ax
test ah, 0x41
jne 0x100422ef
fstp st(0)
fld qword [esp + 0x68]
cmp esi, 0x1f
jne 0x100422f8
inc dword [esp + 0x18]
fxch st(1)
fsub st(1)
lea eax, [esp + 0xf8]
push eax
mov eax, dword [esp + 0xcc]
fstp qword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
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.10055180
fld qword [esp + 0x74]
add esp, 0x2c
inc esi
cmp esi, 0x20
jl 0x10042230
jmp 0x1004234e
fstp st(0)
cmp esi, dword [esp + 0x28]
fstp st(0)
jle 0x1004235a
mov dword [esp + 0x28], esi
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [ebx], edx
mov dword [ebx + 4], eax
test edi, edi
jle 0x1004237d
fld qword [esp + 0x48]
fcomp qword [ebx - 8]
fnstsw ax
test ah, 0x41
je 0x1004237d
inc dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
fld qword [eax + 8]
fld qword [eax]
fsub qword [esp + 0xf8]
fxch st(1)
fsub qword [esp + 0x100]
fxch st(1)
fst qword [esp + 0x48]
fld st(1)
fxch st(1)
fmul qword [esp + 0x48]
fxch st(1)
fmul st(2)
faddp st(1)
fsqrt
fstp qword [esp + 0x40]
fstp st(0)
jmp 0x100423c0
mov ecx, dword [esi + ebx]
mov dword [ebx], ecx
mov edx, dword [esi + ebx + 4]
mov dword [ebx + 4], edx
fld qword [esp + 0x40]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x100423e3
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x14], edi
fld qword [esp + 0x40]
mov edx, dword [esp + 0xb8]
mov eax, dword [ebp + 0x20]
inc edi
fstp qword [edx + ebx]
mov edx, dword [esp + 0x2c]
add ebx, 8
add edx, 0x10
cmp edi, eax
mov dword [esp + 0x2c], edx
jl 0x10042187
fld qword [esp + 0x58]
fcomp qword [ebp + 8]
fnstsw ax
test ah, 0x41
je 0x1004242c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc0]
cmp eax, ecx
je 0x1004256b
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)
mov edi, dword [esp + 0x38]
fcomp qword [0x10059bc0]
fnstsw ax
test ah, 1
jne 0x10042485
fld qword [esp + 0x58]
fcomp qword [esp + 0xa0]
fnstsw ax
test ah, 0x41
je 0x10042485
mov eax, dword [esp + 0xc]
test eax, eax
jg 0x10042485
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x50]
dec ecx
cmp eax, ecx
jne 0x10042490
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1004250a
cmp dword [ebp + 0x1c], 1
jne 0x1004250a
mov edx, dword [esp + 0xdc]
mov ecx, dword [esp + 0xc4]
mov eax, dword [ebp + 0x20]
fld qword [edx + ecx - 8]
fsub qword [ecx]
lea esi, [eax - 1]
cmp esi, 1
fdivr qword [0x10059bc8]
fstp qword [esp + 0xb8]
jle 0x1004250a
mov ebx, dword [esp + 0x94]
mov edx, ecx
sub edx, edi
lea eax, [edi + 8]
dec esi
fld qword [edx + eax]
fsub qword [ecx]
fld qword [0x10059bc8]
fxch st(1)
fmul qword [esp + 0xb8]
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 0x100424d9
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x84]
inc eax
cmp eax, ecx
mov dword [esp + 0xa4], edx
mov dword [esp + 0x50], eax
jl 0x10041997
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0xd0]
inc eax
cmp eax, ecx
mov dword [esp + 0x78], eax
jle 0x10041959
fld qword [esp + 0x58]
fcomp qword [ebp + 8]
fnstsw ax
test ah, 0x41
jne 0x1004256b
dec edi
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x48]
add edx, eax
test edx, edx
mov dword [ecx], eax
jle 0x10042598
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 0x10042586
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x100425a5
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x40]
mov edx, dword [ebp + 0x20]
test eax, eax
je 0x100425cd
test edx, edx
jle 0x100425cd
mov ecx, dword [esp + 0x38]
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 0x100425bb
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x100425f3
test edx, edx
jle 0x100425f3
mov ecx, dword [esp + 0x88]
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 0x100425e1
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push edx
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 0x100425f7
mov esi, 1
jmp 0x100425f7