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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
lea eax, [esp + 0x34]
push edi
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.100d3780
mov esi, dword [esp + 0x74]
push esi
call sym.GEAR32PO.OCX_GPb_height_get
mov ebx, eax
push esi
mov dword [esp + 0x2c], ebx
call sym.GEAR32PO.OCX_GPb_width_get
mov edi, dword [esp + 0x78]
mov dword [esp + 0x24], eax
push edi
call sym.GEAR32PO.OCX_GPb_height_get
push edi
mov dword [esp + 0x78], eax
call sym.GEAR32PO.OCX_GPb_width_get
push esi
fild dword [esp + 0x2c]
mov dword [esp + 0x18], eax
fidiv dword [esp + 0x78]
fstp qword [esp + 0x64]
fild dword [esp + 0x28]
fidiv dword [esp + 0x18]
fstp qword [esp + 0x6c]
call sym.GEAR32PO.OCX_GPb_bytes_per_raster_get
push esi
mov dword [esp + 0x20], eax
call sym.GEAR32PO.OCX_GPb_image_pointer_get
mov ebp, eax
push edi
mov dword [esp + 0x24], ebp
call sym.GEAR32PO.OCX_GPb_bytes_per_raster_get
mov esi, eax
push edi
mov dword [esp + 0x40], esi
call sym.GEAR32PO.OCX_GPb_image_pointer_get
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x78], 0
lea edx, [ecx - 1]
imul edx, esi
add eax, edx
test ecx, ecx
mov dword [esp + 0x18], eax
jle 0x100c9e09
fld qword [esp + 0x68]
jmp 0x100c9bb2
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x78]
inc eax
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fmul qword [esp + 0x60]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x78]
mov edi, eax
fmul qword [esp + 0x60]
call sub.MSVCRT.dll__ftol
mov esi, ebx
sub esi, eax
dec esi
imul esi, dword [esp + 0x1c]
add esi, ebp
cmp edi, ebx
je 0x100c9bf7
mov ebp, ebx
mov eax, dword [esp + 0x20]
sub ebp, edi
dec ebp
imul ebp, dword [esp + 0x1c]
add ebp, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x100c9d9b
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
lea edx, [ecx*4]
mov dword [esp + 0x30], edx
fild dword [esp + 0x10]
fmul st(1)
call sub.MSVCRT.dll__ftol
mov edi, eax
mov eax, dword [esp + 0x10]
shl edi, 2
inc eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul st(1)
call sub.MSVCRT.dll__ftol
mov ecx, eax
mov eax, dword [esp + 0x30]
shl ecx, 2
cmp ecx, eax
jne 0x100c9c52
sub ecx, 4
mov dl, byte [edi + esi + 1]
mov al, byte [edi + esi + 2]
mov byte [esp + 0x52], al
mov al, byte [ecx + esi + 1]
mov byte [esp + 0x51], dl
mov dl, byte [edi + esi + 3]
mov byte [esp + 0x53], dl
mov dl, byte [ecx + esi + 2]
mov byte [esp + 0x41], al
mov al, byte [ecx + esi + 3]
mov byte [esp + 0x42], dl
mov dl, byte [edi + ebp + 1]
mov byte [esp + 0x43], al
mov al, byte [edi + ebp + 2]
mov byte [esp + 0x49], dl
mov dl, byte [edi + ebp + 3]
mov byte [esp + 0x4a], al
mov al, byte [ecx + ebp + 1]
mov byte [esp + 0x4b], dl
mov dl, byte [ecx + ebp + 2]
mov byte [esp + 0x59], al
mov al, byte [ecx + ebp + 3]
mov byte [esp + 0x5a], dl
mov byte [esp + 0x5b], al
xor eax, eax
xor edx, edx
mov al, byte [ecx + ebp]
mov dl, byte [ecx + esi]
xor ecx, ecx
add eax, edx
mov cl, byte [edi + esi]
xor edx, edx
mov dl, byte [edi + ebp]
add eax, ecx
add eax, edx
mov ecx, dword [esp + 0x49]
cdq
and edx, 3
and ecx, 0xff
add eax, edx
mov edx, dword [esp + 0x51]
sar eax, 2
mov byte [ebx], al
mov eax, dword [esp + 0x41]
and eax, 0xff
and edx, 0xff
add eax, ecx
mov ecx, dword [esp + 0x59]
add eax, edx
and ecx, 0xff
add eax, ecx
mov ecx, dword [esp + 0x52]
cdq
and edx, 3
inc ebx
add eax, edx
mov edx, dword [esp + 0x4a]
sar eax, 2
mov byte [ebx], al
mov eax, dword [esp + 0x42]
and eax, 0xff
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x5a]
and ecx, 0xff
and edx, 0xff
add eax, ecx
mov ecx, dword [esp + 0x4b]
add eax, edx
inc ebx
cdq
and edx, 3
and ecx, 0xff
add eax, edx
mov edx, dword [esp + 0x53]
sar eax, 2
mov byte [ebx], al
mov eax, dword [esp + 0x43]
and eax, 0xff
inc ebx
add eax, ecx
mov ecx, dword [esp + 0x5b]
and edx, 0xff
add eax, edx
and ecx, 0xff
add eax, ecx
mov ecx, dword [esp + 0x14]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [ebx], al
mov eax, dword [esp + 0x10]
inc ebx
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x100c9c1e
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x100c9dc0
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x38]
push esi
push edi
push edx
fstp st(0)
call eax
test eax, eax
je 0x100c9df3
fld qword [esp + 0x68]
jmp 0x100c9dc4
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
sub edx, eax
mov eax, dword [esp + 0x2c]
cmp eax, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x78], eax
jl 0x100c9bae
fstp st(0)
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8
push esi
push edi
push 0xfffff7bf
push 0x1131
push str.C:_accusoftgear_sourceIMG_PROCRESIZE.C
call fcn.10046940
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8