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

Disassembly:
sub esp, 0x48
push esi
mov esi, dword [esp + 0x50]
push edi
xor edi, edi
cmp esi, edi
je 0x10018aba
push esi
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 1
jne 0x10018aba
push esi
push edi
call sym.leptonlib.dll_pixCopy
push edi
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
mov dword [esp + 0x30], eax
call sym.leptonlib.dll_pixGetDimensions
mov eax, dword [esp + 0x70]
add esp, 0x18
cmp eax, edi
je 0x10018823
push edi
push edi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call sym.leptonlib.dll_boxGetGeometry
add esp, 0x14
jmp 0x1001882b
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push edi
push edi
call sym.leptonlib.dll_boxCreate
push edi
mov dword [esp + 0x68], eax
call sym.leptonlib.dll_boxaCreate
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
add esp, 0x14
mov dword [esp + 0x30], edi
cmp eax, edi
je 0x10018aa3
mov edi, dword [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x68]
push ebp
mov ebp, dword [esp + 0x64]
jmp 0x10018870
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x60]
push ecx
push eax
call sym.leptonlib.dll_boxGetGeometry
push 4
call sym.leptonlib.dll_boxaCreate
push 4
mov dword [esp + 0x44], eax
call sym.leptonlib.dll_numaCreate
add esp, 0x1c
mov dword [esp + 0x10], eax
xor esi, esi
jmp 0x100188b0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x24]
push eax
push edi
push ebx
push ebp
mov eax, esi
call fcn.10017ff0
inc esi
add esp, 0x14
cmp esi, 4
jl 0x100188b0
mov ecx, dword [esp + 0x10]
mov esi, 2
push esi
push ecx
call sym.leptonlib.dll_numaGetSortIndex
lea edx, [esp + 0x34]
push edx
push 0
push eax
mov dword [esp + 0x60], eax
call sym.leptonlib.dll_numaGetIValue
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x58]
push eax
push ecx
push edx
call sym.leptonlib.dll_numaGetIValue
add esp, 0x20
cmp dword [esp + 0x44], 0
jle 0x100189d1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push esi
push eax
push ecx
call sym.leptonlib.dll_boxaGetBox
fld1
mov edx, dword [esp + 0x20]
fst dword [esp + 8]
mov ecx, dword [esp + 0x24]
fstp dword [esp + 4]
add esp, 4
push edx
push ecx
push eax
mov dword [esp + 0x30], eax
call sym.leptonlib.dll_boxTransform
mov edx, dword [esp + 0x38]
push 0
push eax
push edx
call sym.leptonlib.dll_boxaAddBox
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push eax
push ecx
call sym.leptonlib.dll_pixClearInRect
lea edx, [esp + 0x44]
push edx
call sym.leptonlib.dll_boxDestroy
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x74]
push eax
push 0
push ecx
push edx
call sym.leptonlib.dll_pixClipBoxToForeground
lea eax, [esp + 0x98]
push eax
call sym.leptonlib.dll_boxDestroy
mov eax, dword [esp + 0x88]
add esp, 0x40
mov dword [esp + 0x5c], eax
test eax, eax
je 0x10018a19
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push 0
push eax
call sym.leptonlib.dll_boxGetGeometry
add esp, 0x14
cmp dword [esp + 0x30], esi
jl 0x100189ca
cmp dword [esp + 0x34], esi
jge 0x10018a19
lea eax, [esp + 0x5c]
push eax
jmp 0x10018a11
cmp dword [esp + 0x78], 1
jne 0x10018a0c
fld1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x5c]
sub esp, 8
fst dword [esp + 4]
fstp dword [esp]
push ecx
push edx
push eax
call sym.leptonlib.dll_boxTransform
mov ecx, dword [esp + 0x38]
push 0
push eax
push ecx
mov dword [esp + 0x3c], eax
call sym.leptonlib.dll_boxaAddBox
add esp, 0x20
lea edx, [esp + 0x5c]
push edx
call sym.leptonlib.dll_boxDestroy
add esp, 4
lea eax, [esp + 0x28]
push eax
call sym.leptonlib.dll_boxaDestroy
lea ecx, [esp + 0x14]
push ecx
call sym.leptonlib.dll_numaDestroy
lea edx, [esp + 0x54]
push edx
call sym.leptonlib.dll_numaDestroy
mov eax, dword [esp + 0x44]
inc eax
add esp, 0xc
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x74]
jne 0x10018a95
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x10018aa1
cmp dword [esp + 0x78], 1
jne 0x10018a88
fld1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub esp, 8
fst dword [esp + 4]
fstp dword [esp]
push ecx
push edx
push eax
call sym.leptonlib.dll_boxTransform
push 0
push eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
push eax
call sym.leptonlib.dll_boxaAddBox
add esp, 0x20
lea ecx, [esp + 0x5c]
push ecx
call sym.leptonlib.dll_boxDestroy
add esp, 4
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x10018870
pop ebp
pop ebx
lea edx, [esp + 0x18]
push edx
call sym.leptonlib.dll_pixDestroy
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
add esp, 0x48
ret
pop edi
xor eax, eax
pop esi
add esp, 0x48
ret