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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.10082b00
test eax, eax
jne 0x100c5f8d
push eax
push ebx
push 0xfffff40c
push 0x3af
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
push ebx
call sym.GEAR32PO.OCX_GPb_width_get
push ebx
mov dword [esp + 0x30], eax
call sym.GEAR32PO.OCX_GPb_height_get
push ebx
mov dword [esp + 0x20], eax
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
cmp eax, 1
je 0x100c5fd1
push 5
push eax
push 0xfffff31c
push 0x3bc
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
mov edi, dword [ebp + 0xc]
push edi
call sym.GEAR32PO.OCX_GPb_width_get
mov esi, eax
push edi
mov dword [esp + 0x14], esi
call sym.GEAR32PO.OCX_GPb_height_get
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
cmp eax, esi
jge 0x100c6011
cmp dword [esp + 0x2c], esi
jge 0x100c6011
push 0
push 0
push edi
push ebx
call fcn.100c7190
call fcn.10046b40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call fcn.10032b90
call fcn.100a0c60
mov edi, esi
mov dword [esp + 0x3c], eax
sar edi, 3
mov dword [esp + 0x14], edi
lea ecx, [edi*8]
cmp ecx, esi
je 0x100c603f
inc edi
mov dword [esp + 0x14], edi
mov ecx, edi
and ecx, 0xfffffffc
cmp ecx, edi
je 0x100c6051
add ecx, 4
mov dword [esp + 0x14], ecx
mov edi, ecx
fild dword [esp + 0x10]
fild dword [esp + 0x2c]
push edi
push eax
fdivp st(1)
fstp qword [esp + 0x78]
fild dword [esp + 0x24]
fild dword [esp + 0x38]
fdivp st(1)
fstp qword [esp + 0x58]
call fcn.100a0c80
mov ebx, eax
mov eax, dword [esp + 0x3c]
lea edx, [esi*4]
push edx
push eax
call fcn.100a0c80
mov ecx, dword [ebp + 0xc]
mov esi, eax
push ecx
mov dword [esp + 0x38], esi
call sym.GEAR32PO.OCX_GPb_image_pointer_get
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], 0
test eax, eax
jle 0x100c6404
jmp 0x100c60b1
mov edi, dword [esp + 0x14]
fild dword [esp + 0x20]
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
fmul qword [esp + 0x50]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call sub.MSVCRT.dll__ftol
mov ecx, eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x5c], 0
fild dword [esp + 0x38]
mov dword [esp + 0x28], ecx
fmul qword [esp + 0x50]
fstp qword [esp + 0x68]
fild qword [esp + 0x58]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 1
je 0x100c631a
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x2c], eax
jmp 0x100c6120
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x1c]
jae 0x100c631a
mov ecx, dword [ebp + 8]
dec eax
push eax
push ecx
call sym.GEAR32PO.OCX_GPb_image_run_row_get
mov esi, eax
xor eax, eax
mov ax, word [esi]
sub eax, 8
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fsub qword [0x101136f8]
fmul qword [0x10113700]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x70]
lea edi, [esi + 2]
xor edx, edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], edi
mov dx, word [edi]
mov dword [esp + 0x24], 1
mov dword [esp + 0x40], edx
fild dword [esp + 0x40]
fmul st(1)
fsub qword [0x10113708]
call sub.MSVCRT.dll__ftol
mov esi, eax
and eax, 7
sar esi, 3
test esi, esi
mov dword [esp + 0x40], eax
jle 0x100c61b7
mov ecx, esi
or eax, 0xffffffff
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
mov ecx, 8
mov dl, byte [esi + ebx]
sub ecx, eax
or al, 0xff
add edi, 2
shl al, cl
xor ecx, ecx
mov dword [esp + 0x18], edi
or dl, al
mov byte [esi + ebx], dl
mov cx, word [edi]
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
fmul st(1)
call sub.MSVCRT.dll__ftol
mov edi, dword [esp + 0x10]
mov esi, eax
cmp esi, edi
jge 0x100c62e3
jmp 0x100c61fd
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
cmp ax, cx
ja 0x100c62e3
jne 0x100c6213
dec edi
jmp 0x100c6250
mov eax, dword [esp + 0x18]
xor edx, edx
dec edi
mov dx, word [eax + 2]
mov dword [esp + 0x48], edi
fild dword [esp + 0x48]
mov dword [esp + 0x40], edx
fild dword [esp + 0x40]
fmul st(2)
fsub qword [0x101136f8]
fst qword [esp + 0x48]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x100c6249
fstp st(0)
fld qword [esp + 0x48]
call sub.MSVCRT.dll__ftol
mov edi, eax
mov ecx, esi
mov edx, esi
and ecx, 7
mov eax, 0xff
sub esi, ecx
sar eax, cl
lea ecx, [esi + 7]
sar edx, 3
cmp ecx, edi
mov byte [esp + 0xf], al
jl 0x100c627f
mov ecx, esi
or al, 0xff
sub ecx, edi
add ecx, 7
shl al, cl
and al, byte [esp + 0xf]
jmp 0x100c62aa
or byte [edx + ebx], al
lea eax, [ecx + 8]
inc edx
cmp eax, edi
jge 0x100c6296
mov byte [edx + ebx], 0xff
add eax, 8
inc edx
cmp eax, edi
jl 0x100c628a
cmp edx, dword [esp + 0x14]
jae 0x100c62ad
and edi, 7
mov ecx, 8
sub ecx, edi
or al, 0xff
shl al, cl
or byte [edx + ebx], al
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
add eax, 4
inc ecx
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov cx, word [eax]
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], ecx
fild dword [esp + 0x48]
fmul st(1)
call sub.MSVCRT.dll__ftol
mov esi, eax
mov eax, dword [esp + 0x10]
cmp esi, eax
jl 0x100c61f9
mov eax, dword [esp + 0x28]
mov dword [esp + 0x64], 0
inc eax
mov ecx, dword [esp + 0x2c]
fstp st(0)
mov dword [esp + 0x60], eax
mov esi, dword [esp + 0x34]
fild qword [esp + 0x60]
mov dword [esp + 0x28], eax
dec ecx
mov dword [esp + 0x2c], ecx
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 1
jne 0x100c6118
mov ecx, dword [esp + 0x10]
xor edi, edi
xor eax, eax
mov dword [esp + 0x18], 1
test ecx, ecx
jle 0x100c63ab
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x100c6376
mov dl, al
mov cl, 7
and dl, 7
sub cl, dl
mov edx, eax
sar edx, 3
mov dl, byte [edx + ebx]
shr dl, cl
test dl, 1
jne 0x100c636e
inc edi
mov dx, word [esp + 0x10]
mov ecx, edi
mov dword [esp + 0x18], 0
and ecx, 0xffff
lea ecx, [esi + ecx*4]
mov word [ecx - 2], ax
mov word [ecx], dx
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x100c63a2
mov dl, al
mov cl, 7
and dl, 7
sub cl, dl
mov edx, eax
sar edx, 3
mov dl, byte [edx + ebx]
shr dl, cl
test dl, 1
je 0x100c63a2
mov ecx, edi
mov dword [esp + 0x18], 1
and ecx, 0xffff
mov word [esi + ecx*4], ax
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
jl 0x100c632e
mov edx, edi
xor eax, eax
and edx, 0xffff
mov ax, word [esi + edx*4 - 2]
cmp eax, ecx
je 0x100c63d1
inc edi
mov edx, edi
and edx, 0xffff
lea eax, [esi + edx*4]
mov word [eax - 2], cx
mov word [eax], cx
mov ecx, dword [esp + 0x20]
lea edi, [edi*4 + 6]
mov word [esi], di
push edi
mov edi, dword [esp + 0x34]
push esi
mov eax, edi
sub eax, ecx
mov ecx, dword [ebp + 0xc]
dec eax
push eax
push ecx
call fcn.10084f50
mov eax, dword [esp + 0x38]
cmp eax, edi
mov dword [esp + 0x20], eax
jl 0x100c60ad
mov edx, dword [esp + 0x3c]
push edx
call fcn.100a12c0
call fcn.10046b40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8