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

Disassembly:
sub esp, 0x90
fld dword [0x101439a8]
push ebx
fst dword [esp + 0x7c]
push esi
fstp dword [esp + 0x84]
push edi
fld1
mov edi, edx
fst dword [esp + 0x8c]
mov ebx, eax
fst dword [esp + 0x90]
mov esi, ecx
fst dword [esp + 0x94]
fstp dword [esp + 0x98]
test edi, edi
jne 0x10023cee
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x90
ret
push edi
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 0x20
jne 0x10023ce2
lea eax, [esi - 0x80]
cmp eax, 0x80
ja 0x10023ce2
test ebx, ebx
je 0x10023ce2
push 5
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x70]
push eax
call sym.leptonlib.dll_makeRGBToIndexTables
add esp, 0x10
test eax, eax
jne 0x10023ce2
push ebp
call fcn.100208d0
mov ebp, eax
mov dword [esp + 0x6c], ebp
test ebp, ebp
je 0x10023e2a
push 8
call sym.leptonlib.dll_pixcmapCreate
push 0
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x60]
push edx
push edi
mov dword [esp + 0x48], eax
mov dword [ebx], eax
call sym.leptonlib.dll_pixGetDimensions
mov eax, dword [esp + 0x68]
imul eax, dword [esp + 0x64]
sub esi, dword [esp + 0xb8]
mov dword [esp + 0x54], eax
cdq
sub esi, 0x19
idiv esi
push edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x2c], eax
call sym.leptonlib.dll_pixGetData
push edi
mov esi, eax
call sym.leptonlib.dll_dpixGetRefcount
mov ebx, dword [ebp + 0x14]
xor ebp, ebp
add esp, 0x1c
cmp dword [esp + 0x50], ebp
jle 0x10023e06
add eax, eax
add eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x54]
mov edi, esi
xor esi, esi
test eax, eax
jle 0x10023dfb
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [edi + esi*4]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
push ecx
call sym.leptonlib.dll_extractRGBValues
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + edx*4]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x6c]
or ecx, dword [eax + edx*4]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x74]
or ecx, dword [eax + edx*4]
inc esi
mov eax, dword [ebx + ecx*4]
inc dword [eax + 0xc]
mov eax, dword [esp + 0x64]
add esp, 0x10
cmp esi, eax
jl 0x10023db0
add edi, dword [esp + 0x3c]
inc ebp
cmp ebp, dword [esp + 0x50]
jl 0x10023da6
push 0
call sym.leptonlib.dll_numaCreate
add esp, 4
mov dword [esp + 0x70], eax
test eax, eax
je 0x10023e2a
push 0
call sym.leptonlib.dll_numaCreate
add esp, 4
mov dword [esp + 0x74], eax
test eax, eax
jne 0x10023e37
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x90
ret
mov eax, dword [esp + 0x6c]
lea ebp, [esp + 0x88]
mov edi, 0xc
lea esi, [eax + 0x10]
sub ebp, eax
mov dword [esp + 0x20], 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x80], ebp
mov ecx, dword [esi]
fld dword [esi + ebp]
mov ebx, dword [esi + 4]
fstp dword [esp + 0x84]
mov dword [esp + 0x78], ecx
mov edx, 1
mov ecx, edi
mov eax, edx
shl eax, cl
xor ecx, ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x7c], eax
test eax, eax
jle 0x10024244
mov eax, ebx
add ebx, 8
jmp 0x10023ea0
mov edx, dword [esp + 0x78]
mov esi, dword [edx + ecx*4]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0xa4]
xor ebp, ebp
add edx, edi
mov dword [esp + 0x60], edx
mov dword [esp + 0x44], eax
mov edx, 1
mov edi, dword [eax]
cmp dword [edi + 0x18], edx
jne 0x10023ed2
add dword [esi + 0x14], edx
jmp 0x10024016
fild dword [edi + 0xc]
lea eax, [edi + 0xc]
fild dword [esp + 0x14]
mov dword [esp + 0x4c], eax
fmul dword [esp + 0x84]
fcompp
fnstsw ax
test ah, 0x41
jp 0x10024016
mov dword [edi + 0x18], edx
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0xc]
cmp eax, 0x100
jge 0x10023f54
mov dword [edi + 0x10], eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
inc edx
lea eax, [ebp + ecx*8]
call fcn.10020d70
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
call sym.leptonlib.dll_pixcmapAddColor
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add esp, 0x1c
mov dword [edi], edx
mov dword [edi + 4], eax
jmp 0x10023fa7
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
push edx
call sym.leptonlib.dll_pixcmapGetNearestIndex
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x3c]
push eax
mov dword [edi + 0x10], edx
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x4c]
push edx
push eax
push ecx
call sym.leptonlib.dll_pixcmapGetColor
mov edx, dword [esp + 0x58]
mov dword [edi], edx
mov eax, dword [esp + 0x54]
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x50]
add esp, 0x28
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x38]
inc dword [esi + 0x14]
mov edi, dword [esp + 0x60]
sub eax, dword [edx]
dec ecx
dec edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x60], edi
test ecx, ecx
jle 0x10023fda
cdq
idiv ecx
mov dword [esp + 0x14], eax
jmp 0x10023fef
test edi, edi
jle 0x10023fe7
cdq
idiv edi
mov dword [esp + 0x14], eax
jmp 0x10023fef
mov dword [esp + 0x14], 0xf4240
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x74]
fstp dword [esp]
push ecx
call sym.leptonlib.dll_numaAddNumber
mov ecx, dword [esp + 0x60]
add esp, 8
mov edx, 1
mov eax, dword [esp + 0x44]
add ebp, edx
add eax, 4
cmp ebp, 8
mov dword [esp + 0x44], eax
jl 0x10023ec3
mov eax, dword [esi + 0x14]
test eax, eax
jg 0x10024097
cmp dword [esp + 0x48], 6
je 0x10024097
mov eax, dword [ebx - 8]
mov eax, dword [eax + 0xc]
add dword [esi + 0xc], eax
mov edi, dword [ebx - 4]
mov edi, dword [edi + 0xc]
mov eax, dword [esi + 0xc]
add eax, edi
mov dword [esi + 0xc], eax
mov edi, dword [ebx]
mov edi, dword [edi + 0xc]
add eax, edi
mov dword [esi + 0xc], eax
mov edi, dword [ebx + 4]
mov edi, dword [edi + 0xc]
add eax, edi
mov dword [esi + 0xc], eax
mov edi, dword [ebx + 8]
mov edi, dword [edi + 0xc]
add eax, edi
mov dword [esi + 0xc], eax
mov edi, dword [ebx + 0xc]
mov edi, dword [edi + 0xc]
add eax, edi
mov dword [esi + 0xc], eax
mov edi, dword [ebx + 0x10]
mov edi, dword [edi + 0xc]
add eax, edi
mov dword [esi + 0xc], eax
mov edi, dword [ebx + 0x14]
mov edi, dword [edi + 0xc]
add edi, eax
mov dword [esi + 0xc], edi
jmp 0x1002421e
cmp eax, 8
mov dword [esi + 0x18], edx
jge 0x1002421e
mov eax, dword [ebx - 8]
cmp dword [eax + 0x18], 0
jne 0x100240b2
mov edx, dword [eax + 0xc]
add dword [esi + 0xc], edx
mov eax, dword [ebx - 4]
cmp dword [eax + 0x18], 0
jne 0x100240c1
mov eax, dword [eax + 0xc]
add dword [esi + 0xc], eax
mov eax, dword [ebx]
cmp dword [eax + 0x18], 0
jne 0x100240cf
mov edx, dword [eax + 0xc]
add dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
cmp dword [eax + 0x18], 0
jne 0x100240de
mov eax, dword [eax + 0xc]
add dword [esi + 0xc], eax
mov eax, dword [ebx + 8]
cmp dword [eax + 0x18], 0
jne 0x100240ed
mov edx, dword [eax + 0xc]
add dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x18], 0
jne 0x100240fc
mov eax, dword [eax + 0xc]
add dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
cmp dword [eax + 0x18], 0
jne 0x1002410b
mov edx, dword [eax + 0xc]
add dword [esi + 0xc], edx
mov eax, dword [ebx + 0x14]
cmp dword [eax + 0x18], 0
jne 0x1002411a
mov eax, dword [eax + 0xc]
add dword [esi + 0xc], eax
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0xc]
cmp eax, 0x100
jge 0x1002416f
mov dword [esi + 0x10], eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x2c]
mov eax, ecx
call fcn.10020d70
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
push edi
push ebp
push eax
push ecx
call sym.leptonlib.dll_pixcmapAddColor
mov edx, dword [esp + 0x2c]
add esp, 0x1c
mov dword [esi], edx
mov dword [esi + 4], ebp
mov dword [esi + 8], edi
jmp 0x100241c1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push edi
call sym.leptonlib.dll_pixcmapGetNearestIndex
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x3c]
push edx
mov dword [esi + 0x10], ecx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edx
push edi
call sym.leptonlib.dll_pixcmapGetColor
mov eax, dword [esp + 0x58]
mov dword [esi], eax
mov ecx, dword [esp + 0x54]
mov dword [esi + 4], ecx
mov edx, dword [esp + 0x50]
add esp, 0x28
mov dword [esi + 8], edx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
sub eax, dword [esi + 0xc]
dec ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ecx
test ecx, ecx
jle 0x100241e2
cdq
idiv ecx
mov dword [esp + 0x14], eax
jmp 0x10024200
mov edx, dword [esp + 0xa4]
add ecx, edx
test ecx, ecx
jle 0x100241f8
cdq
idiv ecx
mov dword [esp + 0x14], eax
jmp 0x10024200
mov dword [esp + 0x14], 0xf4240
fild dword [esp + 0x20]
mov eax, dword [esp + 0x74]
push ecx
fstp dword [esp]
push eax
call sym.leptonlib.dll_numaAddNumber
mov ecx, dword [esp + 0x60]
add esp, 8
mov edx, 1
mov eax, dword [esp + 0x44]
add ecx, edx
add ebx, 0x20
cmp ecx, dword [esp + 0x7c]
mov dword [esp + 0x58], ecx
jl 0x10023ea0
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x80]
sub dword [esp + 0x20], edx
sub edi, 3
sub esi, 4
cmp edi, 6
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], edi
jge 0x10023e63
lea ecx, [esp + 0x70]
push ecx
call sym.leptonlib.dll_numaDestroy
lea edx, [esp + 0x78]
push edx
call sym.leptonlib.dll_numaDestroy
mov eax, dword [esp + 0x70]
mov esi, dword [sym.imp.MSVCR90.dll_free]
push eax
call esi
mov ecx, dword [esp + 0x68]
push ecx
call esi
mov edx, dword [esp + 0x74]
push edx
call esi
mov eax, dword [esp + 0x80]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x90
ret