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

Disassembly:
sub esp, 0x60
push ebp
mov ebp, dword [esp + 0x68]
test ebp, ebp
jne 0x10024383
xor eax, eax
pop ebp
add esp, 0x60
ret
push ebp
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 0x20
jne 0x1002437c
push esi
mov esi, dword [esp + 0x70]
test esi, esi
jne 0x100243a5
mov esi, 4
mov dword [esp + 0x70], esi
jmp 0x100243b7
cmp esi, 3
jl 0x10024c22
cmp esi, 4
jg 0x10024c22
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebp
call sym.leptonlib.dll_pixGetDimensions
mov eax, 0xfa
add esp, 0x10
cmp dword [esp + 0x20], eax
jge 0x100243ec
cmp dword [esp + 0x2c], eax
jge 0x100243ec
cmp dword [esp + 0x74], 1
jne 0x100243ec
mov dword [esp + 0x74], 0
lea edx, [esp + 0xc]
mov eax, esi
call fcn.10020e90
test eax, eax
jne 0x10024c22
push esi
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
push ecx
call sym.leptonlib.dll_makeRGBToIndexTables
add esp, 0x10
test eax, eax
jne 0x10024c22
mov esi, dword [sym.imp.MSVCR90.dll_calloc]
push ebx
push edi
mov edi, dword [esp + 0x14]
push 4
push edi
call esi
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100248a0
push 4
push edi
call esi
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
je 0x100248a0
push 4
push edi
call esi
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x100248a0
push 4
push edi
call esi
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
je 0x100248a0
push ebp
call sym.leptonlib.dll_pixGetData
mov esi, eax
push ebp
mov dword [esp + 0x70], esi
call sym.leptonlib.dll_dpixGetRefcount
mov edx, dword [esp + 0x3c]
add esp, 8
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], 0
test edx, edx
jle 0x10024540
mov edi, esi
lea esp, [esp]
xor esi, esi
test eax, eax
jle 0x10024521
lea edx, [esp + 0x1c]
push edx
mov edx, dword [edi + esi*4]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
call sym.leptonlib.dll_extractRGBValues
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + ecx*4]
mov ebp, dword [esp + 0x50]
or eax, dword [ebp + edx*4]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x54]
or eax, dword [ebp + edx*4]
mov edx, dword [esp + 0x3c]
add dword [edx + eax*4], ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
add dword [ecx + eax*4], edx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
inc dword [ebx + eax*4]
add dword [ecx + eax*4], edx
mov eax, dword [esp + 0x38]
inc esi
add esp, 0x10
cmp esi, eax
jl 0x100244b6
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x10]
add ecx, ecx
add ecx, ecx
inc esi
add edi, ecx
cmp esi, edx
mov dword [esp + 0x10], esi
jl 0x100244b0
mov edi, dword [esp + 0x14]
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x50], esi
test edi, edi
jle 0x10024565
lea esp, [esp]
cmp dword [ebx + ecx*4], 0
jle 0x10024557
inc esi
inc ecx
cmp ecx, edi
jl 0x10024550
cmp esi, 4
mov dword [esp + 0x50], esi
jg 0x10024570
mov ebp, 2
mov dword [esp + 0x4c], ebp
jmp 0x10024585
xor ecx, ecx
cmp esi, 0x10
setg cl
lea ecx, [ecx*4 + 4]
mov ebp, ecx
mov dword [esp + 0x4c], ecx
push ebp
push edx
push eax
call sym.leptonlib.dll_pixCreate
mov esi, eax
push esi
mov dword [esp + 0x7c], esi
call sym.leptonlib.dll_pixGetData
push esi
mov dword [esp + 0x78], eax
call sym.leptonlib.dll_dpixGetRefcount
mov edx, dword [esp + 0x88]
push edx
push esi
mov dword [esp + 0x7c], eax
call sym.leptonlib.dll_pixCopyResolution
mov eax, dword [esp + 0x90]
push eax
push esi
call sym.leptonlib.dll_pixCopyInputFormat
push ebp
call sym.leptonlib.dll_pixcmapCreate
push eax
push esi
mov dword [esp + 0x88], eax
call sym.leptonlib.dll_pixSetColormap
mov esi, dword [esp + 0x50]
add esp, 0x30
test edi, edi
jle 0x1002463c
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, esi
sub eax, ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
sub ebp, esi
sub eax, ebx
mov ecx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x54], edx
mov edi, dword [ecx]
test edi, edi
jle 0x10024632
mov eax, dword [esp + 0x38]
lea esi, [eax + ecx]
mov eax, dword [esi + ebp]
cdq
idiv edi
mov dword [esi + ebp], eax
mov eax, dword [esi]
cdq
idiv edi
mov dword [esi], eax
mov esi, dword [esp + 0x10]
mov eax, dword [esi + ecx]
cdq
idiv edi
mov dword [esi + ecx], eax
mov esi, dword [esp + 0x20]
add ecx, 4
sub dword [esp + 0x54], 1
jne 0x10024604
cmp dword [esp + 0x50], 0x100
jg 0x10024798
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x100246a7
mov eax, dword [esp + 0x30]
sub eax, esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
sub eax, esi
mov edi, ebx
mov ebp, 1
mov dword [esp + 0x50], eax
sub edi, esi
mov dword [esp + 0x74], ecx
cmp dword [edi + esi], 0
jle 0x1002469d
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + esi]
mov eax, dword [esi]
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esi + ecx]
push eax
mov eax, dword [esp + 0x60]
push edx
push eax
call sym.leptonlib.dll_pixcmapAddColor
add esp, 0x10
mov dword [edi + esi], ebp
inc ebp
add esi, 4
sub dword [esp + 0x74], 1
jne 0x10024673
cmp dword [esp + 0x34], 0
mov dword [esp + 0x10], 0
jle 0x10024bdd
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
lea edx, [ecx*4]
lea ecx, [eax*4]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x58], edx
mov dword [esp + 0x74], ecx
xor esi, esi
test eax, eax
jle 0x10024778
mov edi, edi
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ebp + esi*4]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
call sym.leptonlib.dll_extractRGBValues
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
mov eax, dword [ecx + eax*4]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
or eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
or eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x5c]
add esp, 0x10
sub ecx, 2
je 0x1002475c
sub ecx, 2
je 0x1002474e
sub ecx, 4
jne 0x1002476b
mov edx, dword [ebx + eax*4]
dec edx
push edx
push esi
push edi
call sym.leptonlib.dll_l_setDataByte
jmp 0x10024768
mov eax, dword [ebx + eax*4]
dec eax
push eax
push esi
push edi
call sym.leptonlib.dll_l_setDataQbit
jmp 0x10024768
mov ecx, dword [ebx + eax*4]
dec ecx
push ecx
push esi
push edi
call sym.leptonlib.dll_l_setDataDibit
add esp, 0xc
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x100246f0
mov ecx, dword [esp + 0x10]
add ebp, dword [esp + 0x74]
add edi, dword [esp + 0x58]
inc ecx
cmp ecx, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
jl 0x100246e4
jmp 0x10024bdd
push 2
push 0x1f4
call sym.leptonlib.dll_lheapCreate
xor edi, edi
add esp, 8
cmp dword [esp + 0x14], edi
mov dword [esp + 0x48], eax
jle 0x1002481f
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x2c]
sub eax, ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
sub ebp, ebx
sub eax, ebx
mov esi, ebx
mov dword [esp + 0x10], eax
nop
mov eax, dword [esi]
mov dword [esp + 0x54], eax
test eax, eax
jle 0x10024815
push 0x14
push 1
call dword [sym.imp.MSVCR90.dll_calloc]
fild dword [esp + 0x5c]
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edi
fstp dword [eax]
mov edx, dword [esi + ebp]
mov dword [eax + 8], edx
mov edx, dword [esi + ecx]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
mov edx, dword [esi + ecx]
push eax
mov dword [eax + 0x10], edx
mov eax, dword [esp + 0x54]
push eax
call sym.leptonlib.dll_lheapAdd
add esp, 0x10
inc edi
add esi, 4
cmp edi, dword [esp + 0x14]
jl 0x100247d0
mov ecx, dword [esp + 0x14]
push 4
push ecx
call dword [sym.imp.MSVCR90.dll_calloc]
mov ebp, eax
add esp, 8
mov dword [esp + 0x38], ebp
test ebp, ebp
je 0x100248a0
xor edi, edi
jmp 0x10024840
mov edx, dword [esp + 0x48]
push edx
call sym.leptonlib.dll_lheapRemove
mov esi, eax
add esp, 4
test esi, esi
je 0x10024883
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push eax
mov eax, dword [esp + 0x5c]
push ecx
push edx
push eax
call sym.leptonlib.dll_pixcmapAddColor
mov ecx, dword [esi + 4]
inc edi
push esi
mov dword [ebp + ecx*4], edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x14
cmp edi, 0xc0
jl 0x10024840
push 2
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x58]
push ecx
call sym.leptonlib.dll_makeRGBToIndexTables
add esp, 0x10
test eax, eax
je 0x100248aa
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x60
ret
mov edx, dword [esp + 0x20]
xor eax, eax
mov ecx, 0x40
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub eax, edx
sub ecx, edx
mov esi, 0x40
lea ebx, [ebx]
mov dword [edx + eax], 0
mov dword [edx], 0
mov dword [edx + ecx], 0
add edx, 4
sub esi, 1
jne 0x100248d0
mov eax, 0xc0
cmp dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
jle 0x100249ac
nop
mov edx, dword [esp + 0x48]
push edx
call sym.leptonlib.dll_lheapRemove
mov edi, eax
add esp, 4
test edi, edi
je 0x100249ac
mov ebp, dword [edi + 8]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x24], ebp
mov eax, dword [edi + 0xc]
mov dword [esp + 0x18], eax
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x1c], ecx
fld dword [edi]
mov esi, dword [edx + ebp*4]
mov edx, dword [esp + 0x50]
or esi, dword [edx + eax*4]
mov eax, dword [esp + 0x54]
or esi, dword [eax + ecx*4]
call fcn.10140710
add dword [ebx + esi*4], eax
imul eax, ebp
mov ecx, dword [esp + 0x2c]
add dword [ecx + esi*4], eax
fld dword [edi]
call fcn.10140710
mov ecx, eax
imul ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add dword [eax + esi*4], ecx
fld dword [edi]
call fcn.10140710
mov ecx, dword [esp + 0x38]
mov edx, eax
imul edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
add dword [eax + esi*4], edx
mov eax, dword [edi + 4]
add esi, 0xc1
push edi
mov dword [ecx + eax*4], esi
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [esp + 0x14]
inc eax
add esp, 4
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x10024900
lea edx, [esp + 0x48]
push 1
push edx
call sym.leptonlib.dll_lheapDestroy
add esp, 8
cmp dword [esp + 0x7c], 0
je 0x10024a24
xor esi, esi
cmp dword [esp + 0x14], esi
jle 0x10024a24
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x78]
cmp dword [edi + esi*4], 0
jne 0x10024a1d
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov edx, ebp
mov eax, esi
call fcn.10020d70
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x5c]
or edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x60]
or edx, dword [ecx + eax*4]
add esp, 0xc
add edx, 0xc1
mov dword [edi + esi*4], edx
inc esi
cmp esi, dword [esp + 0x14]
jl 0x100249d2
mov edx, dword [esp + 0x4c]
mov esi, dword [sym.imp.MSVCR90.dll_free]
push edx
call esi
mov eax, dword [esp + 0x54]
push eax
call esi
mov ecx, dword [esp + 0x5c]
push ecx
call esi
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
sub ecx, esi
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x38]
mov eax, ebx
sub eax, esi
add esp, 0xc
sub ecx, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
jmp 0x10024a74
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + esi]
mov edx, dword [esp + 0x50]
lea ebp, [edx + esi]
test ecx, ecx
jle 0x10024aa2
mov eax, dword [ebp]
cdq
idiv ecx
mov dword [ebp], eax
mov eax, dword [esp + 0x54]
lea edi, [eax + esi]
mov eax, dword [edi]
cdq
idiv ecx
mov dword [edi], eax
mov eax, dword [esi]
cdq
idiv ecx
mov dword [esi], eax
jmp 0x10024abd
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
lea edi, [ecx + esi]
push esi
push edi
push ebp
mov edx, 2
call fcn.10020d70
add esp, 0xc
mov eax, dword [esi]
mov ecx, dword [edi]
mov edx, dword [ebp]
push eax
mov eax, dword [esp + 0x5c]
push ecx
push edx
push eax
call sym.leptonlib.dll_pixcmapAddColor
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x10
add esi, 4
cmp eax, 0x40
mov dword [esp + 0x10], eax
jl 0x10024a70
cmp dword [esp + 0x7c], 0
jne 0x10024ba4
cmp dword [esp + 0x34], 0
mov dword [esp + 0x10], 0
jle 0x10024bcf
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
lea edx, [ecx*4]
lea ecx, [eax*4]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x58], edx
mov dword [esp + 0x74], ecx
lea ecx, [ecx]
xor esi, esi
test eax, eax
jle 0x10024b8b
lea edx, [esp + 0x1c]
push edx
mov edx, dword [edi + esi*4]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
call sym.leptonlib.dll_extractRGBValues
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
or edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
or edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + edx*4]
dec ecx
push ecx
push esi
push ebp
call sym.leptonlib.dll_l_setDataByte
mov eax, dword [esp + 0x44]
inc esi
add esp, 0x1c
cmp esi, eax
jl 0x10024b36
mov ecx, dword [esp + 0x10]
add edi, dword [esp + 0x74]
add ebp, dword [esp + 0x58]
inc ecx
cmp ecx, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
jl 0x10024b30
jmp 0x10024bcf
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push 0x28
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x84]
push edx
push eax
push ecx
call fcn.10020ec0
add esp, 0x1c
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov esi, dword [sym.imp.MSVCR90.dll_free]
push ebx
call esi
mov eax, dword [esp + 0x30]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov edx, dword [esp + 0x3c]
push edx
call esi
mov eax, dword [esp + 0x4c]
push eax
call esi
mov ecx, dword [esp + 0x54]
push ecx
call esi
mov edx, dword [esp + 0x5c]
push edx
call esi
mov eax, dword [esp + 0x88]
add esp, 0x1c
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x60
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x60
ret