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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
fld qword [ebp + 8]
fmul qword [0x10059b68]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp esi, 3
push edi
fstp qword [esp + 0x100]
mov dword [esp + 0x58], 0xa2879f2e
mov dword [esp + 0x5c], 0x547d42ae
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x7c], 0x100
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
jl 0x1004161f
cmp esi, 0x15
jg 0x1004161f
mov ecx, dword [ebp + 0x14]
cmp ecx, 1
jl 0x10041615
lea eax, [esi - 2]
cmp ecx, eax
mov dword [esp + 0xcc], eax
jg 0x10041615
mov edx, dword [ebp + 0x18]
mov eax, esi
sub eax, ecx
dec eax
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x20]
cmp edx, eax
jle 0x10040477
mov edx, eax
mov dword [ebp + 0x18], edx
cmp eax, 4
mov dword [esp + 0x94], 4
jg 0x1004048e
mov dword [esp + 0x94], eax
mov ecx, dword [ebp + 0x38]
mov edi, dword [ebp + 0x40]
xor eax, eax
cmp ecx, ebx
setne al
mov dword [esp + 0xb8], eax
xor eax, eax
cmp edi, ebx
setne al
mov dword [esp + 0xbc], eax
xor eax, eax
cmp dword [ebp + 0x1c], ebx
setne al
mov dword [esp + 0xac], eax
mov eax, 2
cmp ecx, ebx
mov dword [esp + 0x54], eax
je 0x100404d5
mov eax, 3
mov dword [esp + 0x54], eax
cmp edi, ebx
je 0x100404de
inc eax
mov dword [esp + 0x54], eax
mov ecx, dword [ebp + 0x44]
add eax, ecx
mov ecx, esi
cmp esi, eax
mov dword [esp + 0x98], eax
jg 0x100404f2
mov ecx, eax
cmp ecx, edx
mov dword [esp + 0x28], ecx
jle 0x10040507
mov dword [esp + 0x18], 3
jmp 0x10041627
lea ecx, [esi*8 + 8]
mov edi, eax
mov dword [esp + 0x60], ecx
imul edi, ecx
mov ecx, edx
mov ebx, eax
imul ecx, esi
imul ebx, eax
mov esi, eax
mov dword [esp + 0x80], ecx
imul esi, edx
mov dword [esp + 0x64], esi
mov esi, dword [ebp + 0x10]
add esi, edx
mov dword [esp + 0x88], esi
mov esi, dword [ebp + 0x20]
lea edx, [edx + esi*2]
mov esi, eax
add esi, ecx
lea eax, [esi + eax*2]
mov esi, dword [esp + 0x88]
lea ecx, [eax + edx*2]
mov edx, dword [esp + 0x64]
add ecx, esi
add ecx, ebx
add ecx, edx
lea edx, [edi + ecx*8]
mov ecx, dword [ebp + 0x20]
add edx, ecx
push edx
call fcn.10003ce0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x10040584
mov dword [esp + 0x18], 4
jmp 0x10041627
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x18]
lea esi, [eax + esi*8]
lea edx, [ecx*8]
lea eax, [esp + 0xf8]
mov ecx, 2
mov dword [eax], esi
add esi, edx
add eax, 4
dec ecx
jne 0x100405a1
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x38], esi
lea ecx, [edx*8]
lea eax, [ecx + esi]
mov dword [esp + 0x90], eax
mov dword [esp + 0x9c], eax
add eax, ecx
mov dword [esp + 0x88], eax
add eax, ecx
mov dword [esp + 0xc8], eax
add eax, ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x8c], eax
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x50], eax
lea eax, [eax + ecx*8]
mov dword [esp + 0x64], eax
lea ebx, [eax + ebx*8]
mov eax, dword [esp + 0x98]
shl eax, 3
mov dword [esp + 0xc4], ebx
add ebx, eax
mov dword [esp + 0xc0], ebx
add ebx, eax
mov dword [esp + 0xb4], ebx
add ebx, eax
mov dword [esp + 0xa8], ebx
add ebx, edi
test edx, edx
mov dword [esp + 0xd0], ebx
jle 0x1004064c
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 0x1004066a
mov eax, dword [ebp + 0x48]
mov edi, dword [eax]
add eax, 4
dec ecx
mov byte [edi + ebx], 1
jne 0x1004065e
mov eax, dword [ebp + 0x28]
cmp eax, 4
je 0x1004068c
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
push esi
push ecx
push 1
push 0
push edx
push 2
push eax
call fcn.100460f0
add esp, 0x1c
jmp 0x100406a9
test edx, edx
jle 0x100406a9
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 0x10040697
mov eax, dword [ebp + 0x1c]
test eax, eax
mov eax, dword [esp + 0x90]
fld qword [eax - 8]
fsub qword [esi]
fmul qword [0x10059b78]
fstp qword [esp + 0x108]
jne 0x100406d1
mov dword [esp + 0x7c], 1
mov eax, dword [esp + 0x28]
mov edi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x84]
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 + 0x68], ebx
imul edx, ecx
add edx, edi
mov dword [esp + 0xc], edx
inc eax
cmp ebx, eax
mov dword [esp + 0x80], eax
jg 0x10041578
jmp 0x10040731
mov ecx, dword [esp + 0x84]
mov edi, dword [ebp + 0x10]
mov edx, dword [esp + 0x68]
mov dword [esp + 0xb0], 1
dec edx
mov dword [esp + 0x78], 0
mov eax, edx
mov dword [esp + 0xd4], edx
imul eax, ecx
add eax, edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x7c]
test eax, eax
jle 0x1004155c
jmp 0x10040770
mov edx, dword [esp + 0xd4]
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x1004155c
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x1004085a
mov ecx, dword [ebp + 0x10]
xor edi, edi
test ecx, ecx
jle 0x100407aa
mov eax, dword [esp + 0x20]
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 0x1004079a
cmp dword [esp + 0x68], 1
jle 0x10040829
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1c], edx
lea ebx, [eax - 1]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
cdq
idiv dword [esp + 0x68]
cmp eax, 1
jge 0x100407d2
mov eax, 1
cmp eax, ebx
jle 0x100407d8
mov eax, ebx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x4c], 0
test ecx, ecx
jle 0x10040814
mov ecx, dword [esp + 0x20]
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 + 0x4c]
add ecx, 8
inc edx
cmp edx, dword [esp + 0x84]
mov dword [esp + 0x4c], edx
jl 0x100407f2
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add ecx, ebx
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
jne 0x100407bf
mov edx, dword [esp + 0xc]
mov eax, dword [ebp + 0x10]
lea ecx, [edx + eax]
cmp edx, ecx
jge 0x1004085a
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x90]
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 0x10040847
jmp 0x10040861
mov edi, dword [esp + 0x90]
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x1004090b
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xd8], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0xdc], edx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0x34]
mov dword [esp + 0xe0], ecx
test eax, eax
mov dword [esp + 0xe4], edx
jne 0x1004090b
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov ebx, dword [esp + 0x94]
lea eax, [esp + 0x1b8]
push eax
mov eax, dword [ebp + 0x24]
push ecx
push edx
push 1
push 1
push esi
push eax
push ebx
call fcn.10051fb0
add esp, 0x20
lea ecx, [esp + 0xd8]
push ecx
push 2
call fcn.10044950
fstp qword [esp + 0x48]
add esp, 8
lea edx, [esp + 0x1c8]
push edx
push 2
call fcn.10044950
fdiv qword [esp + 0x48]
add esp, 8
lea eax, [esp + 0xd8]
mov ecx, 2
fld qword [eax]
fmul st(1)
add eax, 8
dec ecx
fstp qword [eax - 8]
jne 0x100408fa
fstp st(0)
jmp 0x10040912
mov ebx, dword [esp + 0x94]
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x100409c1
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xe8], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0xec], edx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0xf0], ecx
test eax, eax
mov dword [esp + 0xf4], edx
jne 0x100409c1
mov eax, dword [ebp + 0x20]
mov edx, dword [edi - 4]
lea ecx, [esp + 0x1b8]
sub eax, ebx
push ecx
mov ecx, dword [edi - 8]
push edx
push ecx
push 1
lea edx, [esi + eax*8]
push 1
push edx
mov edx, dword [ebp + 0x24]
shl eax, 4
add eax, edx
push eax
push ebx
call fcn.10051fb0
add esp, 0x20
lea eax, [esp + 0xe8]
push eax
push 2
call fcn.10044950
fstp qword [esp + 0x48]
add esp, 8
lea ecx, [esp + 0x1c8]
push ecx
push 2
call fcn.10044950
fdiv qword [esp + 0x48]
add esp, 8
lea eax, [esp + 0xe8]
mov ecx, 2
fld qword [eax]
fmul st(1)
add eax, 8
dec ecx
fstp qword [eax - 8]
jne 0x100409b2
fstp st(0)
mov edi, dword [esp + 0x50]
mov edx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x20]
mov ebx, dword [ebp + 0x10]
push edi
push 0
push edx
push esi
mov esi, dword [esp + 0x1c]
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 + 0x60]
add esp, 0xc
mov dword [esp + 0x24], edx
test eax, eax
je 0x10040a16
fld qword [esp + 0xa0]
fcomp qword [esp + 0x100]
fnstsw ax
test ah, 1
je 0x10040a21
mov eax, dword [esp + 0x98]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xa8]
mov edi, dword [esp + 0x8c]
mov ecx, 0x3ff00000
mov dword [eax], 0
mov dword [eax + 4], 0
add eax, 8
cmp esi, 1
mov dword [esp + 0x6c], eax
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [edi], 0
mov dword [edi + 4], ecx
jle 0x10040a70
lea ecx, [esi + esi - 2]
add edi, 8
and ecx, 0x3ffffffe
xor eax, eax
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0xc]
mov edi, dword [ebp + 0x10]
push ebx
push ecx
push esi
push edi
call fcn.10043340
mov edx, dword [esp + 0xb8]
lea eax, [esi*8]
mov dword [esp + 0x4c], eax
add ebx, eax
mov eax, dword [esp + 0x70]
add esp, 0x10
lea esi, [edx + eax]
mov eax, dword [esp + 0xb8]
cmp eax, 1
jne 0x10040b80
mov eax, dword [esp + 0x20]
lea ecx, [edi - 1]
mov dword [esp + 0x14], ecx
fld qword [eax + edi*8]
fsub qword [eax + edi*8 - 8]
fild dword [esp + 0x14]
fxch st(1)
fdivp st(1)
cmp dword [esp + 0xc], 2
fchs
fst qword [esp + 0x110]
fchs
fstp qword [esp + 0x118]
mov dword [esi], 0
mov dword [esi + 4], 1
mov edx, dword [esp + 0x110]
mov eax, dword [esp + 0x114]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x11c]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x110]
mov ecx, dword [esp + 0x114]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x11c]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
jle 0x10040b60
mov ecx, dword [esp + 0xc]
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 + 0x50]
mov eax, dword [esp + 0xc]
push ebx
push edx
push eax
push edi
call fcn.10043340
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x70]
add esp, 0x10
add ebx, ecx
add esi, eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
cmp ecx, eax
jle 0x10040cdd
mov eax, dword [ebp + 0x44]
test eax, eax
jle 0x10040cdd
mov edx, dword [ebp + 0x48]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x110]
lea ecx, [esp + 0x4c]
push eax
mov eax, dword [edx]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x40]
sub esp, 8
fld qword [ecx + eax*8]
mov eax, dword [esp + 0x1c]
fstp qword [esp]
push edx
push 0xffffffffffffffff
push eax
push edi
call fcn.1004c360
mov ecx, dword [esp + 0x6c]
add esp, 0x20
mov dword [esi], ecx
mov edx, dword [esp + 0x4c]
test edi, edi
lea eax, [edx + edi - 1]
mov dword [esi + 4], eax
jle 0x10040c19
lea eax, [esp + 0x110]
lea ecx, [esi + 8]
mov dword [esp + 0x1c], 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 + 0x1c]
add ecx, 8
dec edx
mov dword [esp + 0x1c], edx
jne 0x10040bfe
mov eax, dword [esp + 0x4c]
xor edx, edx
test eax, eax
jle 0x10040c3e
mov ecx, ebx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esp + 0x4c]
inc edx
add ecx, 8
cmp edx, eax
jl 0x10040c25
lea ecx, [eax + edi]
mov edx, eax
cmp eax, ecx
mov dword [esp + 0x18], edx
jge 0x10040c85
lea ecx, [ebx + eax*8]
jmp 0x10040c54
mov ecx, dword [esp + 0x14]
sub edx, eax
add ecx, 8
mov dword [esp + 0x14], ecx
mov eax, dword [esp + edx*8 + 0x110]
mov dword [ecx - 8], eax
mov edx, dword [esp + edx*8 + 0x114]
mov dword [ecx - 4], edx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
inc edx
lea ecx, [eax + edi]
cmp edx, ecx
mov dword [esp + 0x18], edx
jl 0x10040c50
mov ecx, dword [esp + 0xc]
add eax, edi
cmp eax, ecx
jge 0x10040ca3
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 + 0x50]
mov eax, dword [esp + 0xc]
push ebx
push edx
push eax
push edi
call fcn.10043340
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
add ebx, eax
mov eax, dword [esp + 0x38]
add esp, 0x10
add esi, edx
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], eax
jne 0x10040ba6
cmp dword [esp + 0xbc], 1
jne 0x10040db3
mov eax, dword [esp + 0x3c]
lea ecx, [edi - 1]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
fild dword [esp + 0x14]
fld qword [eax + ecx]
fsub qword [eax + ecx - 8]
mov eax, dword [esp + 0xcc]
lea edx, [esp + edi*8 + 0x108]
fdivp st(1)
lea eax, [esp + eax*8 + 0x110]
mov dword [esp + 0x18], eax
fst qword [edx]
fchs
fstp qword [eax]
mov eax, dword [esp + 0xc]
lea ecx, [eax - 2]
dec eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esp + 0x14], ecx
mov eax, dword [eax]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
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 0x10040d6e
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 + 0x14]
mov eax, dword [esp + 0x18]
push ebx
mov eax, dword [eax]
mov dword [ebx + ecx*8], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [ebx + ecx*8 + 4], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [edx]
mov dword [eax + ebx - 8], ecx
mov edx, dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov dword [eax + ebx - 4], edx
mov eax, dword [esp + 0x54]
push eax
push ecx
push edi
call fcn.10043340
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x70]
add esp, 0x10
add ebx, edx
add esi, eax
mov eax, dword [esp + 0xc]
lea edx, [eax - 1]
test edx, edx
jle 0x10040dd1
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 + 0x3c]
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 + 0x54]
mov dword [esi], edx
mov dword [esi + 4], edx
mov edx, dword [esp + 0x10]
push ecx
push edx
push edi
call fcn.10043340
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
add esp, 0x10
xor ecx, ecx
test eax, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ecx
jle 0x10040edd
mov ebx, dword [esp + 0x8c]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x34], ebx
mov esi, dword [edi - 4]
mov eax, dword [edi - 8]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x24]
cmp ecx, esi
mov dword [esp + 0x70], eax
jge 0x10040eb5
lea edx, [edx + ecx*8]
mov dword [esp + 0x10], edx
mov edx, esi
sub edx, ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x14]
fld qword [0x10059b88]
cmp eax, edx
jg 0x10040e8f
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 0x10040e71
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
fstp qword [edx]
mov edx, dword [esp + 0x3c]
add ebx, edx
mov edx, dword [esp + 0x10]
add edx, 8
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x1c]
dec edx
mov dword [esp + 0x1c], edx
jne 0x10040e57
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x34]
add edi, eax
mov eax, dword [esp + 0x3c]
inc ecx
lea edx, [edx + esi*8]
add ebx, eax
cmp ecx, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], ebx
jl 0x10040e32
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.1004e1e0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x104]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x24]
lea ecx, [esp + 0xe4]
add esp, 0xc
sub ecx, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0xe8]
sub ecx, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ecx
mov edx, dword [ebp + 0x20]
test edx, edx
jle 0x10040f54
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x34]
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 0x10040f41
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc8]
mov eax, dword [ebp + 0x30]
mov esi, dword [esp + 0xc]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x38]
mov ebx, dword [ebp + 0x10]
push edi
push 0
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
push esi
push ebx
call fcn.10043240
mov ecx, dword [esp + 0x74]
add esp, 0x24
push edi
push ecx
push esi
push ebx
call fcn.10043340
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0xc4]
add esp, 0x10
mov edx, dword [ecx]
mov dword [esi], edx
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0xb8]
mov dword [esi + 4], eax
mov eax, 1
cmp edx, eax
jne 0x10040fd3
mov eax, dword [esp + 0x70]
mov edx, dword [eax + ecx]
mov dword [esi + 8], edx
mov eax, dword [eax + ecx + 4]
mov dword [esi + 0xc], eax
mov eax, 2
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x54]
cmp ecx, edx
jle 0x10041031
mov edx, dword [ebp + 0x44]
test edx, edx
jle 0x10041031
mov ebx, dword [ebp + 0x48]
lea ecx, [esi + eax*8]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edx
add eax, edx
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
add ecx, 8
mov edx, dword [edx]
lea ebx, [ebx + edx*2]
mov edx, dword [ebp + 0x24]
mov edx, dword [edx + ebx*8]
mov dword [ecx - 8], edx
mov edx, dword [ebp + 0x24]
mov ebx, dword [edx + ebx*8 + 4]
mov dword [ecx - 4], ebx
mov ebx, dword [esp + 0x28]
add ebx, 4
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x14]
dec ebx
mov dword [esp + 0x14], ebx
jne 0x10040ff6
jmp 0x10041034
mov edx, dword [ebp + 0x24]
cmp dword [esp + 0xbc], 1
jne 0x1004105a
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
inc eax
mov ebx, dword [ecx + ebx]
mov dword [esi + eax*8 - 8], ebx
mov ebx, dword [esp + 0x34]
mov ecx, dword [ecx + ebx + 4]
mov dword [esi + eax*8 - 4], ecx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ebp + 0x20]
lea ecx, [ecx + ebx*2]
mov ebx, dword [edx + ecx*8 - 0x10]
mov dword [esi + eax*8], ebx
mov ebx, dword [esp + 0x24]
mov edx, dword [edx + ecx*8 - 0xc]
test ebx, ebx
mov dword [esi + eax*8 + 4], edx
jle 0x100410e6
mov edx, dword [esp + 0x6c]
mov ecx, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], ebx
mov ebx, dword [edx - 8]
mov eax, dword [edx - 4]
fld qword [0x10059b88]
cmp ebx, eax
jg 0x100410c5
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 0x100410a7
mov esi, dword [esp + 0xb4]
mov ecx, dword [esp + 0x14]
fsub qword [ecx]
mov eax, dword [esp + 0x60]
add ecx, 8
add edx, eax
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x14], ecx
fstp qword [ecx - 8]
mov dword [esp + 0x28], eax
jne 0x10041089
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0x64]
push eax
push esi
push ecx
push edx
push ebx
call fcn.1004e300
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0xa0]
add esp, 0x14
test eax, eax
jle 0x1004116b
mov ecx, dword [esp + 0xc]
mov eax, edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
fld qword [0x10059b88]
test ebx, ebx
jle 0x1004114d
mov eax, dword [esp + 0xc0]
mov ecx, esi
mov edx, ebx
fld qword [ecx]
fmul qword [eax]
add eax, 8
add ecx, edi
dec edx
faddp st(1)
jne 0x1004113b
mov eax, dword [esp + 0x14]
fld qword [eax]
mov ecx, dword [esp + 0x28]
add esi, 8
fsub st(1)
add eax, 8
dec ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
fstp qword [eax - 8]
fstp st(0)
jne 0x10041126
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
inc eax
add esi, 8
add edx, 4
cmp eax, 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], edx
jl 0x10040f2f
mov eax, dword [esp + 0xc]
xor esi, esi
cmp eax, esi
jle 0x100411cf
mov eax, dword [ebp + 0x60]
lea ecx, [esp + 0xf8]
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 0x100411ac
mov ecx, dword [esp + 0xc]
inc esi
cmp esi, ecx
jl 0x100411a0
xor esi, esi
mov eax, dword [ebp + 0x20]
xor edi, edi
cmp eax, esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x14], esi
jle 0x1004147b
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x1b8]
push edx
mov edx, dword [esp + 0xb0]
mov eax, dword [esi + edi*8 + 4]
mov ecx, dword [esi + edi*8]
push eax
mov eax, dword [ebp + 0x60]
push ecx
mov ecx, dword [esp + 0x2c]
push 1
push edx
mov edx, dword [esp + 0x20]
push 0
push eax
mov eax, dword [ebp + 0x10]
push ecx
push 0xffffffffffffffff
push edx
push eax
call fcn.10055180
mov edx, dword [ebp + 0x24]
mov ecx, edi
shl ecx, 4
mov eax, dword [esp + 0xfc]
add esp, 0x2c
fld qword [ecx + edx]
fsub qword [esp + 0x1b8]
fld qword [ecx + edx + 8]
lea ebx, [ecx + edx]
mov cl, byte [eax + edi]
fsub qword [esp + 0x1c0]
fld st(1)
fmul st(2)
fld st(1)
fmul st(2)
test cl, cl
faddp st(1)
fsqrt
fstp qword [esp + 0x70]
fstp st(0)
fstp st(0)
je 0x10041292
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
cmp ecx, eax
je 0x10041292
mov eax, 1
jmp 0x10041294
xor eax, eax
cmp dword [ebp + 0x1c], 1
jne 0x10041429
test eax, eax
jne 0x10041429
test edi, edi
jle 0x10041429
mov edx, dword [ebp + 0x20]
dec edx
cmp edi, edx
jge 0x10041429
fld qword [esi + edi*8]
xor esi, esi
fst qword [esp + 0x40]
fld qword [0x10059b88]
fld qword [0x10059b88]
lea eax, [esp + 0x1c8]
mov ecx, ebx
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 0x100412dd
fdivrp st(1)
fld st(0)
fabs
fcomp qword [esp + 0x108]
fnstsw ax
test ah, 1
jne 0x100413c7
fld qword [esp + 0x70]
fcomp qword [0x10059b78]
fnstsw ax
test ah, 1
jne 0x100413c7
mov eax, dword [esp + 0x38]
fld qword [eax + edi*8 - 8]
fsub qword [eax + edi*8]
fld st(1)
fld qword [eax + edi*8 + 8]
fsub qword [eax + edi*8]
fxch st(2)
fstp qword [esp + 0x40]
fcomp qword [esp + 0x40]
fstp qword [esp + 0x28]
fnstsw ax
test ah, 1
je 0x10041359
fstp st(0)
fld qword [esp + 0x40]
fcom qword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x1004136a
fstp st(0)
fld qword [esp + 0x28]
cmp esi, 0x1f
jne 0x10041373
inc dword [esp + 0x6c]
fxch st(1)
fsub st(1)
lea eax, [esp + 0x1b8]
push eax
mov eax, dword [esp + 0xb0]
fstp qword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [ebp + 0x60]
push edx
mov edx, dword [esp + 0x2c]
push 1
push eax
mov eax, dword [esp + 0x20]
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 + 0x6c]
add esp, 0x2c
inc esi
cmp esi, 0x20
jl 0x100412c3
jmp 0x100413c9
fstp st(0)
cmp esi, dword [esp + 0x14]
fstp st(0)
jle 0x100413d5
mov dword [esp + 0x14], esi
fld qword [esp + 0x40]
fld qword [esp + 0x40]
mov eax, dword [esp + 0x9c]
fstp qword [eax + edi*8]
fcomp qword [eax + edi*8 - 8]
fnstsw ax
test ah, 0x41
je 0x100413f6
inc dword [esp + 0x10]
fld qword [ebx + 8]
fld qword [ebx]
fsub qword [esp + 0x1b8]
fxch st(1)
fsub qword [esp + 0x1c0]
fxch st(1)
fst qword [esp + 0x40]
fld st(1)
fxch st(1)
fmul qword [esp + 0x40]
fxch st(1)
fmul st(2)
faddp st(1)
fsqrt
fstp qword [esp + 0x70]
fstp st(0)
jmp 0x1004143e
mov eax, dword [esp + 0x9c]
mov edx, dword [esi + edi*8]
mov dword [eax + edi*8], edx
mov ecx, dword [esi + edi*8 + 4]
mov dword [eax + edi*8 + 4], ecx
fld qword [esp + 0x70]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x10041461
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x1c], edi
fld qword [esp + 0x70]
mov ecx, dword [esp + 0x88]
mov eax, dword [ebp + 0x20]
fstp qword [ecx + edi*8]
inc edi
cmp edi, eax
jl 0x10041200
fld qword [esp + 0x58]
fcomp qword [ebp + 8]
fnstsw ax
test ah, 0x41
je 0x1004149c
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x98]
cmp edx, eax
je 0x1004158b
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 [0x10059b90]
fnstsw ax
test ah, 1
jne 0x100414ee
fld qword [esp + 0x58]
fcomp qword [esp + 0xa0]
fnstsw ax
test ah, 0x41
je 0x100414ee
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x100414ee
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
dec eax
cmp ecx, eax
jne 0x100414f9
mov dword [esp + 0xb0], 0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1004152d
cmp dword [ebp + 0x1c], 1
jne 0x1004152d
mov edx, dword [ebp + 0x20]
test edx, edx
jle 0x1004152d
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x9c]
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 0x1004151b
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x7c]
inc eax
mov dword [esp + 0xa4], edx
cmp eax, ecx
mov dword [esp + 0x78], eax
jl 0x10040769
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x80]
inc eax
cmp eax, ecx
mov dword [esp + 0x68], eax
jle 0x10040727
mov edx, dword [esp + 0xc]
fld qword [esp + 0x58]
fcomp qword [ebp + 8]
fnstsw ax
test ah, 0x41
jne 0x1004158b
dec edx
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x58]
add edx, eax
test edx, edx
mov dword [ecx], eax
jle 0x100415b8
mov eax, dword [ebp + 0x5c]
mov ecx, dword [esp + 0x20]
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 0x100415a6
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x100415c5
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x50]
mov edx, dword [ebp + 0x20]
test eax, eax
je 0x100415ed
test edx, edx
jle 0x100415ed
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 0x100415db
mov eax, dword [ebp + 0x54]
test eax, eax
je 0x10041627
test edx, edx
jle 0x10041627
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 0x10041601
jmp 0x10041627
mov dword [esp + 0x18], 2
jmp 0x10041627
mov dword [esp + 0x18], 1
mov edx, dword [esp + 0x20]
push edx
call fcn.10003d40
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret