Function at 0x100c9840
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 ebp, dword [esp + 0x78]
mov dword [esp + 0x24], eax
push ebp
call sym.GEAR32PO.OCX_GPb_height_get
push ebp
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 edi, eax
push ebp
mov dword [esp + 0x24], edi
call sym.GEAR32PO.OCX_GPb_bytes_per_raster_get
mov esi, eax
push ebp
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 0x100c9aea
fld qword [esp + 0x68]
jmp 0x100c98f2
mov edi, 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 ebp, 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, edi
cmp ebp, ebx
je 0x100c9937
mov edi, ebx
mov eax, dword [esp + 0x20]
sub edi, ebp
dec edi
imul edi, dword [esp + 0x1c]
add edi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x100c9a7c
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
lea ecx, [eax + eax*2]
mov dword [esp + 0x30], ecx
fild dword [esp + 0x10]
fmul st(1)
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x10]
lea ebp, [eax + eax*2]
inc edx
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul st(1)
call sub.MSVCRT.dll__ftol
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x30]
cmp ecx, eax
jne 0x100c998a
sub ecx, 3
mov al, byte [ebp + esi + 1]
mov dl, byte [ebp + esi + 2]
mov byte [esp + 0x51], al
mov al, byte [ecx + esi + 1]
mov byte [esp + 0x52], dl
mov dl, byte [ecx + esi + 2]
mov byte [esp + 0x59], al
mov al, byte [ebp + edi + 1]
mov byte [esp + 0x5a], dl
mov dl, byte [ebp + edi + 2]
mov byte [esp + 0x41], al
mov al, byte [ecx + edi + 1]
mov byte [esp + 0x42], dl
mov dl, byte [ecx + edi + 2]
mov byte [esp + 0x49], al
mov byte [esp + 0x4a], dl
xor eax, eax
xor edx, edx
mov al, byte [ebp + edi]
mov dl, byte [ecx + esi]
add eax, edx
xor edx, edx
mov dl, byte [ecx + edi]
xor ecx, ecx
mov cl, byte [ebp + esi]
add eax, edx
add eax, ecx
mov ecx, dword [esp + 0x51]
cdq
and edx, 3
and ecx, 0xff
add eax, edx
mov edx, dword [esp + 0x49]
sar eax, 2
mov byte [ebx], al
mov eax, dword [esp + 0x41]
and eax, 0xff
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x59]
add eax, ecx
and edx, 0xff
add eax, edx
mov ecx, dword [esp + 0x4a]
cdq
and edx, 3
inc ebx
add eax, edx
mov edx, dword [esp + 0x52]
sar eax, 2
mov byte [ebx], al
mov eax, dword [esp + 0x42]
and eax, 0xff
and ecx, 0xff
add eax, ecx
mov ecx, dword [esp + 0x5a]
and edx, 0xff
and ecx, 0xff
add eax, edx
inc ebx
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 0x100c995a
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x100c9aa1
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 0x100c9ad4
fld qword [esp + 0x68]
jmp 0x100c9aa5
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 0x100c98ee
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 0x10b5
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