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

Disassembly:
sub esp, 0x470
push ebx
lea eax, [esp + 0x44]
push edi
lea ecx, [esp + 0x44]
push eax
push ecx
mov dword [esp + 0x2c], 1
call fcn.100d3780
mov ebx, dword [esp + 0x480]
mov edi, dword [esp + 0x47c]
mov edx, ebx
push edi
mov eax, dword [edx]
mov dword [esp + 0x34], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x3c], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x40], ecx
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
cmp eax, 8
je 0x1004bafc
push 0
push eax
push 0xfffff448
push 0x8b3
push str.C:_accusoftgear_sourceIMG_PROC_filterip.c
call fcn.10046940
call fcn.10046b40
pop edi
pop ebx
add esp, 0x470
ret 0xc
push esi
push ebp
mov ebp, 2
lea edx, [esp + 0x58]
push ebp
push ebp
push 5
push 5
push edx
call fcn.1009b9d0
or eax, 0xffffffff
xor esi, esi
fild dword [esp + 0x48c]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
fdivr qword [0x100fd460]
mov dword [esp + 0x8c], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x14c], eax
mov dword [esp + 0x17c], eax
mov dword [esp + 0x180], eax
mov dword [esp + 0x184], eax
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], eax
lea eax, [esp + 0x58]
mov dword [esp + 0xc0], esi
push eax
push edi
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xd0], esi
mov dword [esp + 0x108], ebp
mov dword [esp + 0x10c], 8
mov dword [esp + 0x110], ebp
mov dword [esp + 0x148], esi
mov dword [esp + 0x14c], ebp
mov dword [esp + 0x150], esi
mov dword [esp + 0x80], esi
fstp qword [esp + 0x78]
call fcn.1009ff90
cmp eax, esi
jne 0x1004c2dd
push ebx
mov dword [esp + 0x18], esi
call sym.GEAR32PO.OCX_rect_number_of_segments
mov ebp, eax
push edi
mov dword [esp + 0x34], ebp
call sym.GEAR32PO.OCX_GPb_height_get
push edi
mov dword [esp + 0x38], eax
call sym.GEAR32PO.OCX_GPb_width_get
lea ecx, [esp + 0x58]
lea edx, [esp + 0x38]
push ecx
push edx
push edi
mov dword [esp + 0x30], eax
call fcn.10023e30
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.100c4c10
mov ecx, dword [0x10127e5c]
lea edx, [esp + 0x18]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x58]
push edx
push eax
push ecx
push edi
call fcn.100a0090
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jge 0x1004bcbd
mov ebx, ecx
sub ebx, eax
test ebx, ebx
jle 0x1004bcbd
mov ecx, dword [0x10127e58]
lea edx, [esp + 0x14]
push ebp
push edx
push 0
push 1
lea eax, [esp + 0x68]
push 0
push eax
push ecx
push esi
push 5
lea edx, [esp + 0x3c]
push ebx
push edx
push edi
call fcn.10024070
test eax, eax
mov dword [esp + 0x2c], eax
je 0x1004bcb9
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x58]
push eax
inc edx
push ecx
push edi
mov dword [esp + 0x24], edx
call fcn.100a0130
dec ebx
mov esi, eax
test ebx, ebx
jg 0x1004bc6a
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1004c2dd
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], ecx
cmp ecx, eax
jg 0x1004c250
mov eax, dword [esp + 0x24]
lea edx, [eax - 1]
add eax, 0xfffffffe
mov dword [esp + 0x48], edx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add ecx, eax
mov dword [esp + 0x28], eax
test eax, eax
mov dword [esp + 0x24], ecx
jne 0x1004bdcd
mov eax, dword [esi + 8]
mov edi, dword [esi]
xor edx, edx
xor ebx, ebx
mov dl, byte [eax]
mov bl, byte [edi + 2]
mov dword [esp + 0x10], edx
xor edx, edx
mov dl, byte [edi + 1]
mov ebp, dword [esi + 4]
add edx, ebx
xor ebx, ebx
mov bl, byte [edi]
mov dword [esp + 0x28], 1
mov edi, ebx
xor ebx, ebx
mov bl, byte [ebp]
shl edx, 1
neg edi
sub edi, edx
xor edx, edx
mov dl, byte [ebp + 2]
sub ebx, edx
xor edx, edx
mov dl, byte [eax]
lea edi, [edi + ebx*2]
xor ebx, ebx
mov bl, byte [eax + 1]
lea edx, [ebx + edx*2]
xor ebx, ebx
mov bl, byte [eax + 2]
mov eax, dword [esi + 0xc]
shl edx, 1
sub edx, ebx
xor ebx, ebx
mov bl, byte [eax]
lea edi, [edi + edx*2]
xor edx, edx
mov dl, byte [eax + 2]
sub ebx, edx
xor edx, edx
lea eax, [edi + ebx*2]
mov edi, dword [esi + 0x10]
xor ebx, ebx
mov dl, byte [edi + 1]
mov bl, byte [edi + 2]
add edx, ebx
shl edx, 1
sub eax, edx
xor edx, edx
mov dl, byte [edi]
sub eax, edx
cdq
idiv dword [esp + 0x48c]
cmp eax, 0xffffff01
jge 0x1004bd9c
mov eax, 0xffffff01
jmp 0x1004bda8
cmp eax, 0xff
jle 0x1004bda8
mov eax, 0xff
add eax, dword [esp + 0x10]
jns 0x1004bdb2
xor eax, eax
jmp 0x1004bdbe
cmp eax, 0xff
jle 0x1004bdbe
mov eax, 0xff
mov edx, dword [0x10127e58]
mov edi, dword [esp + 0x484]
mov byte [edx], al
cmp dword [esp + 0x28], 1
jne 0x1004beb7
mov edi, dword [esi + 8]
mov ebp, dword [esi]
xor eax, eax
xor edx, edx
mov al, byte [edi + 1]
mov dl, byte [ebp + 3]
mov dword [esp + 0x10], eax
xor eax, eax
mov al, byte [ebp + 2]
xor ebx, ebx
shl edx, 1
neg eax
sub eax, edx
xor edx, edx
mov dl, byte [ebp + 1]
mov dword [esp + 0x28], 2
sub eax, edx
xor edx, edx
mov dl, byte [ebp]
mov ebp, dword [esi + 4]
sub eax, edx
xor edx, edx
mov dl, byte [ebp + 1]
mov bl, byte [ebp + 3]
sub edx, ebx
xor ebx, ebx
mov bl, byte [edi + 3]
lea eax, [eax + edx*2]
xor edx, edx
mov dl, byte [edi + 1]
shl edx, 2
sub edx, ebx
xor ebx, ebx
mov bl, byte [edi + 2]
add edx, ebx
xor ebx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
lea edi, [eax + edx*2]
mov eax, dword [esi + 0xc]
xor edx, edx
mov dl, byte [eax + 1]
mov bl, byte [eax + 3]
sub edx, ebx
lea eax, [edi + edx*2]
mov edi, dword [esi + 0x10]
xor edx, edx
mov dl, byte [edi + 3]
shl edx, 1
sub eax, edx
xor edx, edx
mov dl, byte [edi + 2]
sub eax, edx
xor edx, edx
mov dl, byte [edi + 1]
sub eax, edx
xor edx, edx
mov dl, byte [edi]
sub eax, edx
cdq
idiv dword [esp + 0x48c]
cmp eax, 0xffffff01
jge 0x1004be85
mov eax, 0xffffff01
jmp 0x1004be91
cmp eax, 0xff
jle 0x1004be91
mov eax, 0xff
add eax, dword [esp + 0x10]
jns 0x1004be9b
xor eax, eax
jmp 0x1004bea7
cmp eax, 0xff
jle 0x1004bea7
mov eax, 0xff
mov edx, dword [0x10127e58]
mov edi, dword [esp + 0x484]
mov byte [edx + 1], al
mov eax, dword [esp + 0x488]
mov edx, dword [esp + 0x48]
cmp dword [eax + 8], edx
jne 0x1004bf9d
mov eax, dword [esi + 8]
dec ecx
xor edx, edx
xor ebx, ebx
mov dl, byte [eax + ecx]
lea edi, [eax + ecx]
mov eax, dword [esi]
mov dword [esp + 0x10], edx
add eax, ecx
xor edx, edx
mov ebp, dword [esi + 4]
mov dword [esp + 0x24], ecx
mov dl, byte [eax - 2]
mov bl, byte [eax - 1]
add edx, ebx
xor ebx, ebx
mov bl, byte [eax]
add ebp, ecx
mov eax, ebx
xor ebx, ebx
mov bl, byte [ebp]
shl edx, 1
neg eax
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 2]
sub ebx, edx
xor edx, edx
mov dl, byte [edi]
lea eax, [eax + ebx*2]
xor ebx, ebx
mov bl, byte [edi - 1]
lea edx, [ebx + edx*2]
xor ebx, ebx
mov bl, byte [edi - 2]
shl edx, 1
sub edx, ebx
xor ebx, ebx
lea edi, [eax + edx*2]
mov eax, dword [esi + 0xc]
add eax, ecx
xor edx, edx
mov dl, byte [eax - 2]
mov bl, byte [eax]
sub ebx, edx
xor edx, edx
lea eax, [edi + ebx*2]
mov edi, dword [esi + 0x10]
add edi, ecx
xor ebx, ebx
mov dl, byte [edi - 2]
mov bl, byte [edi - 1]
add edx, ebx
shl edx, 1
sub eax, edx
xor edx, edx
mov dl, byte [edi]
sub eax, edx
cdq
idiv dword [esp + 0x48c]
cmp eax, 0xffffff01
jge 0x1004bf6b
mov eax, 0xffffff01
jmp 0x1004bf77
cmp eax, 0xff
jle 0x1004bf77
mov eax, 0xff
add eax, dword [esp + 0x10]
jns 0x1004bf81
xor eax, eax
jmp 0x1004bf8d
cmp eax, 0xff
jle 0x1004bf8d
mov eax, 0xff
mov edx, dword [0x10127e58]
mov edi, dword [esp + 0x484]
mov byte [ecx + edx], al
mov eax, dword [esp + 0x488]
mov edx, dword [esp + 0x54]
cmp dword [eax + 8], edx
jl 0x1004c098
mov eax, dword [esi + 8]
dec ecx
xor edx, edx
xor ebx, ebx
mov dl, byte [eax + ecx]
lea ebp, [eax + ecx]
mov eax, dword [esi]
mov dword [esp + 0x10], edx
add eax, ecx
xor edx, edx
mov dword [esp + 0x24], ecx
mov bl, byte [eax - 1]
mov dl, byte [eax - 2]
mov edi, ebx
xor ebx, ebx
shl edx, 1
neg edi
sub edi, edx
xor edx, edx
mov dl, byte [eax + 1]
sub edi, edx
xor edx, edx
mov dl, byte [eax]
mov eax, dword [esi + 4]
sub edi, edx
add eax, ecx
xor edx, edx
mov dl, byte [eax - 2]
mov bl, byte [eax]
xor eax, eax
sub ebx, edx
mov al, byte [ebp]
xor edx, edx
mov dl, byte [ebp - 2]
lea edi, [edi + ebx*2]
shl eax, 2
sub eax, edx
xor edx, edx
mov dl, byte [ebp + 1]
xor ebx, ebx
add eax, edx
xor edx, edx
mov dl, byte [ebp - 1]
add eax, edx
xor edx, edx
lea edi, [edi + eax*2]
mov eax, dword [esi + 0xc]
add eax, ecx
mov dl, byte [eax - 2]
mov bl, byte [eax]
sub ebx, edx
xor edx, edx
lea eax, [edi + ebx*2]
mov edi, dword [esi + 0x10]
add edi, ecx
mov dl, byte [edi - 2]
shl edx, 1
sub eax, edx
xor edx, edx
mov dl, byte [edi - 1]
sub eax, edx
xor edx, edx
mov dl, byte [edi + 1]
sub eax, edx
xor edx, edx
mov dl, byte [edi]
sub eax, edx
cdq
idiv dword [esp + 0x48c]
cmp eax, 0xffffff01
jge 0x1004c066
mov eax, 0xffffff01
jmp 0x1004c072
cmp eax, 0xff
jle 0x1004c072
mov eax, 0xff
add eax, dword [esp + 0x10]
jns 0x1004c07c
xor eax, eax
jmp 0x1004c088
cmp eax, 0xff
jle 0x1004c088
mov eax, 0xff
mov edx, dword [0x10127e58]
mov edi, dword [esp + 0x484]
mov byte [ecx + edx], al
mov ebp, dword [esp + 0x28]
cmp ebp, ecx
jge 0x1004c1b9
mov eax, dword [esi + 8]
xor ecx, ecx
xor edx, edx
xor ebx, ebx
mov cl, byte [ebp + eax]
lea edi, [ebp + eax]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi]
add ecx, ebp
xor eax, eax
mov dl, byte [ecx + 1]
mov al, byte [ecx - 2]
add eax, edx
xor edx, edx
mov dl, byte [ecx + 2]
add eax, edx
xor edx, edx
mov dl, byte [ecx - 1]
add eax, edx
xor edx, edx
mov dl, byte [ecx]
mov ecx, ebp
add eax, edx
mov edx, dword [esi + 4]
add ecx, edx
xor edx, edx
neg eax
mov dl, byte [ecx]
mov bl, byte [ecx + 2]
shl edx, 1
sub edx, ebx
xor ebx, ebx
mov bl, byte [ecx - 2]
xor ecx, ecx
mov cl, byte [edi]
sub edx, ebx
add eax, edx
xor edx, edx
mov dl, byte [edi + 1]
xor ebx, ebx
lea ecx, [edx + ecx*4]
xor edx, edx
mov dl, byte [edi - 1]
add ecx, edx
xor edx, edx
mov dl, byte [edi + 2]
shl ecx, 1
sub ecx, edx
xor edx, edx
mov dl, byte [edi - 2]
sub ecx, edx
mov edx, dword [esi + 0xc]
add eax, ecx
mov ecx, ebp
add ecx, edx
xor edx, edx
mov dl, byte [ecx]
mov bl, byte [ecx + 2]
shl edx, 1
sub edx, ebx
xor ebx, ebx
mov bl, byte [ecx - 2]
mov ecx, ebp
sub edx, ebx
mov ebx, dword [esi + 0x10]
add eax, edx
add ecx, ebx
xor edx, edx
mov dl, byte [ecx + 2]
sub eax, edx
xor edx, edx
mov dl, byte [ecx - 1]
sub eax, edx
xor edx, edx
mov dl, byte [ecx - 2]
sub eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
sub eax, edx
xor edx, edx
mov dl, byte [ecx]
sub eax, edx
cdq
idiv dword [esp + 0x48c]
cmp eax, 0xffffff01
jge 0x1004c179
mov eax, 0xffffff01
jmp 0x1004c185
cmp eax, 0xff
jle 0x1004c185
mov eax, 0xff
add eax, dword [esp + 0x10]
jns 0x1004c18f
xor eax, eax
jmp 0x1004c19b
cmp eax, 0xff
jle 0x1004c19b
mov eax, 0xff
mov ecx, dword [0x10127e58]
inc ebp
mov byte [ecx + ebp - 1], al
mov eax, dword [esp + 0x24]
cmp ebp, eax
jl 0x1004c0a4
mov edi, dword [esp + 0x484]
mov edx, dword [0x10127e58]
mov eax, dword [esp + 0x1c]
add edx, eax
lea ecx, [esp + 0x18]
push edx
push ecx
push edi
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call fcn.10006d80
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x1004c1f4
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
push ebx
push edx
push ecx
call eax
test eax, eax
je 0x1004c221
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x18]
lea eax, [esp + 0x58]
push edx
inc ebx
push eax
push edi
mov dword [esp + 0x24], ebx
call fcn.100a0130
mov esi, eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
cmp ecx, eax
jle 0x1004bceb
jmp 0x1004c24c
mov edx, dword [esp + 0x14]
push ebx
push edx
push 0xfffff7bf
push 0x9f3
push str.C:_accusoftgear_sourceIMG_PROC_filterip.c
call fcn.10046940
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], 0
inc eax
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1004c2dd
mov eax, dword [esp + 0x488]
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffffe
mov eax, dword [eax + 0xc]
cmp eax, ecx
jl 0x1004c2dd
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x5c]
sub eax, ebx
lea ebx, [ecx - 1]
sub ecx, eax
cmp ebx, ecx
mov dword [esp + 0x34], eax
jl 0x1004c2dd
mov ecx, dword [0x10127e58]
lea edx, [esp + 0x14]
push ebp
push edx
push 0
push 1
lea eax, [esp + 0x68]
push 0
push eax
push ecx
push esi
push ebx
lea edx, [esp + 0x3c]
push 0
push edx
push edi
call fcn.10024070
test eax, eax
je 0x1004c2dd
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x58]
push eax
inc edx
push ecx
push edi
mov dword [esp + 0x24], edx
call fcn.100a0130
dec ebx
mov esi, eax
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x34]
sub edx, ecx
cmp ebx, edx
jge 0x1004c288
call fcn.100a0020
pop ebp
pop esi
call fcn.10046b40
pop edi
pop ebx
add esp, 0x470
ret 0xc