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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
lea eax, [eax + eax*2 + 1]
xor ebx, ebx
cmp eax, ebx
push edi
lea edi, [esi + 0x5c]
jl 0x1001a8cb
cmp eax, dword [edi + 4]
jg 0x1001a8cb
mov dword [edi], eax
jmp 0x1001a8d3
push eax
mov ecx, edi
call fcn.10002a90
mov eax, dword [edi]
mov ecx, dword [edi + 8]
lea ecx, [ecx + eax*4]
mov eax, dword [esi + 0x64]
cmp eax, ecx
je 0x1001a8eb
mov dword [eax], ebx
add eax, 4
cmp eax, ecx
jne 0x1001a8e2
cmp dword [esi + 4], ebx
mov dword [esp + 0x44], ebx
jle 0x1001ae89
xor edi, edi
lea ebx, [ebx]
fld qword [0x2f3f088]
mov edx, dword [esi + 0xc]
fstp qword [esp + 0x68]
lea ebp, [edx + edi]
fld qword [0x2f3f088]
mov dword [esp + 0x2c], ebp
fstp qword [esp + 0x70]
fld qword [0x2f3f088]
fstp qword [esp + 0x78]
fld qword [0x2f3f088]
fstp qword [esp + 0x80]
cmp dword [ebp + 0x30], ebx
je 0x1001ae72
cmp dword [ebp + 0x64], ebx
lea ecx, [ebp + 0x60]
jge 0x1001a94e
push ebx
call fcn.10019dd0
jmp 0x1001a950
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x38]
lea eax, [esp + 0x68]
push eax
push 0x2ef9d90
push 0x28
push ecx
push edx
call fcn.10018570
add esp, 0x14
cmp dword [esi + 0x4c], ebx
mov dword [esp + 0x30], ebx
jle 0x1001ae72
lea esp, [esp]
cmp dword [esp + 0x30], 5
jge 0x1001ae72
mov eax, dword [esi + 0xc]
mov ebp, dword [eax + edi + 0x60]
mov eax, dword [esi + 0x30]
xor edx, edx
lea eax, [eax + eax*2]
cmp eax, ebx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 1
mov dword [esp + 0x34], ebp
mov byte [esp + 0x17], 0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 0xa
jl 0x1001a9d3
jg 0x1001a9d3
mov dword [esp + 0x58], eax
jmp 0x1001a9e1
push eax
lea ecx, [esp + 0x5c]
call fcn.10002a90
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
lea ecx, [edx + ecx*4]
cmp edx, ecx
mov eax, edx
je 0x1001a9f9
mov edi, edi
mov dword [eax], ebx
add eax, 4
cmp eax, ecx
jne 0x1001a9f0
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x30]
cmp eax, ebx
jle 0x1001ad2a
lea ebx, [ebp*8]
sub ebx, ebp
add ebx, ebx
add ebx, ebx
add ebp, 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x1c], 0x28
lea esp, [esp]
cmp dword [esp + 0x24], eax
jge 0x1001ad28
mov eax, dword [esp + 0x2c]
fnstcw word [esp + 0x18]
mov ecx, dword [eax + 0x38]
movzx eax, word [esp + 0x18]
mov edx, dword [esp + 0x20]
or ah, 0xc
fld qword [ecx + edx]
mov dword [esp + 0x40], eax
fldcw word [esp + 0x40]
mov eax, dword [esp + 0x1c]
fistp qword [esp + 0x48]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x3c], edx
fldcw word [esp + 0x18]
fld qword [ecx + eax]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or ah, 0xc
mov dword [esp + 0x40], eax
fldcw word [esp + 0x40]
mov eax, dword [esp + 0x30]
fistp qword [esp + 0x48]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x40], ecx
sub ecx, edx
mov edx, dword [esi + 0x54]
fldcw word [esp + 0x18]
mov ebp, dword [edx + eax*4]
mov eax, ecx
sub eax, ebp
jns 0x1001aaad
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, ebp
cdq
idiv dword [esi + 0x2c]
cmp dword [esp + 0x18], eax
mov dword [esp + 0x48], eax
jle 0x1001ab81
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov edx, eax
sub edx, ebp
jns 0x1001aad6
mov edx, ebp
sub edx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], edx
cdq
sub eax, edx
sar eax, 1
cmp dword [esp + 0x18], eax
jle 0x1001ab81
cmp ecx, ebp
jge 0x1001ab00
add dword [esp + 0x24], 1
add dword [esp + 0x1c], 0x28
jmp 0x1001ad17
cmp byte [esp + 0x17], 0
je 0x1001ab53
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + edi + 0x68]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov dword [edx + ebx + 4], eax
mov eax, 1
add dword [esp + 0x34], eax
add dword [esp + 0x38], eax
add ecx, eax
mov eax, dword [esp + 0x20]
add eax, 0x28
mov dword [esp + 0x28], ecx
add ecx, 1
add ebx, 0x1c
mov dword [esp + 0x20], eax
add eax, 0x28
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x17], 0
jmp 0x1001ad17
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add eax, 1
add ecx, 0x28
mov dword [esp + 0x28], eax
add eax, 1
mov dword [esp + 0x20], ecx
add ecx, 0x28
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x17], 0
jmp 0x1001ad17
mov edx, dword [esp + 0x2c]
fnstcw word [esp + 0x18]
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x1c]
fld qword [edx + eax + 8]
movzx eax, word [esp + 0x18]
or ah, 0xc
mov ecx, dword [esi + 0xc]
add ecx, edi
mov dword [esp + 0x48], eax
fldcw word [esp + 0x48]
fistp qword [esp + 0x48]
mov edx, dword [esp + 0x48]
fldcw word [esp + 0x18]
fld qword [ecx + 0x20]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or ah, 0xc
mov dword [esp + 0x48], eax
fldcw word [esp + 0x48]
mov eax, dword [esi + 0x30]
lea eax, [eax + eax*2]
fistp qword [esp + 0x48]
mov ebp, dword [esp + 0x48]
sub ebp, edx
cmp ebp, eax
fldcw word [esp + 0x18]
jl 0x1001abe7
lea ebp, [eax - 1]
test ebp, ebp
jge 0x1001abed
xor ebp, ebp
mov eax, dword [esp + 0x34]
add ecx, 0x60
cmp dword [ecx], eax
mov byte [esp + 0x17], 1
jne 0x1001acd2
mov eax, dword [esp + 0x38]
test eax, eax
jl 0x1001ac12
cmp eax, dword [ecx + 4]
jg 0x1001ac12
mov dword [ecx], eax
jmp 0x1001ac18
push eax
call fcn.10019dd0
mov ecx, dword [esi + 0xc]
fnstcw word [esp + 0x18]
mov edx, dword [ecx + edi + 0x68]
mov eax, dword [esp + 0x3c]
mov dword [ebx + edx], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + edi + 0x68]
mov eax, dword [esp + 0x40]
mov dword [edx + ebx + 4], eax
mov edx, dword [esi + 0xc]
mov eax, dword [edx + edi + 0x68]
mov ecx, dword [esi + 0x54]
mov edx, dword [esp + 0x30]
mov ecx, dword [ecx + edx*4]
mov dword [eax + ebx + 8], ecx
mov edx, dword [esi + 0xc]
mov eax, dword [edx + edi + 0x68]
mov edx, dword [esp + 0x60]
mov dword [eax + ebx + 0x10], 2
movzx eax, word [esp + 0x18]
add dword [edx + ebp*4], 1
mov ecx, dword [esi + 0xc]
or ah, 0xc
mov ebp, dword [esp + 0x20]
fld qword [ecx + edi + 0x20]
mov dword [esp + 0x48], eax
fldcw word [esp + 0x48]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x38]
fistp qword [esp + 0x48]
mov ecx, dword [esp + 0x48]
fldcw word [esp + 0x18]
fld qword [eax + ebp + 8]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or ah, 0xc
mov dword [esp + 0x48], eax
fldcw word [esp + 0x48]
fistp qword [esp + 0x48]
mov eax, dword [esp + 0x48]
sub ecx, eax
mov eax, dword [esi + 0x30]
fldcw word [esp + 0x18]
lea eax, [eax + eax*2]
cmp ecx, eax
jl 0x1001acc6
lea ecx, [eax - 1]
test ecx, ecx
jge 0x1001accc
xor ecx, ecx
add dword [edx + ecx*4], 1
jmp 0x1001acf9
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + edi + 0x68]
mov eax, dword [esp + 0x40]
mov dword [edx + ebx + 4], eax
mov eax, dword [esp + 0x60]
add dword [eax + ebp*4], 1
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + edi + 0x68]
add dword [edx + ebx + 0x10], 1
lea eax, [edx + ebx + 0x10]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
add ecx, 1
mov dword [esp + 0x20], eax
add eax, 0x28
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x30]
cmp dword [esp + 0x28], eax
jl 0x1001aa30
xor ebx, ebx
xor ecx, ecx
xor ebp, ebp
xor eax, eax
cmp dword [esp + 0x58], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ecx
jle 0x1001ae44
lea ebx, [ebx]
mov edx, dword [esp + 0x60]
mov edx, dword [edx + ecx*4]
test edx, edx
jle 0x1001ad7b
cmp edx, ebp
jle 0x1001ad67
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x60]
mov edx, dword [edx + ecx*4]
mov ebp, edx
imul ebp, ecx
add eax, ebp
mov ebp, dword [esp + 0x40]
add ebx, edx
add ecx, 1
cmp ecx, dword [esp + 0x58]
jl 0x1001ad50
test ebx, ebx
mov dword [esp + 0x3c], ebx
jle 0x1001ae44
cmp ebp, 2
jge 0x1001ad9c
cdq
idiv ebx
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x28]
xor ecx, ecx
mov eax, dword [esp + 0x60]
mov eax, dword [eax + ecx*4]
test eax, eax
jle 0x1001adb7
imul eax, edx
imul eax, edx
add dword [esp + 0x38], eax
add ecx, 1
sub edx, 1
cmp ecx, dword [esp + 0x58]
jl 0x1001ada2
mov eax, dword [esp + 0x54]
mov ecx, dword [esi + 0xc]
cmp eax, dword [ecx + edi + 0x60]
mov dword [esp + 0x40], eax
jge 0x1001ae44
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
add ecx, ecx
fild dword [esp + 0x28]
mov edx, dword [esi + 0xc]
fild dword [esp + 0x38]
mov edx, dword [edx + edi + 0x68]
mov eax, dword [esp + 0x28]
mov dword [edx + ecx + 0xc], eax
fidiv dword [esp + 0x3c]
mov edx, dword [esi + 0xc]
mov edx, dword [edx + edi + 0x68]
fld st(1)
fmul st(2)
fdivp st(1)
fstp dword [edx + ecx + 0x18]
mov edx, dword [esi + 0x64]
lea ebp, [edx + eax*4]
mov eax, dword [esi + 0xc]
fstp st(0)
mov edx, dword [eax + edi + 0x68]
mov eax, dword [edx + ecx + 4]
sub eax, dword [edx + ecx]
lea ebx, [edx + ecx]
cdq
idiv dword [ebx + 8]
add ecx, 0x1c
add dword [ebp], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esi + 0xc]
add eax, 1
cmp eax, dword [edx + edi + 0x60]
mov dword [esp + 0x40], eax
jl 0x1001ade1
cmp dword [esp + 0x5c], 1
jl 0x1001ae5c
mov eax, dword [esp + 0x60]
test eax, eax
je 0x1001ae5c
push eax
call fcn.10018560
add esp, 4
mov eax, dword [esp + 0x30]
add eax, 1
xor ebx, ebx
cmp eax, dword [esi + 0x4c]
mov dword [esp + 0x30], eax
jl 0x1001a980
mov eax, dword [esp + 0x44]
add eax, 1
add edi, 0x78
cmp eax, dword [esi + 4]
mov dword [esp + 0x44], eax
jl 0x1001a900
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret