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

Disassembly:
sub esp, 0x90
push esi
mov esi, dword [esp + 0x98]
test esi, esi
jne 0x10024d3c
xor eax, eax
pop esi
add esp, 0x90
ret
push esi
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 0x20
jne 0x10024d32
cmp dword [esp + 0x9c], 0
je 0x10024d32
push 5
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x48]
push edx
call sym.leptonlib.dll_makeRGBToIndexTables
add esp, 0x10
test eax, eax
jne 0x10024d32
push ebp
push edi
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
call sym.leptonlib.dll_pixGetDimensions
push esi
call sym.leptonlib.dll_pixGetData
push esi
mov edi, eax
call sym.leptonlib.dll_dpixGetRefcount
mov edx, dword [esp + 0x58]
push 8
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
push edx
push eax
call sym.leptonlib.dll_pixCreate
mov ebp, eax
add esp, 0x24
mov dword [esp + 0x98], ebp
test ebp, ebp
jne 0x10024dc1
pop edi
pop ebp
pop esi
add esp, 0x90
ret
push ebx
push esi
push ebp
call sym.leptonlib.dll_pixCopyResolution
push esi
push ebp
call sym.leptonlib.dll_pixCopyInputFormat
push ebp
call sym.leptonlib.dll_pixGetData
mov ebx, eax
push ebp
mov dword [esp + 0x88], ebx
call sym.leptonlib.dll_dpixGetRefcount
mov ebp, dword [esp + 0x50]
add esp, 0x18
cmp dword [esp + 0xac], 0
mov dword [esp + 0x90], eax
jne 0x10024ece
cmp dword [esp + 0x44], 0
mov dword [esp + 0x20], 0
jle 0x10025608
mov edx, dword [esp + 0x28]
lea ecx, [eax*4]
lea eax, [edx*4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], ecx
xor esi, esi
test eax, eax
jle 0x10024eae
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [edi + esi*4]
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x60]
push eax
push ecx
call sym.leptonlib.dll_extractRGBValues
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0xc0]
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x64]
or eax, dword [edx + ecx*4]
mov ecx, dword [esp + 0x84]
or eax, dword [ebp + ecx*4]
push eax
call fcn.100242b0
mov edx, dword [esp + 0x3c]
push edx
push esi
push ebx
call sym.leptonlib.dll_l_setDataByte
mov eax, dword [esp + 0x44]
inc esi
add esp, 0x34
cmp esi, eax
jl 0x10024e38
mov ecx, dword [esp + 0x20]
add edi, dword [esp + 0x28]
add ebx, dword [esp + 0x70]
inc ecx
cmp ecx, dword [esp + 0x44]
mov dword [esp + 0x20], ecx
jl 0x10024e32
jmp 0x10025608
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCR90.dll_calloc]
push 1
push eax
call esi
mov ecx, dword [esp + 0x18]
mov ebp, eax
push 1
push ecx
mov dword [esp + 0x30], ebp
call esi
mov edx, dword [esp + 0x20]
mov edi, eax
push 1
push edx
mov dword [esp + 0x40], edi
call esi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
push 4
push eax
call esi
mov ecx, dword [esp + 0x30]
push 4
push ecx
mov dword [esp + 0x64], eax
call esi
mov edx, dword [esp + 0x38]
push 4
push edx
mov dword [esp + 0x60], eax
call esi
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x40]
push 4
push eax
call esi
mov ecx, dword [esp + 0x48]
push 4
push ecx
mov dword [esp + 0x5c], eax
call esi
mov edx, dword [esp + 0x50]
add esp, 0x40
mov ebx, eax
push 4
push edx
mov dword [esp + 0x70], ebx
call esi
add esp, 8
mov esi, eax
mov dword [esp + 0x18], esi
test ebp, ebp
je 0x10025634
test edi, edi
je 0x10025634
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10025634
cmp dword [esp + 0x3c], 0
je 0x10025634
cmp dword [esp + 0x30], 0
je 0x10025634
cmp dword [esp + 0x4c], 0
je 0x10025634
cmp dword [esp + 0x1c], 0
je 0x10025634
test ebx, ebx
je 0x10025634
test esi, esi
je 0x10025634
push eax
mov eax, dword [esp + 0xa8]
push edi
push ebp
push 0
push eax
call sym.leptonlib.dll_pixGetRGBLine
add esp, 0x14
cmp dword [esp + 0x10], 0
jle 0x10025017
mov edx, dword [esp + 0x1c]
sub edx, ebx
sub esi, ebx
mov ecx, ebx
mov ebx, ebp
mov ebp, dword [esp + 0x34]
sub ebx, edi
mov eax, edi
sub ebp, edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x2c], edi
lea esp, [esp]
movzx edi, byte [eax + ebx]
shl edi, 6
mov dword [edx + ecx], edi
movzx edi, byte [eax]
shl edi, 6
mov dword [ecx], edi
movzx edi, byte [eax + ebp]
shl edi, 6
mov dword [esi + ecx], edi
inc eax
add ecx, 4
sub dword [esp + 0x2c], 1
jne 0x10024ff0
mov eax, dword [esp + 0x44]
lea ecx, [eax - 1]
xor edi, edi
test ecx, ecx
jle 0x100254e7
mov edx, dword [esp + 0x70]
mov dword [esp + 0x2c], edx
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
add esi, esi
add esi, esi
push esi
push ebp
push eax
call sub.MSVCR90.dll_memcpy
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x3c]
push esi
push ebx
push ecx
call sub.MSVCR90.dll_memcpy
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x64]
push esi
push edx
push eax
call sub.MSVCR90.dll_memcpy
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0xc8]
push ecx
push esi
push edx
inc edi
push edi
push eax
mov dword [esp + 0xbc], edi
call sym.leptonlib.dll_pixGetRGBLine
mov edi, dword [esp + 0x48]
add esp, 0x38
test edi, edi
jle 0x100250eb
mov edx, ebp
mov ebp, dword [esp + 0x18]
mov ecx, ebx
sub edx, ebx
sub ebp, ebx
mov ebx, dword [esp + 0x20]
sub ebx, esi
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x34]
mov eax, esi
sub ebx, esi
mov dword [esp + 0x24], edi
lea ebx, [ebx]
mov esi, dword [esp + 0x5c]
movzx esi, byte [eax + esi]
shl esi, 6
mov dword [ecx + edx], esi
movzx esi, byte [eax]
shl esi, 6
mov dword [ecx], esi
movzx esi, byte [eax + ebx]
shl esi, 6
mov dword [ecx + ebp], esi
inc eax
add ecx, 4
sub dword [esp + 0x24], 1
jne 0x100250c0
lea ecx, [edi - 1]
mov dword [esp + 0x24], 0
test ecx, ecx
jle 0x1002542f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x68]
mov edi, dword [esp + 0x4c]
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x74], ecx
mov ecx, ebx
sub ecx, eax
mov dword [esp + 0x8c], ecx
mov ecx, ebp
sub ecx, eax
mov dword [esp + 0x98], ecx
lea esi, [eax + 4]
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov eax, edx
sub eax, ebx
mov dword [esp + 0x94], eax
mov eax, ebp
sub eax, ebx
mov dword [esp + 0x7c], eax
mov eax, edi
sub eax, ebx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
sub eax, ebx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x80], eax
mov edx, dword [esp + 0x94]
mov ebp, dword [edx + ebx]
mov eax, ebp
cdq
and edx, 0x3f
add eax, edx
mov ecx, eax
mov eax, dword [ebx]
cdq
and edx, 0x3f
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + ebx]
cdq
and edx, 0x3f
add eax, edx
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xb8]
sar ecx, 6
push edx
mov edx, dword [esp + 0x5c]
sar eax, 6
mov dword [esp + 0x6c], ecx
sar edi, 6
mov dword [esp + 0x80], edi
mov dword [esp + 0x74], eax
mov ecx, dword [edx + ecx*4]
mov edx, dword [esp + 0x54]
or ecx, dword [edx + edi*4]
mov edx, dword [esp + 0x4c]
or ecx, dword [edx + eax*4]
push ecx
call fcn.100242b0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
call sym.leptonlib.dll_l_setDataByte
mov ecx, dword [esp + 0x74]
mov eax, ebp
cdq
and edx, 7
add eax, edx
sar eax, 3
lea edx, [ecx*8]
add esp, 0x24
sub eax, edx
je 0x1002529a
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + esi]
mov edi, dword [esi - 4]
lea edx, [eax + eax*2]
add ecx, edx
add edi, edx
mov edx, dword [esi]
lea ebp, [edx + eax*2]
test eax, eax
jle 0x1002526e
cmp ecx, 0x3fff
jle 0x10025246
mov ecx, 0x3fff
cmp edi, 0x3fff
mov eax, dword [esp + 0x74]
mov dword [eax + esi], ecx
jle 0x1002525a
mov edi, 0x3fff
cmp ebp, 0x3fff
mov dword [esi - 4], edi
jle 0x1002526a
mov ebp, 0x3fff
mov dword [esi], ebp
jmp 0x1002529a
jge 0x1002529a
xor edx, edx
test ecx, ecx
mov eax, dword [esp + 0x74]
setl dl
dec edx
and edx, ecx
xor ecx, ecx
test edi, edi
setl cl
mov dword [eax + esi], edx
xor edx, edx
dec ecx
and ecx, edi
test ebp, ebp
setl dl
mov dword [esi - 4], ecx
dec edx
and edx, ebp
mov dword [esi], edx
mov eax, dword [ebx]
mov ecx, dword [esp + 0x64]
cdq
and edx, 7
add eax, edx
sar eax, 3
lea edx, [ecx*8]
sub eax, edx
je 0x10025353
mov ecx, dword [esp + 0x8c]
mov edi, dword [esp + 0x7c]
mov ecx, dword [ecx + esi]
mov edi, dword [edi + ebx]
lea edx, [eax + eax*2]
add ecx, edx
add edi, edx
mov edx, dword [esp + 0x98]
mov ebp, dword [edx + esi]
lea ebp, [ebp + eax*2]
test eax, eax
jle 0x1002531f
cmp ecx, 0x3fff
jle 0x100252ef
mov ecx, 0x3fff
cmp edi, 0x3fff
mov eax, dword [esp + 0x8c]
mov dword [eax + esi], ecx
jle 0x10025306
mov edi, 0x3fff
cmp ebp, 0x3fff
mov ecx, dword [esp + 0x7c]
mov dword [ecx + ebx], edi
jle 0x1002531a
mov ebp, 0x3fff
mov dword [edx + esi], ebp
jmp 0x10025353
jge 0x10025353
xor eax, eax
test ecx, ecx
setl al
dec eax
and eax, ecx
mov ecx, dword [esp + 0x8c]
mov dword [ecx + esi], eax
mov ecx, dword [esp + 0x7c]
xor eax, eax
test edi, edi
setl al
dec eax
and eax, edi
mov dword [ecx + ebx], eax
xor eax, eax
test ebp, ebp
setl al
dec eax
and eax, ebp
mov dword [edx + esi], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + ebx]
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x54]
sar eax, 3
lea ecx, [edx*8]
sub eax, ecx
je 0x10025411
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x80]
mov ecx, dword [ecx + esi]
mov edi, dword [edi + ebx]
lea edx, [eax + eax*2]
add ecx, edx
add edi, edx
mov edx, dword [esp + 0x88]
mov ebp, dword [edx + esi]
lea ebp, [ebp + eax*2]
test eax, eax
jle 0x100253dd
cmp ecx, 0x3fff
jle 0x100253ad
mov ecx, 0x3fff
cmp edi, 0x3fff
mov eax, dword [esp + 0x78]
mov dword [eax + esi], ecx
jle 0x100253c1
mov edi, 0x3fff
cmp ebp, 0x3fff
mov ecx, dword [esp + 0x80]
mov dword [ecx + ebx], edi
jle 0x100253d8
mov ebp, 0x3fff
mov dword [edx + esi], ebp
jmp 0x10025411
jge 0x10025411
xor eax, eax
test ecx, ecx
setl al
dec eax
and eax, ecx
mov ecx, dword [esp + 0x78]
mov dword [ecx + esi], eax
mov ecx, dword [esp + 0x80]
xor eax, eax
test edi, edi
setl al
dec eax
and eax, edi
mov dword [ecx + ebx], eax
xor eax, eax
test ebp, ebp
setl al
dec eax
and eax, ebp
mov dword [edx + esi], eax
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
inc eax
lea ecx, [edi - 1]
add esi, 4
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x10025170
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + edi*4 - 4]
cdq
and edx, 0x3f
add eax, edx
mov ecx, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + edi*4 - 4]
cdq
and edx, 0x3f
add eax, edx
mov edx, dword [esp + 0x4c]
mov esi, eax
mov eax, dword [edx + edi*4 - 4]
cdq
and edx, 0x3f
add eax, edx
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xb8]
sar ecx, 6
push edx
mov edx, dword [esp + 0x5c]
sar eax, 6
mov dword [esp + 0x6c], ecx
sar esi, 6
mov dword [esp + 0x80], esi
mov dword [esp + 0x74], eax
mov ecx, dword [edx + ecx*4]
mov edx, dword [esp + 0x54]
or ecx, dword [edx + esi*4]
mov edx, dword [esp + 0x4c]
or ecx, dword [edx + eax*4]
push ecx
call fcn.100242b0
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
push eax
dec edi
push edi
push esi
call sym.leptonlib.dll_l_setDataByte
mov eax, dword [esp + 0xb4]
mov edi, dword [esp + 0xa8]
add eax, eax
add eax, eax
add esi, eax
mov eax, dword [esp + 0x68]
lea ecx, [eax - 1]
add esp, 0x24
cmp edi, ecx
mov dword [esp + 0x2c], esi
jl 0x10025030
mov edx, dword [esp + 0x70]
dec eax
imul eax, dword [esp + 0x90]
xor ebx, ebx
cmp dword [esp + 0x10], ebx
lea eax, [edx + eax*4]
mov dword [esp + 0x88], eax
jle 0x100255b9
mov esi, dword [esp + 0x68]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub ebp, esi
sub eax, esi
mov dword [esp + 0x84], eax
mov eax, dword [esi + ebp]
cdq
and edx, 0x3f
add eax, edx
mov ecx, eax
mov eax, dword [esi]
cdq
and edx, 0x3f
add eax, edx
mov edx, dword [esp + 0x84]
mov edi, eax
mov eax, dword [esi + edx]
cdq
and edx, 0x3f
add eax, edx
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xb8]
sar ecx, 6
push edx
mov edx, dword [esp + 0x5c]
sar eax, 6
mov dword [esp + 0x6c], ecx
sar edi, 6
mov dword [esp + 0x80], edi
mov dword [esp + 0x74], eax
mov ecx, dword [edx + ecx*4]
mov edx, dword [esp + 0x54]
or ecx, dword [edx + edi*4]
mov edx, dword [esp + 0x4c]
or ecx, dword [edx + eax*4]
push ecx
call fcn.100242b0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xa0]
push eax
push ebx
push ecx
call sym.leptonlib.dll_l_setDataByte
inc ebx
add esp, 0x24
add esi, 4
cmp ebx, dword [esp + 0x10]
jl 0x10025521
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.MSVCR90.dll_free]
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
call esi
mov ecx, dword [esp + 0x3c]
push ecx
call esi
mov edx, dword [esp + 0x48]
push edx
call esi
mov eax, dword [esp + 0x40]
push eax
call esi
mov ecx, dword [esp + 0x60]
push ecx
call esi
mov edx, dword [esp + 0x34]
push edx
call esi
mov eax, dword [esp + 0x84]
push eax
call esi
mov ecx, dword [esp + 0x38]
push ecx
call esi
mov ebp, dword [esp + 0x5c]
add esp, 0x24
mov edx, dword [esp + 0x48]
mov esi, dword [sym.imp.MSVCR90.dll_free]
push edx
call esi
mov eax, dword [esp + 0x44]
push eax
call esi
push ebp
call esi
mov eax, dword [esp + 0xa8]
add esp, 0xc
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x90
ret
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x90
ret