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

Disassembly:
sub esp, 0x144
mov eax, dword [0x10185cf0]
xor eax, esp
mov dword [esp + 0x140], eax
mov ecx, dword [0x1014a3d0]
mov dword [esp + 0x8c], ecx
mov cx, word [0x1014a3dc]
mov word [esp + 0x98], cx
push ebx
push esi
push edi
mov ecx, 8
mov esi, str.Seed_absorbed_into_seeded_basin
lea edi, [esp + 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
mov esi, str.One_new_watershed__label_
lea edi, [esp + 0xe8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 6
mov esi, str.One_new_watershed__index_
lea edi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [str.Two_new_watersheds]
mov edx, dword [0x1014a3d4]
mov ebx, dword [esp + 0x154]
mov ecx, 8
mov esi, str.Minima_absorbed_into_seeded_basin
lea edi, [esp + 0xa8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 9
mov esi, str.Minima_absorbed_by_filler_or_another
lea edi, [esp + 0x124]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x94], eax
mov eax, dword [0x1014a3d8]
mov dword [esp + 0x9c], edx
mov dl, byte [0x1014a3de]
mov dword [esp + 0xc], ebx
mov dword [esp + 0xa0], eax
mov byte [esp + 0xa6], dl
movsb byte es:[edi], byte [esi]
test ebx, ebx
jne 0x100cd3d5
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.101407ce
add esp, 0x144
ret
push ebp
push 1
push 0
call sym.leptonlib.dll_lheapCreate
push 0
mov dword [esp + 0x3c], eax
call sym.leptonlib.dll_lstackCreate
mov edx, dword [ebx]
mov dword [esp + 0x60], eax
push 0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x80]
push ecx
push edx
call sym.leptonlib.dll_pixGetDimensions
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x1c]
lea edx, [esp + 0xb0]
mov dword [esp + 0x7c], eax
mov eax, dword [ebx + 4]
push edx
mov dword [esp + 0x98], ecx
mov ecx, dword [ebx]
push eax
push ecx
call sym.leptonlib.dll_pixSelectMinInConnComp
mov edx, dword [esp + 0x98]
mov edi, eax
mov eax, dword [esp + 0x94]
push edx
push eax
push edi
call sym.leptonlib.dll_pixGenerateFromPta
push edi
mov dword [esp + 0x9c], eax
call sym.leptonlib.dll_boxaGetCount
mov ebp, eax
add esp, 0x38
xor esi, esi
mov dword [esp + 0x90], ebp
test ebp, ebp
jle 0x100cd521
jmp 0x100cd470
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push edi
call sym.leptonlib.dll_ptaGetIPt
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [edx + ecx*4]
push eax
call sym.leptonlib.dll_l_getDataByte
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x70], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x6c]
add esp, 0x18
mov dword [esp + 0x38], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], eax
test eax, eax
je 0x100cd518
test ecx, ecx
je 0x100cd518
push ecx
call sym.leptonlib.dll_lstackGetCount
add esp, 4
test eax, eax
jle 0x100cd4e6
mov eax, dword [esp + 0x44]
push eax
call sym.leptonlib.dll_lstackRemove
add esp, 4
jmp 0x100cd4f3
push 0x10
push 1
call dword [sym.imp.MSVCR90.dll_calloc]
add esp, 8
fild dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
fstp dword [eax]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x54]
push eax
call sym.leptonlib.dll_lheapAdd
add esp, 8
inc esi
cmp esi, ebp
jl 0x100cd470
fld1
push ebp
push ecx
fstp dword [esp]
mov dword [ebx + 0x28], edi
call sym.leptonlib.dll_numaMakeConstant
mov ecx, dword [esp + 0x9c]
push 0
lea edx, [esp + 0x74]
push edx
push 0
mov dword [esp + 0x64], eax
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx]
push 0xc8
push eax
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x3c], ebp
call sym.leptonlib.dll_pixLocalExtrema
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
push 2
push 8
push eax
push ecx
push eax
call sym.leptonlib.dll_pixRemoveSeededComponents
mov eax, dword [esp + 0x98]
mov ecx, dword [ebx]
lea edx, [esp + 0xb8]
push edx
push eax
push ecx
call sym.leptonlib.dll_pixSelectMinInConnComp
push eax
mov dword [esp + 0xb4], eax
call sym.leptonlib.dll_boxaGetCount
add esp, 0x40
xor esi, esi
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x100cd662
lea ebx, [ebx]
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
call sym.leptonlib.dll_ptaGetIPt
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [ecx + eax*4]
push edx
call sym.leptonlib.dll_l_getDataByte
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x70], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x6c]
add esp, 0x18
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], eax
test eax, eax
je 0x100cd657
test ecx, ecx
je 0x100cd657
push ecx
call sym.leptonlib.dll_lstackGetCount
add esp, 4
test eax, eax
jle 0x100cd626
mov edx, dword [esp + 0x44]
push edx
call sym.leptonlib.dll_lstackRemove
add esp, 4
jmp 0x100cd633
push 0x10
push 1
call dword [sym.imp.MSVCR90.dll_calloc]
add esp, 8
fild dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
lea edx, [esi + ebp]
push eax
fstp dword [eax]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x38]
push eax
call sym.leptonlib.dll_lheapAdd
add esp, 8
inc esi
cmp esi, dword [esp + 0x2c]
jl 0x100cd5b0
mov eax, dword [esp + 0x2c]
fld1
mov ecx, dword [esp + 0x88]
mov edx, dword [ebx + 8]
lea edi, [eax + ebp]
lea esi, [edi + edi]
push esi
sub esp, 8
fstp dword [esp + 4]
mov dword [ebx + 0x34], ecx
fldz
mov dword [esp + 0x48], edx
fstp dword [esp]
mov dword [esp + 0x50], edi
mov dword [ebx + 0x4c], esi
call sym.leptonlib.dll_numaMakeSequence
push eax
mov dword [esp + 0x90], eax
call sym.leptonlib.dll_numaGetIArray
push 4
push esi
mov dword [esp + 0x64], eax
mov dword [ebx + 0x44], eax
call dword [sym.imp.MSVCR90.dll_calloc]
push ebp
mov dword [ebx + 0x48], eax
mov dword [esp + 0x78], edi
call sym.leptonlib.dll_pixaCreate
push ebp
mov dword [ebx + 0x24], eax
call sym.leptonlib.dll_numaCreate
mov ecx, dword [esp + 0x50]
push ecx
mov dword [ebx + 0x38], eax
call sym.leptonlib.dll_lheapGetCount
add esp, 0x24
test eax, eax
jle 0x100cde49
mov ebp, dword [sym.imp.MSVCR90.dll_fprintf]
lea esp, [esp]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x54]
mov edi, eax
test ecx, ecx
je 0x100cd73e
test eax, eax
je 0x100cd73e
push ecx
call sym.leptonlib.dll_lheapRemove
mov esi, eax
add esp, 4
test esi, esi
je 0x100cd73e
fld dword [esi]
call fcn.10140710
mov edx, dword [esi + 4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 0xc]
push esi
push edi
mov dword [esp + 0x8c], ecx
call sym.leptonlib.dll_lstackAdd
add esp, 8
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [ecx + eax*4]
push edx
call sym.leptonlib.dll_l_getDataFourBytes
add esp, 8
cmp eax, 0x7fffffff
jne 0x100cd762
mov edi, eax
jmp 0x100cd769
mov ecx, dword [esp + 0x4c]
mov edi, dword [ecx + eax*4]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x84]
mov ebx, dword [edx + eax*4]
cmp edi, ebx
je 0x100cde34
mov edx, dword [esp + 0x1c]
cmp edi, 0x7fffffff
jne 0x100cd8be
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x78]
push ebx
push ecx
mov ecx, dword [eax + edx*4]
push ecx
call sym.leptonlib.dll_l_setDataFourBytes
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x7c]
xor edx, edx
lea eax, [esi - 1]
add esp, 0xc
test eax, eax
setl dl
dec ecx
mov dword [esp + 0x28], ecx
dec edx
and edx, eax
lea eax, [esi + 1]
cmp ecx, eax
mov edi, edx
jl 0x100cd7cc
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 1]
xor edx, edx
test eax, eax
setl dl
dec edx
and edx, eax
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x6c]
dec ecx
cmp ecx, eax
mov esi, edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], ecx
jl 0x100cd7f7
mov dword [esp + 0x24], eax
cmp edi, dword [esp + 0x28]
jg 0x100cde34
jmp 0x100cd814
mov esi, dword [esp + 0x2c]
cmp esi, dword [esp + 0x24]
jg 0x100cd8ae
mov edi, edi
cmp edi, dword [esp + 0x1c]
jne 0x100cd82c
cmp esi, dword [esp + 0x18]
je 0x100cd8a3
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + edi*4]
push esi
push ecx
call sym.leptonlib.dll_l_getDataByte
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
add esp, 8
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x100cd8a3
test eax, eax
je 0x100cd8a3
push eax
call sym.leptonlib.dll_lstackGetCount
add esp, 4
test eax, eax
jle 0x100cd879
mov edx, dword [esp + 0x48]
push edx
call sym.leptonlib.dll_lstackRemove
add esp, 4
jmp 0x100cd886
push 0x10
push 1
call dword [sym.imp.MSVCR90.dll_calloc]
add esp, 8
fild dword [esp + 0x20]
push eax
mov dword [eax + 4], esi
mov dword [eax + 8], edi
fstp dword [eax]
mov dword [eax + 0xc], ebx
mov eax, dword [esp + 0x18]
push eax
call sym.leptonlib.dll_lheapAdd
add esp, 8
inc esi
cmp esi, dword [esp + 0x24]
jle 0x100cd820
inc edi
cmp edi, dword [esp + 0x28]
jle 0x100cd810
jmp 0x100cde34
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x68]
push edx
push eax
push ecx
call sym.leptonlib.dll_pixGetPixel
mov eax, dword [esp + 0xa0]
add esp, 0x10
cmp edi, eax
jge 0x100cdca7
cmp ebx, eax
jge 0x100cdbaa
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x3c]
cmp edi, eax
mov dword [esp + 0x24], 0
jge 0x100cd905
mov eax, dword [esi + 0x30]
jmp 0x100cd911
mov ecx, dword [esi + 0x40]
add ecx, eax
cmp edi, ecx
jge 0x100cd92c
mov eax, dword [esi + 0x34]
lea edx, [esp + 0x34]
push edx
push edi
push eax
call sym.leptonlib.dll_numaGetIValue
mov eax, dword [esp + 0x4c]
add esp, 0xc
sub eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0x3c]
xor eax, eax
cmp ebx, ecx
mov dword [esp + 0x2c], eax
jge 0x100cd945
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x38]
push ecx
push ebx
push edx
jmp 0x100cd958
mov edx, dword [esi + 0x40]
add edx, ecx
cmp ebx, edx
jge 0x100cd96c
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x38]
push eax
push ebx
push ecx
call sym.leptonlib.dll_numaGetIValue
mov eax, dword [esp + 0x4c]
add esp, 0xc
sub eax, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jge 0x100cd97c
mov edx, ecx
mov dword [esp + 0x28], edx
jmp 0x100cd982
mov edx, eax
mov dword [esp + 0x28], eax
cmp ecx, eax
jle 0x100cd98c
mov dword [esp + 0x48], ecx
jmp 0x100cd992
mov ecx, eax
mov dword [esp + 0x48], eax
cmp edx, ecx
jne 0x100cd9a2
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], edx
mov dword [esp + 0x48], eax
cmp dword [esi + 0x50], 0
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
je 0x100cda0e
mov eax, dword [esp + 0x24]
push eax
push edi
push str.clabel_hlabel___d__d_n
call esi
add eax, 0x40
push eax
call ebp
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x38]
add esp, 0x10
push ecx
push edx
push str.hmin___d__hmax___d_n
call esi
add eax, 0x40
push eax
call ebp
mov eax, dword [esp + 0x3c]
add esp, 0x10
push eax
push ebx
push str.cindex_hindex___d__d_n
call esi
add eax, 0x40
push eax
call ebp
mov ecx, dword [esp + 0x4c]
add esp, 0x10
cmp dword [esp + 0x28], ecx
jge 0x100cda1c
push str.Too_shallow__n
call esi
add eax, 0x40
push eax
call ebp
add esp, 8
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 0x3c]
jl 0x100cdb35
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x50], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
je 0x100cda7a
lea eax, [esp + 0x98]
push eax
push str._s:_n
call esi
add eax, 0x40
push eax
call ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
add esp, 0xc
push ecx
push edx
push str.____x__y_____d___d__n
call esi
add eax, 0x40
push eax
call ebp
add esp, 0x10
push ebx
push edi
push str.___clabel___d__cindex___d_n
call esi
add eax, 0x40
push eax
call ebp
add esp, 0x10
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x10]
dec eax
mov edx, ebx
call fcn.100cd270
mov eax, dword [esp + 0x40]
dec eax
mov edx, edi
call fcn.100cd270
fldz
mov esi, dword [esp + 0x50]
push ecx
fstp dword [esp]
push ebx
push esi
call sym.leptonlib.dll_numaSetValue
fldz
add esp, 8
fstp dword [esp]
push edi
push esi
call sym.leptonlib.dll_numaSetValue
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x68]
add esp, 0xc
cmp dword [eax + 0x50], 0
je 0x100cdadc
push esi
push str.nindex___d_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call ebp
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x50]
mov eax, dword [esp + 0x4c]
push edx
push esi
push eax
call fcn.100cccd0
mov eax, dword [esp + 0x1c]
push esi
push edi
call fcn.100ccb50
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x50]
mov eax, dword [esp + 0x60]
push edx
push esi
push eax
call fcn.100cccd0
mov eax, dword [esp + 0x30]
push esi
push ebx
call fcn.100ccb50
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x50]
mov eax, dword [esp + 0x74]
push edx
push esi
push eax
call fcn.100cccd0
add esp, 0x34
inc esi
mov dword [esp + 0x5c], esi
jmp 0x100cdb93
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x50], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
je 0x100cdb93
lea ecx, [esp + 0x108]
push ecx
push str._s:_n
call esi
add eax, 0x40
push eax
call ebp
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
add esp, 0xc
push edx
push eax
push str.____x__y_____d___d__n
call esi
add eax, 0x40
push eax
call ebp
add esp, 0x10
push ebx
push edi
push str.___clabel___d__cindex___d_n
call esi
add eax, 0x40
push eax
call ebp
add esp, 0x10
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x2c], ecx
mov eax, edi
jle 0x100cdba3
mov eax, ebx
mov ebx, edi
push eax
push ebx
jmp 0x100cde28
cmp ebx, dword [esp + 0x44]
jl 0x100cdca7
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x50], 0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
je 0x100cdc1c
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
lea ecx, [esp + 0xec]
push ecx
push str._s:_n
call esi
add eax, 0x40
push eax
call ebp
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
add esp, 0xc
push edx
push eax
push str.____x__y_____d___d__n
call esi
add eax, 0x40
push eax
call ebp
add esp, 0x10
push ebx
push edi
push str.___clabel___d__cindex___d_n
call esi
add eax, 0x40
push eax
call ebp
mov esi, dword [esp + 0x20]
add esp, 0x10
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x90]
push edx
dec eax
push eax
push edi
push esi
mov dword [esp + 0x28], eax
call fcn.100ccf50
add esp, 0x14
test eax, eax
jne 0x100cdc85
mov ecx, dword [esi + 0x24]
push eax
mov eax, dword [esp + 0x80]
push eax
push ecx
call sym.leptonlib.dll_pixaAddPix
mov edx, dword [esp + 0x98]
mov eax, dword [esi + 0x24]
push 0
push edx
push eax
call sym.leptonlib.dll_pixaAddBox
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x38]
dec ecx
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
add esp, 0x14
fstp dword [esp]
push edx
call sym.leptonlib.dll_numaAddNumber
add esp, 8
fldz
mov eax, dword [esp + 0x50]
push ecx
fstp dword [esp]
push edi
push eax
call sym.leptonlib.dll_numaSetValue
push ebx
push edi
mov eax, esi
call fcn.100ccb50
add esp, 0x14
jmp 0x100cde34
cmp ebx, eax
jge 0x100cdd4f
cmp edi, dword [esp + 0x44]
jl 0x100cdd4f
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x50], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
je 0x100cdd1d
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
lea ecx, [esp + 0xd0]
push ecx
push str._s:_n
call esi
add eax, 0x40
push eax
call ebp
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
add esp, 0xc
push edx
push eax
push str.____x__y_____d___d__n
call esi
add eax, 0x40
push eax
call ebp
add esp, 0x10
push ebx
push edi
push str.___clabel___d__cindex___d_n
call esi
add eax, 0x40
push eax
call ebp
add esp, 0x10
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x10]
dec eax
mov edx, ebx
call fcn.100cd270
fldz
push ecx
fstp dword [esp]
mov ecx, dword [esp + 0x54]
push ebx
push ecx
call sym.leptonlib.dll_numaSetValue
push edi
push ebx
mov eax, esi
call fcn.100ccb50
add esp, 0x14
jmp 0x100cde34
cmp edi, eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
jge 0x100cddbb
cmp dword [ecx + 0x50], 0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
je 0x100cddb7
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
lea edx, [esp + 0xac]
push edx
push str._s:_n
call esi
add eax, 0x40
push eax
call ebp
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push eax
push ecx
push str.____x__y_____d___d__n
call esi
add eax, 0x40
push eax
call ebp
add esp, 0x10
push ebx
push edi
push str.___clabel___d__cindex___d_n
call esi
add eax, 0x40
push eax
call ebp
add esp, 0x10
push edi
push ebx
jmp 0x100cde28
cmp ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
jge 0x100cddd6
cmp dword [ecx + 0x50], 0
je 0x100cde26
lea edx, [esp + 0xac]
jmp 0x100cdde3
cmp dword [ecx + 0x50], 0
je 0x100cde26
lea edx, [esp + 0x128]
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push edx
push str._s:_n
call esi
add eax, 0x40
push eax
call ebp
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push eax
push ecx
push str.____x__y_____d___d__n
call esi
add eax, 0x40
push eax
call ebp
add esp, 0x10
push ebx
push edi
push str.___clabel___d__cindex___d_n
call esi
add eax, 0x40
push eax
call ebp
add esp, 0x10
push ebx
push edi
mov eax, dword [esp + 0x18]
call fcn.100ccb50
add esp, 8
mov edx, dword [esp + 0x30]
push edx
call sym.leptonlib.dll_lheapGetCount
add esp, 4
test eax, eax
jg 0x100cd6f0
lea eax, [esp + 0x80]
push eax
call sym.leptonlib.dll_numaDestroy
lea ecx, [esp + 0x6c]
push ecx
call sym.leptonlib.dll_pixDestroy
lea edx, [esp + 0x6c]
push edx
call sym.leptonlib.dll_pixDestroy
lea eax, [esp + 0x80]
push eax
call sym.leptonlib.dll_ptaDestroy
lea ecx, [esp + 0x40]
push 1
push ecx
call sym.leptonlib.dll_lheapDestroy
lea edx, [esp + 0x6c]
push 1
push edx
call sym.leptonlib.dll_lstackDestroy
mov ecx, dword [esp + 0x170]
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.101407ce
add esp, 0x144
ret