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

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x60]
push edi
xor edi, edi
cmp ebx, edi
jne 0x1000fdb9
mov eax, dword [esp + 0x60]
pop edi
pop ebx
add esp, 0x54
ret
push esi
mov esi, dword [esp + 0x64]
cmp esi, edi
je 0x1000fdca
cmp esi, ebx
jne 0x1001008a
push ebx
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 0x20
jne 0x1001008a
cmp esi, edi
jne 0x1000fdee
push ebx
push edi
call sym.leptonlib.dll_pixCopy
add esp, 8
mov dword [esp + 0x64], eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x70]
push edx
push eax
call sym.leptonlib.dll_extractRGBValues
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
call sym.leptonlib.dll_extractRGBValues
mov eax, dword [esp + 0x88]
mov ecx, 1
add esp, 0x20
cmp eax, ecx
mov edx, 0xfe
jl 0x1000fe45
cmp eax, edx
jle 0x1000fe49
mov dword [esp + 0x68], edx
jmp 0x1000fe49
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0x10]
cmp eax, ecx
jl 0x1000fe5b
cmp eax, edx
jle 0x1000fe5f
mov dword [esp + 0x10], edx
jmp 0x1000fe5f
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0xc]
cmp eax, ecx
jl 0x1000fe71
cmp eax, edx
jle 0x1000fe75
mov dword [esp + 0xc], edx
jmp 0x1000fe75
mov dword [esp + 0xc], ecx
mov esi, dword [sym.imp.MSVCR90.dll_calloc]
push ebp
push 4
push 0x100
call esi
mov ebp, eax
push 4
push 0x100
mov dword [esp + 0x54], ebp
call esi
push 4
push 0x100
mov ebx, eax
call esi
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x60], eax
sub eax, ebx
sub ebp, ebx
mov ecx, edx
mov dword [esp + 0x4c], eax
mov eax, edx
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x84]
sub eax, ebp
add esp, 0x18
neg ecx
sub edx, dword [esp + 0x10]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov esi, ebx
mov dword [esp + 0x4c], eax
jmp 0x1000feed
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x4c]
cmp edi, ebp
jg 0x1000fefa
mov eax, dword [esp + 0x1c]
cdq
idiv ebp
jmp 0x1000ff16
add eax, ecx
mov ebp, 0xff
sub ebp, edx
imul eax, ebp
mov ebp, 0xff
sub ebp, dword [esp + 0x6c]
cdq
idiv ebp
add eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
cmp edi, ebp
mov edx, dword [esp + 0x30]
mov dword [edx + esi], eax
jg 0x1000ff2e
mov eax, dword [esp + 0x24]
cdq
idiv ebp
jmp 0x1000ff4a
mov eax, 0xff
sub eax, dword [esp + 0x20]
mov edx, 0xff
imul eax, ecx
sub edx, ebp
mov ebp, edx
cdq
idiv ebp
add eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x10]
cmp edi, ebp
mov dword [esi], eax
jg 0x1000ff5d
mov eax, dword [esp + 0x2c]
cdq
idiv ebp
jmp 0x1000ff7f
mov eax, dword [esp + 0x54]
add eax, ecx
mov edx, 0xff
sub edx, dword [esp + 0x28]
mov ebp, 0xff
sub ebp, dword [esp + 0x10]
imul eax, edx
cdq
idiv ebp
add eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov dword [edx + esi], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add dword [esp + 0x1c], edx
add dword [esp + 0x2c], eax
inc edi
inc ecx
add esi, 4
cmp edi, 0x100
jl 0x1000fee5
mov esi, dword [esp + 0x68]
push 0
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x44]
push edx
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 ebp, dword [esp + 0x5c]
add esp, 0x18
cmp dword [esp + 0x40], 0
mov dword [esp + 0x34], 0
jle 0x10010073
add eax, eax
add eax, eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x3c]
lea esp, [esp]
xor esi, esi
test eax, eax
jle 0x1001005c
mov eax, dword [edi + esi*4]
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x68]
push ecx
push eax
mov dword [esp + 0x48], eax
call sym.leptonlib.dll_extractRGBValues
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x48]
push edx
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x70]
mov ecx, dword [ebx + eax*4]
push edx
mov edx, dword [esp + 0x78]
mov eax, dword [ebp + edx*4]
push ecx
push eax
call sym.leptonlib.dll_composeRGBPixel
mov ecx, dword [esp + 0x58]
mov dword [edi + esi*4], ecx
mov eax, dword [esp + 0x5c]
inc esi
add esp, 0x20
cmp esi, eax
jl 0x10010006
mov ecx, dword [esp + 0x34]
add edi, dword [esp + 0x54]
inc ecx
cmp ecx, dword [esp + 0x40]
mov dword [esp + 0x34], ecx
jl 0x10010000
mov esi, dword [esp + 0x68]
mov edi, dword [sym.imp.MSVCR90.dll_free]
push ebp
call edi
push ebx
call edi
mov edx, dword [esp + 0x50]
push edx
call edi
add esp, 0xc
pop ebp
mov eax, esi
pop esi
pop edi
pop ebx
add esp, 0x54
ret