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

Disassembly:
mov edx, dword [esp + 0x18]
sub esp, 0x44
push esi
mov esi, dword [esp + 0x50]
test esi, esi
jne 0x10084562
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
call sym.leptonlib.dll_pixGetColorHistogram
add esp, 0x14
pop esi
add esp, 0x44
ret
test edx, edx
je 0x10084937
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x10084937
mov eax, dword [esp + 0x68]
test eax, eax
je 0x10084937
push ebp
mov ebp, dword [esp + 0x50]
mov dword [eax], 0
mov dword [ecx], 0
mov dword [edx], 0
test ebp, ebp
je 0x100845d6
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x40]
push ecx
push ebp
call sym.leptonlib.dll_pixGetDimensions
push ebp
call sym.leptonlib.dll_pixGetColormap
add esp, 0x14
mov dword [esp + 0x2c], eax
test eax, eax
je 0x100845e1
mov eax, dword [esp + 0x10]
cmp eax, 2
je 0x100845e8
cmp eax, 4
je 0x100845e8
cmp eax, 8
je 0x100845e8
mov eax, 1
pop ebp
pop esi
add esp, 0x44
ret
cmp dword [esp + 0x10], 0x20
jmp 0x100845d4
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
call sym.leptonlib.dll_pixGetDimensions
mov eax, 1
add esp, 0x10
cmp dword [esp + 0x48], eax
jne 0x100845db
cmp dword [esp + 0x60], eax
jl 0x100845db
push ebx
push edi
push 0x100
call sym.leptonlib.dll_numaCreate
push 0x100
mov esi, eax
call sym.leptonlib.dll_numaCreate
push 0x100
mov edi, eax
call sym.leptonlib.dll_numaCreate
push 0x100
push esi
mov ebx, eax
call sym.leptonlib.dll_numaSetCount
push 0x100
push edi
call sym.leptonlib.dll_numaSetCount
push 0x100
push ebx
call sym.leptonlib.dll_numaSetCount
push 0
push esi
call sym.leptonlib.dll_numaGetFArray
push 0
push edi
mov dword [esp + 0x78], eax
call sym.leptonlib.dll_numaGetFArray
push 0
push ebx
mov dword [esp + 0x84], eax
call sym.leptonlib.dll_numaGetFArray
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xac]
mov dword [edx], esi
mov dword [eax], edi
push ebp
mov dword [ecx], ebx
call sym.leptonlib.dll_pixGetData
add esp, 0x40
push ebp
mov edi, eax
call sym.leptonlib.dll_dpixGetRefcount
mov ebx, dword [esp + 0x60]
push ebx
mov esi, eax
call sym.leptonlib.dll_pixGetData
push ebx
mov ebp, eax
call sym.leptonlib.dll_dpixGetRefcount
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x5c], ecx
cmp dword [esp + 0x34], ecx
je 0x1008480f
cmp dword [esp + 0x14], ecx
jle 0x1008492d
mov ebx, dword [esp + 0x68]
imul eax, ebx
mov ecx, dword [esp + 0x64]
add eax, eax
add eax, eax
mov dword [esp + 0x30], eax
mov eax, esi
imul eax, ebx
add eax, eax
add eax, eax
imul esi, ecx
mov edx, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebp
lea esi, [edi + esi*4]
nop
test edx, edx
jl 0x100847e1
cmp edx, dword [esp + 0x3c]
jge 0x100847e1
xor ebp, ebp
cmp dword [esp + 0x10], ebp
jle 0x100847e1
mov edi, dword [esp + 0x60]
test edi, edi
jl 0x100847cb
cmp edi, dword [esp + 0x40]
jge 0x100847cb
mov edx, dword [esp + 0x1c]
push ebp
push edx
call sym.leptonlib.dll_l_getDataBit
add esp, 8
test eax, eax
je 0x100847cb
mov eax, dword [esp + 0x18]
push edi
push esi
cmp eax, 8
jne 0x10084768
call sym.leptonlib.dll_l_getDataByte
jmp 0x10084779
cmp eax, 4
jne 0x10084774
call sym.leptonlib.dll_l_getDataQbit
jmp 0x10084779
call sym.leptonlib.dll_l_getDataDibit
add esp, 8
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x28]
push ecx
push eax
push edx
call sym.leptonlib.dll_pixcmapGetColor
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
fld dword [ecx + eax*4]
add esp, 0x14
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [ecx + eax*4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
fld dword [ecx + eax*4]
fadd st(1)
fstp dword [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x4c]
fadd dword [ecx + eax*4]
fstp dword [ecx + eax*4]
add ebp, ebx
add edi, ebx
cmp ebp, dword [esp + 0x10]
jl 0x10084732
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x30]
add dword [esp + 0x1c], edi
add ecx, ebx
add edx, ebx
add esi, eax
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x38], edx
jl 0x10084710
pop edi
pop ebx
pop ebp
xor eax, eax
pop esi
add esp, 0x44
ret
cmp dword [esp + 0x14], ecx
jle 0x1008492d
mov ebx, dword [esp + 0x68]
imul eax, ebx
mov ecx, dword [esp + 0x64]
add eax, eax
add eax, eax
mov dword [esp + 0x30], eax
mov eax, esi
imul eax, ebx
add eax, eax
add eax, eax
imul esi, ecx
lea edi, [edi + esi*4]
mov edx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x38], edi
lea ecx, [ecx]
test edx, edx
jl 0x10084901
cmp edx, dword [esp + 0x3c]
jge 0x10084901
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x10084901
mov eax, dword [esp + 0x60]
lea ebp, [ebx*4]
lea edi, [edi + eax*4]
lea esp, [esp]
mov ecx, dword [esp + 0x60]
lea eax, [esi + ecx]
test eax, eax
jl 0x100848ef
cmp eax, dword [esp + 0x40]
jge 0x100848ef
mov edx, dword [esp + 0x1c]
push esi
push edx
call sym.leptonlib.dll_l_getDataBit
add esp, 8
test eax, eax
je 0x100848ef
lea eax, [esp + 0x28]
push eax
mov eax, dword [edi]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
call sym.leptonlib.dll_extractRGBValues
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x54]
fld dword [ecx + eax*4]
add esp, 0x10
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [ecx + eax*4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
fld dword [ecx + eax*4]
fadd st(1)
fstp dword [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x4c]
fadd dword [ecx + eax*4]
fstp dword [ecx + eax*4]
add esi, ebx
add edi, ebp
cmp esi, dword [esp + 0x10]
jl 0x10084880
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
add dword [esp + 0x1c], esi
add ecx, ebx
add edi, eax
add edx, ebx
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
jl 0x10084850
pop edi
pop ebx
pop ebp
xor eax, eax
pop esi
add esp, 0x44
ret
mov eax, 1
pop esi
add esp, 0x44
ret