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

Disassembly:
mov edx, dword [esp + 4]
xor ecx, ecx
sub esp, 0x68
cmp edx, ecx
jne 0x1001ab14
lea eax, [ecx + 1]
add esp, 0x68
ret
mov eax, dword [edx + 0xc]
cmp eax, ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
jle 0x1001aef8
nop
test ecx, ecx
jl 0x1001ab46
cmp ecx, dword [edx + 0xc]
jge 0x1001ab46
mov eax, dword [edx + 0x14]
mov eax, dword [eax + ecx*4]
inc dword [eax + 0xc]
mov ebp, eax
jmp 0x1001ab48
xor ebp, ebp
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x34], eax
test eax, eax
je 0x1001aee9
push eax
call sym.leptonlib.dll_boxaGetCount
lea esi, [ebp + 0x1c]
add esp, 4
cmp dword [esi], 0
mov edi, eax
mov dword [esp + 0x30], edi
je 0x1001ab7b
push esi
call sym.leptonlib.dll_ptaDestroy
add esp, 4
push 0
call sym.leptonlib.dll_ptaCreate
mov ebx, eax
add esp, 4
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x1001af02
mov ecx, dword [esp + 0x34]
push 2
push 0
push ecx
mov dword [esi], ebx
call sym.leptonlib.dll_ptaaGetPta
add esp, 0xc
mov dword [esp + 0x18], eax
cmp edi, 1
je 0x1001aebf
cmp edi, 0x97
jg 0x1001aebf
mov edx, dword [ebp + 4]
dec edi
push edi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x5c], edi
call sym.leptonlib.dll_ptaaCreate
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x1001af02
push edi
call sym.leptonlib.dll_ptaCreate
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1001af02
push edi
call sym.leptonlib.dll_ptaCreate
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x1001af02
mov edi, 1
cmp dword [esp + 0x30], edi
jle 0x1001ad1d
lea esp, [esp]
mov eax, dword [esp + 0x48]
push 2
push edi
push eax
call sym.leptonlib.dll_boxaGetBox
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x84]
push edx
push eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp]
push eax
push ecx
call sym.leptonlib.dll_getCutPathForHole
add esp, 0x20
cmp dword [esp + 0x4c], 0
mov esi, eax
jne 0x1001ac5d
inc dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push 0
push esi
push edx
call sym.leptonlib.dll_ptaaAddPta
push esi
call sym.leptonlib.dll_boxaGetCount
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1001aca2
fld dword [0x10142f98]
mov eax, dword [esp + 0x1c]
sub esp, 8
fst dword [esp + 4]
fstp dword [esp]
push eax
call sym.leptonlib.dll_ptaAddPt
fld dword [0x10142f98]
add esp, 4
fst dword [esp + 4]
jmp 0x1001acf1
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push esi
call sym.leptonlib.dll_ptaGetIPt
fild dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
add esp, 8
fstp dword [esp + 4]
fild dword [esp + 0x1c]
fstp dword [esp]
push ecx
call sym.leptonlib.dll_ptaAddPt
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
dec ebx
push ebx
push esi
call sym.leptonlib.dll_ptaGetIPt
fild dword [esp + 0x2c]
add esp, 0x14
fstp dword [esp + 4]
fild dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
fstp dword [esp]
push ecx
call sym.leptonlib.dll_ptaAddPt
lea edx, [esp + 0x5c]
add esp, 0xc
push edx
call sym.leptonlib.dll_boxDestroy
inc edi
add esp, 4
cmp edi, dword [esp + 0x30]
jl 0x1001ac20
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
push eax
call sym.leptonlib.dll_boxaGetCount
add esp, 4
xor ebp, ebp
mov dword [esp + 0x54], eax
test eax, eax
jle 0x1001adb3
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push ebp
push eax
call sym.leptonlib.dll_ptaGetIPt
add esp, 0x10
test ebp, ebp
je 0x1001ad91
mov edi, dword [esp + 0x58]
xor esi, esi
test edi, edi
jle 0x1001ad91
lea ebx, [ebx]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x60]
push edx
push esi
push eax
call sym.leptonlib.dll_ptaGetIPt
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp ecx, dword [esp + 0x5c]
jne 0x1001ad8c
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x60]
je 0x1001aded
inc esi
cmp esi, edi
jl 0x1001ad60
fild dword [esp + 0x10]
sub esp, 8
fstp dword [esp + 4]
fild dword [esp + 0x1c]
fstp dword [esp]
push ebx
call sym.leptonlib.dll_ptaAddPt
add esp, 0xc
inc ebp
cmp ebp, dword [esp + 0x54]
jl 0x1001ad34
lea eax, [esp + 0x24]
push eax
call sym.leptonlib.dll_ptaaDestroy
lea ecx, [esp + 0x20]
push ecx
call sym.leptonlib.dll_ptaDestroy
lea edx, [esp + 0x28]
push edx
call sym.leptonlib.dll_ptaDestroy
lea eax, [esp + 0x24]
push eax
call sym.leptonlib.dll_ptaDestroy
lea ecx, [esp + 0x54]
push ecx
call sym.leptonlib.dll_ccbDestroy
add esp, 0x14
jmp 0x1001aee1
mov eax, dword [esp + 0x24]
push 2
push esi
push eax
call sym.leptonlib.dll_ptaaGetPta
push 1
push eax
mov dword [esp + 0x4c], eax
call sym.leptonlib.dll_ptaReverse
add esp, 0x14
mov dword [esp + 0x3c], eax
test eax, eax
je 0x1001af02
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x6c]
push edx
push esi
push eax
call sym.leptonlib.dll_ptaGetIPt
mov ecx, dword [esp + 0x44]
push 2
inc esi
push esi
push ecx
call sym.leptonlib.dll_ptaaGetPta
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
push edx
push ecx
push eax
mov dword [esp + 0x94], eax
call sym.leptonlib.dll_ptaCyclicPerm
mov edx, dword [esp + 0x64]
push 0
push 0
push edx
push ebx
mov dword [esp + 0x78], eax
call sym.leptonlib.dll_ptaJoin
mov eax, dword [esp + 0x78]
push 0
push 0
push eax
push ebx
call sym.leptonlib.dll_ptaJoin
mov ecx, dword [esp + 0x80]
add esp, 0x48
push 0
push 0
push ecx
push ebx
call sym.leptonlib.dll_ptaJoin
lea edx, [esp + 0x48]
push edx
call sym.leptonlib.dll_ptaDestroy
lea eax, [esp + 0x50]
push eax
call sym.leptonlib.dll_ptaDestroy
lea ecx, [esp + 0x84]
push ecx
call sym.leptonlib.dll_ptaDestroy
lea edx, [esp + 0x5c]
push edx
call sym.leptonlib.dll_ptaDestroy
add esp, 0x20
jmp 0x1001adac
push 0
push 0
push eax
push ebx
call sym.leptonlib.dll_ptaJoin
lea edx, [esp + 0x28]
push edx
call sym.leptonlib.dll_ptaDestroy
lea eax, [esp + 0x58]
push eax
call sym.leptonlib.dll_ccbDestroy
add esp, 0x18
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x7c]
inc ecx
cmp ecx, dword [esp + 0x70]
mov dword [esp + 0x28], ecx
jl 0x1001ab30
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x68
ret