Function at 0x100cadf0
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 0x100cb187
lea eax, [esi - 1]
mov dword [esp + 0x34], eax
jmp 0x100caeb7
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 0x100caee0
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 0x100caf0b
sub esi, eax
dec esi
imul esi, ebx
add esi, edi
mov edi, esi
jmp 0x100caf17
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 0x100cb125
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 0x100caf64
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
fsubr st(1)
fstp qword [esp + 0x38]
fstp st(0)
jne 0x100caf8a
shl eax, 2
mov ecx, eax
jmp 0x100caf90
shl eax, 2
lea ecx, [eax + 4]
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 [eax + esi + 3]
mov byte [esp + 0x6b], 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 [ecx + esi + 3]
mov byte [esp + 0x63], 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 [eax + edi + 3]
mov byte [esp + 0x5b], dl
mov dl, byte [ecx + edi + 1]
mov byte [esp + 0x51], dl
mov dl, byte [ecx + edi + 2]
mov byte [esp + 0x52], dl
mov dl, byte [ecx + edi + 3]
mov byte [esp + 0x53], 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
inc ebx
push ecx
mov eax, dword [esp + 0x6a]
mov ecx, dword [esp + 0x72]
and edx, 0xff
and eax, 0xff
push edx
mov edx, dword [esp + 0x7e]
and ecx, 0xff
push eax
and edx, 0xff
push ecx
push edx
call fcn.100cc9e0
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x3c]
mov byte [ebx], al
mov eax, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x5b]
push edx
mov edx, dword [esp + 0x67]
and ecx, 0xff
push eax
mov eax, dword [esp + 0x73]
push ecx
mov ecx, dword [esp + 0x7f]
and edx, 0xff
and eax, 0xff
push edx
and ecx, 0xff
push eax
push ecx
inc ebx
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 0x100caf38
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x100cb144
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
push edi
push esi
push edx
call eax
test eax, eax
je 0x100cb171
jmp 0x100cb148
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
sub edx, eax
inc esi
cmp esi, edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], esi
jl 0x100caeaf
call fcn.10046b40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push esi
push 0xfffff7bf
push 0x14e9
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