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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
lea eax, [esp + 0x48]
push edi
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.100d3780
mov edi, dword [ebp + 8]
push edi
call sym.GEAR32PO.OCX_GPb_height_get
mov esi, eax
push edi
mov dword [esp + 0x28], esi
call sym.GEAR32PO.OCX_GPb_width_get
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
push ebx
call sym.GEAR32PO.OCX_GPb_height_get
push ebx
mov dword [esp + 0x14], eax
call sym.GEAR32PO.OCX_GPb_width_get
fild dword [esp + 0x24]
mov dword [esp + 0x1c], eax
push edi
fidiv dword [esp + 0x14]
fstp qword [esp + 0x7c]
fild dword [esp + 0x2c]
fidiv dword [esp + 0x20]
fstp qword [esp + 0x84]
call sym.GEAR32PO.OCX_GPb_bytes_per_raster_get
mov ebx, eax
push edi
mov dword [esp + 0x48], ebx
call sym.GEAR32PO.OCX_GPb_image_pointer_get
mov edx, dword [ebp + 0xc]
mov edi, eax
push edx
mov dword [esp + 0x34], edi
call sym.GEAR32PO.OCX_GPb_bytes_per_raster_get
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
push eax
call sym.GEAR32PO.OCX_GPb_image_pointer_get
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], 0
lea edx, [ecx - 1]
imul edx, dword [esp + 0x2c]
add eax, edx
test ecx, ecx
mov dword [esp + 0x20], eax
jle 0x100cadd9
lea eax, [esi - 1]
mov dword [esp + 0x34], eax
jmp 0x100cab77
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
fild dword [esp + 0x14]
fsub qword [0x10113708]
fmul qword [esp + 0x78]
fsub qword [0x10113700]
fcom qword [0x10113718]
fnstsw ax
test ah, 1
je 0x100caba0
fstp st(0)
fld qword [0x10113718]
fld st(0)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x34]
fild dword [esp + 0x18]
cmp eax, ecx
fsubr st(1)
fstp qword [esp + 0x70]
fstp st(0)
jne 0x100cabcb
sub esi, eax
dec esi
imul esi, ebx
add esi, edi
mov edi, esi
jmp 0x100cabd7
sub esi, eax
dec esi
imul esi, ebx
add esi, edi
mov edi, esi
sub edi, ebx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x100cad77
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
dec ecx
mov dword [esp + 0x40], ecx
fild dword [esp + 0x18]
fsub qword [0x10113708]
fmul qword [esp + 0x80]
fsub qword [0x10113700]
fcom qword [0x10113718]
fnstsw ax
test ah, 1
je 0x100cac24
fstp st(0)
fld qword [0x10113718]
fld st(0)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x40]
fild dword [esp + 0x38]
cmp eax, ecx
lea eax, [eax + eax*2]
mov ecx, eax
fsubr st(1)
fstp qword [esp + 0x38]
fstp st(0)
je 0x100cac4b
lea ecx, [eax + 3]
mov dl, byte [eax + esi + 1]
mov byte [esp + 0x69], dl
mov dl, byte [eax + esi + 2]
mov byte [esp + 0x6a], dl
mov dl, byte [ecx + esi + 1]
mov byte [esp + 0x61], dl
mov dl, byte [ecx + esi + 2]
mov byte [esp + 0x62], dl
mov dl, byte [eax + edi + 1]
mov byte [esp + 0x59], dl
mov dl, byte [eax + edi + 2]
mov byte [esp + 0x5a], dl
mov dl, byte [ecx + edi + 1]
mov byte [esp + 0x51], dl
mov dl, byte [ecx + edi + 2]
mov byte [esp + 0x52], dl
mov edx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
xor edx, edx
mov dl, byte [ecx + edi]
push edx
xor edx, edx
mov dl, byte [eax + edi]
push edx
xor edx, edx
mov dl, byte [ecx + esi]
xor ecx, ecx
mov cl, byte [eax + esi]
push edx
push ecx
call fcn.100cc9e0
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x3c]
mov byte [ebx], al
mov eax, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x59]
push ecx
mov ecx, dword [esp + 0x65]
and eax, 0xff
push edx
mov edx, dword [esp + 0x71]
push eax
mov eax, dword [esp + 0x7d]
and ecx, 0xff
and edx, 0xff
push ecx
and eax, 0xff
push edx
push eax
inc ebx
call fcn.100cc9e0
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov byte [ebx], al
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x5a]
push eax
mov eax, dword [esp + 0x66]
push ecx
mov ecx, dword [esp + 0x72]
and edx, 0xff
inc ebx
and eax, 0xff
push edx
and ecx, 0xff
push eax
push ecx
mov edx, dword [esp + 0x86]
and edx, 0xff
push edx
call fcn.100cc9e0
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x1c]
mov byte [ebx], al
mov eax, dword [esp + 0x18]
inc ebx
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x100cabf8
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x100cad96
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
push edi
push esi
push ecx
call eax
test eax, eax
je 0x100cadc3
jmp 0x100cad9a
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
sub eax, edx
inc esi
cmp esi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
jl 0x100cab6f
call fcn.10046b40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push esi
push 0xfffff7bf
push 0x143e
push str.C:_accusoftgear_sourceIMG_PROCRESIZE.C
call fcn.10046940
call fcn.10046b40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8