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

Disassembly:
sub esp, 0x7c
push esi
mov esi, dword [esp + 0x84]
test esi, esi
jne 0x100aa056
xor eax, eax
pop esi
add esp, 0x7c
ret
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call sym.leptonlib.dll_pixGetDimensions
add esp, 0x10
cmp dword [esp + 0x60], 0x20
je 0x100aa082
push esi
call sym.leptonlib.dll_pixGetColormap
add esp, 4
test eax, eax
je 0x100aa04f
push ebx
push ebp
push edi
mov edi, dword [esp + 0x98]
test edi, edi
je 0x100aa0a7
push edi
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 8
je 0x100aa0d3
xor edi, edi
mov dword [esp + 0x98], edi
fldz
fld dword [esp + 0x9c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x100aa0c8
fld1
fcompp
fnstsw ax
test ah, 5
jp 0x100aa0d3
jmp 0x100aa0ca
fstp st(0)
fld1
fstp dword [esp + 0x9c]
fldz
mov eax, dword [esp + 0x28]
fld dword [esp + 0x94]
mov ebx, dword [esp + 0x2c]
fcom st(1)
mov dword [esp + 0x60], eax
mov ebp, 1
mov dword [esp + 0x48], ebp
fnstsw ax
fstp st(1)
test ah, 5
jp 0x100aa102
fmul qword [0x101433c0]
fcomp qword [0x10148160]
push esi
fnstsw ax
test ah, 5
jp 0x100aa121
call sym.leptonlib.dll_boxClone
add esp, 4
mov dword [esp + 0x68], eax
jmp 0x100aa7c8
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
mov dword [esp + 0x4c], eax
cmp eax, 1
jne 0x100aa13b
mov ebp, 3
mov dword [esp + 0x48], ebp
push esi
call sym.leptonlib.dll_pixGetColormap
add esp, 4
test eax, eax
je 0x100aa15a
cmp ebp, 1
jne 0x100aa15a
push 3
push esi
call sym.leptonlib.dll_pixRemoveColormap
add esp, 8
jmp 0x100aa163
push esi
call sym.leptonlib.dll_boxClone
add esp, 4
push eax
mov dword [esp + 0x54], eax
call sym.leptonlib.dll_pixGetColormap
add esp, 4
test eax, eax
je 0x100aa184
test ebx, ebx
jne 0x100aa184
push ebx
push 1
push eax
call sym.leptonlib.dll_pixcmapAddBlackOrWhite
add esp, 0xc
mov ebp, dword [esp + 0x50]
test ebp, ebp
jne 0x100aa193
xor eax, eax
jmp 0x100aa340
fldz
fld dword [esp + 0x94]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x100aa1ad
fmul qword [0x101433c0]
fcomp qword [0x10148160]
fnstsw ax
test ah, 5
jp 0x100aa1c8
push ebp
call sym.leptonlib.dll_boxClone
add esp, 4
jmp 0x100aa340
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
push ebp
call sym.leptonlib.dll_pixGetDimensions
mov eax, dword [esp + 0x70]
mov ecx, ebx
imul ecx, ebx
mov edx, eax
imul edx, eax
mov dword [esp + 0x78], ecx
add esp, 0x10
fild dword [esp + 0x68]
mov dword [esp + 0x68], edx
fild dword [esp + 0x68]
faddp st(1)
call sub.MSVCR90.dll__CIsqrt
fadd qword [0x10142230]
call fcn.10140710
cmp dword [esp + 0x20], eax
jl 0x100aa22a
cmp dword [esp + 0x24], eax
jl 0x100aa22a
push ebp
call sym.leptonlib.dll_boxClone
add esp, 4
jmp 0x100aa340
fld dword [esp + 0x94]
call sub.MSVCR90.dll__CIcos
fstp qword [esp + 0x78]
fld dword [esp + 0x94]
call sub.MSVCR90.dll__CIsin
fild dword [esp + 0x20]
fild dword [esp + 0x24]
fld st(1)
fmul qword [esp + 0x78]
fld st(1)
fmul st(4)
fld st(1)
fsub st(1)
fldz
fcom st(1)
fnstsw ax
fxch st(1)
test ah, 0x41
jne 0x100aa26f
fmul qword [0x101433c0]
call fcn.10140710
fxch st(2)
fchs
mov edi, eax
fsubrp st(1)
fcom st(1)
fnstsw ax
test ah, 5
jp 0x100aa28b
fmul qword [0x101433c0]
call fcn.10140710
fxch st(2)
fmulp st(3)
mov esi, eax
fmul qword [esp + 0x78]
fld st(0)
fadd st(3)
fcom st(2)
fnstsw ax
test ah, 5
jp 0x100aa2ad
fmul qword [0x101433c0]
call fcn.10140710
fsubrp st(2)
mov ebx, eax
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x100aa2c5
fmul qword [0x101433c0]
call fcn.10140710
cmp edi, esi
jg 0x100aa2d0
mov edi, esi
cmp ebx, eax
jg 0x100aa2d6
mov ebx, eax
mov eax, dword [esp + 0x5c]
push eax
push ebx
push edi
call sym.leptonlib.dll_pixCreate
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100aa340
push ebp
push esi
call sym.leptonlib.dll_pixCopyResolution
push ebp
push esi
call sym.leptonlib.dll_pixCopyColormap
push ebp
push esi
call sym.leptonlib.dll_pixCopyText
mov eax, edi
sub eax, dword [esp + 0x38]
push 1
cdq
sub eax, edx
mov edi, eax
mov eax, ebx
sub eax, dword [esp + 0x40]
push esi
cdq
sub eax, edx
mov ebx, eax
sar edi, 1
sar ebx, 1
call sym.leptonlib.dll_pixSetBlackOrWhite
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push 0
push 0
push ebp
push 0x18
push ecx
push edx
push ebx
push edi
push esi
call sym.leptonlib.dll_pixRasterop
add esp, 0x44
mov eax, esi
push eax
mov dword [esp + 0x58], eax
call sym.leptonlib.dll_numaGetRefcount
mov esi, dword [esp + 0x4c]
add esp, 4
mov dword [esp + 0x4c], eax
cmp esi, 1
jne 0x100aa370
cmp eax, 8
jge 0x100aa370
mov eax, dword [esp + 0x54]
push 0
push eax
call sym.leptonlib.dll_pixConvertTo8
add esp, 8
jmp 0x100aa37d
mov ecx, dword [esp + 0x54]
push ecx
call sym.leptonlib.dll_boxClone
add esp, 4
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x7c]
push edx
push eax
mov dword [esp + 0x24], eax
call sym.leptonlib.dll_pixGetDimensions
add esp, 0x10
cmp esi, 2
jne 0x100aa3ba
fld dword [esp + 0x94]
mov eax, dword [esp + 0x14]
push 1
push ecx
fstp dword [esp]
push eax
call sym.leptonlib.dll_pixRotateShearCenter
jmp 0x100aa797
cmp esi, 3
jne 0x100aa761
mov eax, dword [esp + 0x70]
mov ebp, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x74]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], eax
test ebp, ebp
jne 0x100aa3ec
xor esi, esi
jmp 0x100aa79c
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
push ebp
call sym.leptonlib.dll_pixGetDimensions
mov eax, dword [esp + 0x54]
add esp, 0x10
cmp eax, 1
je 0x100aa42d
cmp eax, 2
je 0x100aa42d
cmp eax, 4
je 0x100aa42d
cmp eax, 8
je 0x100aa42d
cmp eax, 0x10
je 0x100aa42d
cmp eax, 0x20
je 0x100aa42d
xor esi, esi
jmp 0x100aa79c
fldz
fld dword [esp + 0x94]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x100aa447
fmul qword [0x101433c0]
fcomp qword [0x10148160]
push ebp
fnstsw ax
test ah, 5
jp 0x100aa462
call sym.leptonlib.dll_boxClone
add esp, 4
jmp 0x100aa79a
call sym.leptonlib.dll_pixCreateTemplateNoInit
mov esi, eax
add esp, 4
mov dword [esp + 0x68], esi
test esi, esi
je 0x100aa79c
push 1
push esi
call sym.leptonlib.dll_pixSetBlackOrWhite
fld dword [esp + 0x9c]
add esp, 8
call sub.MSVCR90.dll__CIsin
fstp dword [esp + 0x34]
fld dword [esp + 0x94]
call sub.MSVCR90.dll__CIcos
fstp dword [esp + 0x10]
push esi
call sym.leptonlib.dll_pixGetData
push esi
mov edi, eax
call sym.leptonlib.dll_dpixGetRefcount
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
dec ecx
dec edx
push 0
push ebp
mov ebx, eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
call sym.leptonlib.dll_pixGetLinePtrs
add esp, 0x10
cmp dword [esp + 0x44], 1
mov ebp, eax
mov dword [esp + 0x20], 0
jne 0x100aa5dc
cmp dword [esp + 0x24], 0
jle 0x100aa5c9
mov eax, dword [esp + 0x38]
fld dword [esp + 0x10]
lea ecx, [ebx*4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], ecx
mov ebx, edi
xor edi, edi
cmp dword [esp + 0x1c], edi
jle 0x100aa5ac
fild dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x3c], edx
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fmul dword [esp + 0x34]
fstp qword [esp + 0x84]
fild dword [esp + 0x3c]
fstp dword [esp + 0x78]
fld dword [esp + 0x78]
fld st(0)
fmul st(2)
fadd qword [esp + 0x84]
call fcn.10140710
mov esi, dword [esp + 0x30]
sub esi, eax
js 0x100aa599
cmp esi, dword [esp + 0x5c]
jg 0x100aa599
fmul dword [esp + 0x34]
fld dword [esp + 0x58]
fmulp st(2)
fsubrp st(1)
call fcn.10140710
add eax, dword [esp + 0x38]
js 0x100aa59d
cmp eax, dword [esp + 0x60]
jg 0x100aa59d
mov eax, dword [ebp + eax*4]
push esi
push eax
call sym.leptonlib.dll_l_getDataBit
add esp, 8
test eax, eax
je 0x100aa59d
push edi
push ebx
call sym.leptonlib.dll_l_setDataBit
add esp, 8
jmp 0x100aa59d
fstp st(0)
fstp st(0)
dec dword [esp + 0x3c]
fld dword [esp + 0x10]
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x100aa534
mov eax, dword [esp + 0x20]
add ebx, dword [esp + 0x48]
dec dword [esp + 0x40]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jl 0x100aa509
fstp st(0)
push ebp
call dword [sym.imp.MSVCR90.dll_free]
mov esi, dword [esp + 0x6c]
add esp, 4
jmp 0x100aa79c
cmp dword [esp + 0x24], 0
jle 0x100aa755
mov ecx, dword [esp + 0x38]
fld dword [esp + 0x10]
lea edx, [ebx*4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], edx
mov ebx, edi
xor edi, edi
cmp dword [esp + 0x1c], edi
jle 0x100aa734
fild dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fmul dword [esp + 0x34]
fstp qword [esp + 0x84]
jmp 0x100aa630
fild dword [esp + 0x40]
fstp dword [esp + 0x78]
fld dword [esp + 0x78]
fld st(0)
fmul st(2)
fadd qword [esp + 0x84]
call fcn.10140710
mov esi, dword [esp + 0x30]
sub esi, eax
js 0x100aa71d
cmp esi, dword [esp + 0x5c]
jg 0x100aa71d
fmul dword [esp + 0x34]
fld dword [esp + 0x58]
fmulp st(2)
fsubrp st(1)
call fcn.10140710
add eax, dword [esp + 0x38]
js 0x100aa721
cmp eax, dword [esp + 0x60]
jg 0x100aa721
mov ecx, dword [esp + 0x44]
add ecx, 0xfffffffe
cmp ecx, 0x1e
ja case.0x100aa69e.3
movzx ecx, byte [ecx + 0x100aab0c]
jmp dword [ecx*4 + 0x100aaaf4]
mov edx, dword [ebp + eax*4]
push esi
push edx
call sym.leptonlib.dll_l_getDataByte
push eax
push edi
push ebx
call sym.leptonlib.dll_l_setDataByte
add esp, 0x14
jmp 0x100aa721
mov eax, dword [ebp + eax*4]
push esi
push eax
call sym.leptonlib.dll_l_getDataFourBytes
push eax
push edi
push ebx
call sym.leptonlib.dll_l_setDataFourBytes
add esp, 0x14
jmp 0x100aa721
mov ecx, dword [ebp + eax*4]
push esi
push ecx
call sym.leptonlib.dll_l_getDataDibit
push eax
push edi
push ebx
call sym.leptonlib.dll_l_setDataDibit
add esp, 0x14
jmp 0x100aa721
mov edx, dword [ebp + eax*4]
push esi
push edx
call sym.leptonlib.dll_l_getDataQbit
push eax
push edi
push ebx
call sym.leptonlib.dll_l_setDataQbit
add esp, 0x14
jmp 0x100aa721
mov eax, dword [ebp + eax*4]
push esi
push eax
call sym.leptonlib.dll_l_getDataTwoBytes
push eax
push edi
push ebx
call sym.leptonlib.dll_l_setDataTwoBytes
add esp, 0x14
jmp 0x100aa721
fstp st(0)
fstp st(0)
dec dword [esp + 0x40]
fld dword [esp + 0x10]
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x100aa630
mov eax, dword [esp + 0x20]
add ebx, dword [esp + 0x48]
dec dword [esp + 0x3c]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jl 0x100aa600
mov esi, dword [esp + 0x68]
fstp st(0)
push ebp
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
jmp 0x100aa79c
cmp dword [esp + 0x4c], 8
fld dword [esp + 0x94]
jne 0x100aa784
push 0xff
push ecx
mov ecx, dword [esp + 0x1c]
fstp dword [esp]
push ecx
call sym.leptonlib.dll_pixRotateAMGray
jmp 0x100aa797
mov edx, dword [esp + 0x14]
push 0xffffff00
push ecx
fstp dword [esp]
push edx
call sym.leptonlib.dll_pixRotateAMColor
add esp, 0xc
mov esi, eax
lea eax, [esp + 0x50]
push eax
call sym.leptonlib.dll_pixDestroy
lea ecx, [esp + 0x58]
push ecx
call sym.leptonlib.dll_pixDestroy
lea edx, [esp + 0x1c]
push edx
call sym.leptonlib.dll_pixDestroy
mov edi, dword [esp + 0xa4]
add esp, 0xc
mov dword [esp + 0x68], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
test edi, edi
jne 0x100aa84d
push 8
push eax
push ecx
call sym.leptonlib.dll_pixCreate
fld1
fld dword [esp + 0xa8]
mov ecx, eax
fucom st(1)
add esp, 0xc
mov dword [esp + 0x18], ecx
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x100aa80f
push ecx
fstp st(0)
call sym.leptonlib.dll_pixSetAll
mov ecx, dword [esp + 0x1c]
add esp, 4
jmp 0x100aa860
fmul qword [0x10142238]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x78], eax
fldcw word [esp + 0x78]
fistp qword [esp + 0x84]
mov edx, dword [esp + 0x84]
push edx
push ecx
fldcw word [esp + 0x18]
call sym.leptonlib.dll_pixSetAllArbitrary
mov ecx, dword [esp + 0x20]
add esp, 8
jmp 0x100aa860
push eax
push ecx
push 0
push edi
call sym.leptonlib.dll_pixResizeToMatch
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x18], ecx
mov eax, 0xa
cmp dword [esp + 0x2c], eax
jle 0x100aa90d
cmp dword [esp + 0x28], eax
jle 0x100aa90d
fld dword [esp + 0x9c]
fmul qword [0x10142238]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fst qword [esp + 0x60]
or eax, 0xc00
fmul dword [sym.leptonlib.dll_AlphaMaskBorderVals]
mov dword [esp + 0x78], eax
fldcw word [esp + 0x78]
fistp qword [esp + 0x84]
mov edx, dword [esp + 0x84]
push edx
push 1
fldcw word [esp + 0x18]
push ecx
call sym.leptonlib.dll_pixSetBorderRingVal
mov ecx, dword [esp + 0x24]
fld dword [0x10183d78]
fmul qword [esp + 0x6c]
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x84], eax
fldcw word [esp + 0x84]
fistp qword [esp + 0x90]
mov eax, dword [esp + 0x90]
push eax
push 2
fldcw word [esp + 0x24]
push ecx
call sym.leptonlib.dll_pixSetBorderRingVal
mov ecx, dword [esp + 0x30]
add esp, 0x18
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov edi, 1
mov ebx, ecx
test ecx, ecx
jne 0x100aa927
xor eax, eax
jmp 0x100aaabc
fldz
fld dword [esp + 0x94]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x100aa941
fmul qword [0x101433c0]
fcomp qword [0x10148160]
push ecx
fnstsw ax
test ah, 5
jp 0x100aa95c
call sym.leptonlib.dll_boxClone
add esp, 4
jmp 0x100aaabc
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, 1
jne 0x100aa970
lea edi, [eax + 2]
push ebx
call sym.leptonlib.dll_pixGetColormap
add esp, 4
test eax, eax
je 0x100aa98f
cmp edi, 1
jne 0x100aa98f
push 3
push ebx
call sym.leptonlib.dll_pixRemoveColormap
add esp, 8
jmp 0x100aa998
push ebx
call sym.leptonlib.dll_boxClone
add esp, 4
push eax
mov dword [esp + 0x44], eax
call sym.leptonlib.dll_pixGetColormap
add esp, 4
test eax, eax
je 0x100aa9b8
test ebp, ebp
jne 0x100aa9b8
push ebp
push ebp
push eax
call sym.leptonlib.dll_pixcmapAddBlackOrWhite
add esp, 0xc
fld dword [esp + 0x94]
mov edx, dword [esp + 0x40]
push esi
push ebp
push 2
push ecx
fstp dword [esp]
push edx
call sym.leptonlib.dll_pixEmbedForRotation
push eax
mov dword [esp + 0x54], eax
call sym.leptonlib.dll_numaGetRefcount
add esp, 0x18
mov dword [esp + 0x48], eax
cmp edi, 1
jne 0x100aa9fd
cmp eax, 8
jge 0x100aa9fd
mov eax, dword [esp + 0x3c]
push 0
push eax
call sym.leptonlib.dll_pixConvertTo8
add esp, 8
jmp 0x100aaa0a
mov ecx, dword [esp + 0x3c]
push ecx
call sym.leptonlib.dll_boxClone
add esp, 4
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x68]
push edx
push eax
mov dword [esp + 0x20], eax
call sym.leptonlib.dll_pixGetDimensions
fld dword [esp + 0xa4]
add esp, 0x10
cmp edi, 2
jne 0x100aaa43
mov eax, dword [esp + 0x10]
push edi
push ecx
fstp dword [esp]
push eax
call sym.leptonlib.dll_pixRotateShearCenter
jmp 0x100aaa94
cmp edi, 3
jne 0x100aaa71
mov eax, dword [esp + 0x78]
cdq
sub eax, edx
push 2
push ecx
mov ecx, dword [esp + 0x18]
sar eax, 1
fstp dword [esp]
push eax
mov eax, dword [esp + 0x6c]
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
call sym.leptonlib.dll_pixRotateBySampling
add esp, 0x14
jmp 0x100aaa97
cmp dword [esp + 0x48], 8
push 0
push ecx
fstp dword [esp]
jne 0x100aaa8a
mov edx, dword [esp + 0x18]
push edx
call sym.leptonlib.dll_pixRotateAMGray
jmp 0x100aaa94
mov eax, dword [esp + 0x18]
push eax
call sym.leptonlib.dll_pixRotateAMColor
add esp, 0xc
lea ecx, [esp + 0x40]
push ecx
mov edi, eax
call sym.leptonlib.dll_pixDestroy
lea edx, [esp + 0x40]
push edx
call sym.leptonlib.dll_pixDestroy
lea eax, [esp + 0x18]
push eax
call sym.leptonlib.dll_pixDestroy
add esp, 0xc
mov eax, edi
mov esi, dword [esp + 0x68]
push 3
push eax
push esi
mov dword [esp + 0x8c], eax
call sym.leptonlib.dll_pixSetRGBComponent
lea ecx, [esp + 0x24]
push ecx
call sym.leptonlib.dll_pixDestroy
lea edx, [esp + 0x90]
push edx
call sym.leptonlib.dll_pixDestroy
add esp, 0x14
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
add esp, 0x7c
ret