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

Disassembly:
sub esp, 0x34
movzx ecx, byte [esp + 0x84]
push ebx
push ebp
mov eax, 1
sub eax, ecx
mov edx, eax
push esi
mov esi, dword [esp + 0x4c]
imul edx, esi
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x54]
imul eax, edx
imul ecx, edx
push edi
mov edi, eax
mov eax, dword [esp + 0x5c]
sub eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
add eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x60]
sub ebp, esi
lea ecx, [eax + ebp]
add ecx, dword [esp + 0x64]
mov dword [esp + 0x34], ebp
add ecx, ecx
add ecx, ecx
push ecx
call fcn.1005986c
mov ecx, dword [esp + 0x5c]
mov ebx, eax
mov eax, dword [esp + 0x60]
sub eax, ecx
add eax, 1
add esp, 4
sar eax, 1
test cl, 1
mov dword [esp + 0x28], edi
je 0x1003326d
test byte [esp + 0x5c], 1
jne 0x1003326d
sub eax, 1
mov ecx, dword [esp + 0x50]
mov esi, edi
imul esi, dword [esp + 0x68]
add esi, dword [esp + 0x3c]
add ebp, 1
sar ebp, 1
and ecx, 1
mov dword [esp + 0x58], ebp
mov dword [esp + 0x3c], ecx
je 0x1003329c
test byte [esp + 0x54], 1
jne 0x1003329c
sub ebp, 1
mov dword [esp + 0x58], ebp
cmp dword [esp + 0x90], 0
jne 0x100333df
mov edx, dword [esp + 0x70]
fld1
mov ecx, dword [esp + 0x78]
fld1
mov ebp, dword [esp + 0x88]
lea edx, [edx + edx*2]
add edx, edx
add ecx, 1
add edx, edx
mov dword [esp + 0x90], ecx
sub ecx, dword [edx + ebp + 4]
jne 0x100332da
fst dword [esp + 0x5c]
jmp 0x10033301
test ecx, ecx
mov ebp, 1
jge 0x100332f3
neg ecx
shl ebp, cl
mov dword [esp + 0x5c], ebp
fild dword [esp + 0x5c]
fdivr st(2)
jmp 0x100332fd
shl ebp, cl
mov dword [esp + 0x5c], ebp
fild dword [esp + 0x5c]
fstp dword [esp + 0x5c]
mov ecx, dword [esp + 0x8c]
fild dword [edx + ecx + 4]
mov ecx, dword [esp + 0x90]
fld qword [0x1008aec8]
mov ebp, dword [esp + 0x88]
sub ecx, dword [edx + ebp + 8]
fmul st(1), st(0)
fxch st(1)
fadd st(3)
fmul dword [esp + 0x5c]
fstp dword [esp + 0x10]
jne 0x1003333c
fxch st(1)
fst dword [esp + 0x5c]
jmp 0x10033365
test ecx, ecx
mov ebp, 1
jge 0x10033355
neg ecx
shl ebp, cl
mov dword [esp + 0x5c], ebp
fild dword [esp + 0x5c]
fdivr st(3)
jmp 0x1003335f
shl ebp, cl
mov dword [esp + 0x5c], ebp
fild dword [esp + 0x5c]
fstp dword [esp + 0x5c]
fxch st(1)
mov ecx, dword [esp + 0x8c]
fild dword [edx + ecx + 8]
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x88]
sub ecx, dword [edx + ebp + 0xc]
fmul st(2)
add ecx, 2
fadd st(3)
fmul dword [esp + 0x5c]
fstp dword [esp + 0x20]
je 0x100333c9
test ecx, ecx
fstp st(0)
mov ebp, 1
jge 0x100333bf
neg ecx
shl ebp, cl
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x5c], ebp
fild dword [esp + 0x5c]
fdivr st(2)
fstp dword [esp + 0x5c]
fimul dword [edx + ecx + 0xc]
faddp st(1)
jmp 0x100334fe
shl ebp, cl
mov dword [esp + 0x5c], ebp
fild dword [esp + 0x5c]
mov ecx, dword [esp + 0x8c]
fstp dword [esp + 0x5c]
fimul dword [edx + ecx + 0xc]
faddp st(1)
jmp 0x100334fe
mov edx, dword [esp + 0x88]
mov ecx, dword [edx]
mov ebp, dword [esp + 0x78]
cmp ecx, ebp
jne 0x1003340b
mov edx, dword [esp + 0x8c]
cmp dword [edx], 0
jne 0x1003340b
fld1
fst dword [esp + 0x10]
fst dword [esp + 0x20]
jmp 0x10033502
sub ecx, dword [esp + 0x70]
fld1
fld1
lea edx, [ebp + 1]
sub edx, ecx
mov dword [esp + 0x90], ecx
jne 0x10033427
fst dword [esp + 0x5c]
jmp 0x10033454
test edx, edx
mov ecx, edx
mov ebp, 1
jge 0x10033442
neg ecx
shl ebp, cl
mov dword [esp + 0x5c], ebp
fild dword [esp + 0x5c]
fdivr st(2)
jmp 0x1003344c
shl ebp, cl
mov dword [esp + 0x5c], ebp
fild dword [esp + 0x5c]
mov ebp, dword [esp + 0x78]
fstp dword [esp + 0x5c]
test edx, edx
mov ecx, dword [esp + 0x8c]
fild dword [ecx]
fmul qword [0x1008aec8]
fadd st(2)
fld dword [esp + 0x5c]
fmul st(1)
fstp dword [esp + 0x10]
jne 0x1003347b
fxch st(1)
fst dword [esp + 0x5c]
jmp 0x100334b3
jge 0x10033494
mov ecx, edx
neg ecx
mov edx, 1
shl edx, cl
mov dword [esp + 0x5c], edx
fild dword [esp + 0x5c]
fdivr st(3)
jmp 0x100334ad
mov ecx, 1
mov dword [esp + 0x5c], ecx
mov ecx, edx
mov edx, dword [esp + 0x5c]
shl edx, cl
mov dword [esp + 0x5c], edx
fild dword [esp + 0x5c]
fstp dword [esp + 0x5c]
fxch st(1)
fld dword [esp + 0x5c]
sub ebp, dword [esp + 0x90]
fmul st(2)
add ebp, 2
mov ecx, ebp
fstp dword [esp + 0x20]
jne 0x100334d1
fstp st(2)
fxch st(1)
jmp 0x100334fa
test ecx, ecx
fstp st(0)
mov edx, 1
jge 0x100334ee
neg ecx
shl edx, cl
mov dword [esp + 0x5c], edx
fild dword [esp + 0x5c]
fdivp st(2)
fxch st(1)
jmp 0x100334fa
shl edx, cl
fstp st(1)
mov dword [esp + 0x5c], edx
fild dword [esp + 0x5c]
fstp dword [esp + 0x5c]
fmul dword [esp + 0x5c]
add eax, edi
fstp dword [esp + 0x1c]
cmp edi, eax
jge 0x1003378e
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x4c]
sar ecx, 1
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x54]
and ecx, 1
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x48]
lea edx, [ecx + esi*4]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
imul edx, edi
lea edx, [ebp + edx*4]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x58]
sub eax, edi
add edx, esi
mov dword [esp + 0x30], eax
lea ecx, [ecx + edx*4]
add eax, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
nop
fld dword [esp + 0x10]
xor ecx, ecx
cmp dword [esp + 0x3c], ecx
je 0x1003365c
cmp dword [esp + 0x5c], 4
jl 0x100335e1
mov ebp, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add ebp, 0xfffffffc
shr ebp, 2
add ebp, 1
lea eax, [ebx + eax*4 + 8]
lea ecx, [ebp*4]
fld st(0)
add edx, 0x10
fmul dword [edx - 0x10]
add edi, 0x10
add eax, 0x20
sub ebp, 1
fstp dword [eax - 0x28]
fld dword [edi - 0x10]
fstp dword [eax - 0x24]
fld dword [edx - 0xc]
fmul st(1)
fstp dword [eax - 0x20]
fld dword [edi - 0xc]
fstp dword [eax - 0x1c]
fld dword [edx - 8]
fmul st(1)
fstp dword [eax - 0x18]
fld dword [edi - 8]
fstp dword [eax - 0x14]
fld dword [edx - 4]
fmul st(1)
fstp dword [eax - 0x10]
fld dword [edi - 4]
fstp dword [eax - 0xc]
jne 0x1003359b
mov eax, dword [esp + 0x5c]
cmp ecx, eax
jge 0x10033627
mov edx, dword [esp + 0x48]
lea edi, [ecx + esi]
lea ebp, [edx + edi*4]
mov edi, dword [esp + 0x58]
add edi, ecx
add edi, esi
lea edi, [edx + edi*4]
mov edx, dword [esp + 0x60]
lea edx, [edx + ecx*2]
sub eax, ecx
lea edx, [ebx + edx*4]
add ecx, eax
fld dword [edi]
add edi, 4
fmul st(1)
add ebp, 4
add edx, 8
sub eax, 1
fstp dword [edx - 8]
fld dword [ebp - 4]
fstp dword [edx - 4]
jne 0x1003360c
cmp dword [esp + 0x90], 0
jne 0x10033733
mov eax, dword [esp + 0x58]
lea edx, [ecx + eax]
mov eax, dword [esp + 0x48]
add edx, esi
fmul dword [eax + edx*4]
mov edx, dword [esp + 0x60]
lea eax, [edx + ecx*2]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp dword [ebx + eax*4]
jmp 0x10033735
cmp dword [esp + 0x5c], 4
jl 0x100336cc
mov ebp, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add ebp, 0xfffffffc
shr ebp, 2
add ebp, 1
lea eax, [ebx + ecx*4 + 8]
lea ecx, [ebp*4]
fld dword [edx]
add edx, 0x10
fstp dword [eax - 8]
add edi, 0x10
add eax, 0x20
sub ebp, 1
fld st(0)
fmul dword [edi - 0x10]
fstp dword [eax - 0x24]
fld dword [edx - 0xc]
fstp dword [eax - 0x20]
fld dword [edi - 0xc]
fmul st(1)
fstp dword [eax - 0x1c]
fld dword [edx - 8]
fstp dword [eax - 0x18]
fld dword [edi - 8]
fmul st(1)
fstp dword [eax - 0x14]
fld dword [edx - 4]
fstp dword [eax - 0x10]
fld dword [edi - 4]
fmul st(1)
fstp dword [eax - 0xc]
jne 0x10033687
mov eax, dword [esp + 0x5c]
cmp ecx, eax
jge 0x10033711
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x48]
add edx, ecx
add edx, esi
lea ebp, [edi + edx*4]
lea edx, [ecx + esi]
lea edi, [edi + edx*4]
mov edx, dword [esp + 0x60]
lea edx, [edx + ecx*2]
sub eax, ecx
lea edx, [ebx + edx*4]
add ecx, eax
fld dword [edi]
add edi, 4
fstp dword [edx]
add ebp, 4
fld dword [ebp - 4]
add edx, 8
sub eax, 1
fmul st(1)
fstp dword [edx - 4]
jne 0x100336f7
cmp dword [esp + 0x90], 0
fstp st(0)
je 0x10033735
mov edx, dword [esp + 0x60]
lea eax, [ecx + esi]
lea ecx, [edx + ecx*2]
mov edx, dword [esp + 0x48]
fld dword [edx + eax*4]
fstp dword [ebx + ecx*4]
jmp 0x10033735
fstp st(0)
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x2c]
lea eax, [ecx*4]
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x94]
push eax
mov eax, dword [esp + 0x58]
push ecx
add esi, ecx
mov ecx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push eax
push ecx
push edi
push ebx
call fcn.10032df0
mov eax, dword [esp + 0x44]
add eax, eax
add eax, eax
add edi, eax
add esp, 0x20
sub dword [esp + 0x30], 1
mov dword [esp + 0x2c], edi
jne 0x10033560
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x28], edx
jge 0x10033a4c
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
sar eax, 1
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x54]
and eax, 1
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x48]
lea ecx, [eax + esi*4]
mov dword [esp + 0x14], ecx
lea ecx, [edx*4]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x28]
mov edi, ecx
imul edi, edx
mov edx, dword [esp + 0x4c]
lea edx, [edx + edi*4]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x58]
add edx, esi
lea eax, [eax + edx*4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
sub eax, ecx
mov dword [esp + 0x38], eax
lea esp, [esp]
fld dword [esp + 0x20]
xor ecx, ecx
cmp dword [esp + 0x3c], ecx
fld dword [esp + 0x1c]
je 0x1003390d
cmp dword [esp + 0x5c], 4
jl 0x1003388d
mov ebp, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add ebp, 0xfffffffc
shr ebp, 2
add ebp, 1
lea eax, [ebx + ecx*4 + 8]
lea ecx, [ebp*4]
fld st(0)
add edx, 0x10
fmul dword [edx - 0x10]
add edi, 0x10
add eax, 0x20
sub ebp, 1
fstp dword [eax - 0x28]
fld dword [edi - 0x10]
fmul st(2)
fstp dword [eax - 0x24]
fld dword [edx - 0xc]
fmul st(1)
fstp dword [eax - 0x20]
fld dword [edi - 0xc]
fmul st(2)
fstp dword [eax - 0x1c]
fld dword [edx - 8]
fmul st(1)
fstp dword [eax - 0x18]
fld dword [edi - 8]
fmul st(2)
fstp dword [eax - 0x14]
fld dword [edx - 4]
fmul st(1)
fstp dword [eax - 0x10]
fld dword [edi - 4]
fmul st(2)
fstp dword [eax - 0xc]
jne 0x1003383f
mov eax, dword [esp + 0x5c]
cmp ecx, eax
jge 0x100338d6
mov edx, dword [esp + 0x48]
lea edi, [ecx + esi]
lea ebp, [edx + edi*4]
mov edi, dword [esp + 0x58]
add edi, ecx
add edi, esi
lea edi, [edx + edi*4]
mov edx, dword [esp + 0x60]
lea edx, [edx + ecx*2]
sub eax, ecx
lea edx, [ebx + edx*4]
add ecx, eax
fld st(0)
add edi, 4
fmul dword [edi - 4]
add ebp, 4
add edx, 8
sub eax, 1
fstp dword [edx - 8]
fld dword [ebp - 4]
fmul st(2)
fstp dword [edx - 4]
jne 0x100338b8
cmp dword [esp + 0x90], 0
fstp st(1)
jne 0x100339f7
mov eax, dword [esp + 0x58]
lea edx, [ecx + eax]
mov eax, dword [esp + 0x48]
add edx, esi
fmul dword [eax + edx*4]
mov edx, dword [esp + 0x60]
lea eax, [edx + ecx*2]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp dword [ebx + eax*4]
jmp 0x100339f9
cmp dword [esp + 0x5c], 4
jl 0x10033985
mov ebp, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add ebp, 0xfffffffc
shr ebp, 2
add ebp, 1
lea eax, [ebx + ecx*4 + 8]
lea ecx, [ebp*4]
fld dword [edx]
add edx, 0x10
fmul st(2)
add edi, 0x10
add eax, 0x20
sub ebp, 1
fstp dword [eax - 0x28]
fld st(0)
fmul dword [edi - 0x10]
fstp dword [eax - 0x24]
fld dword [edx - 0xc]
fmul st(2)
fstp dword [eax - 0x20]
fld dword [edi - 0xc]
fmul st(1)
fstp dword [eax - 0x1c]
fld dword [edx - 8]
fmul st(2)
fstp dword [eax - 0x18]
fld dword [edi - 8]
fmul st(1)
fstp dword [eax - 0x14]
fld dword [edx - 4]
fmul st(2)
fstp dword [eax - 0x10]
fld dword [edi - 4]
fmul st(1)
fstp dword [eax - 0xc]
jne 0x10033938
mov eax, dword [esp + 0x5c]
cmp ecx, eax
jge 0x100339cd
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x48]
add edx, ecx
add edx, esi
lea ebp, [edi + edx*4]
lea edx, [ecx + esi]
lea edi, [edi + edx*4]
mov edx, dword [esp + 0x60]
lea edx, [edx + ecx*2]
sub eax, ecx
lea edx, [ebx + edx*4]
add ecx, eax
fld dword [edi]
add edi, 4
fmul st(2)
add ebp, 4
add edx, 8
sub eax, 1
fstp dword [edx - 8]
fld st(0)
fmul dword [ebp - 4]
fstp dword [edx - 4]
jne 0x100339b0
cmp dword [esp + 0x90], 0
fstp st(0)
je 0x100339f7
mov edx, dword [esp + 0x48]
lea eax, [ecx + esi]
fmul dword [edx + eax*4]
mov eax, dword [esp + 0x60]
lea ecx, [eax + ecx*2]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp dword [ebx + ecx*4]
jmp 0x100339f9
fstp st(0)
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x94]
mov edi, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x58]
lea eax, [ecx*4]
add dword [esp + 0x1c], eax
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
push ecx
push eax
mov eax, dword [esp + 0x5c]
add esi, ecx
mov ecx, dword [esp + 0x6c]
push ecx
push edx
push eax
push edi
push ebx
call fcn.10032df0
add edi, dword [esp + 0x50]
add esp, 0x20
sub dword [esp + 0x38], 1
mov dword [esp + 0x34], edi
jne 0x10033800
test ebx, ebx
je 0x10033a59
push ebx
call fcn.100598cb
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret