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

Disassembly:
sub esp, 0x49c
push ebx
push ebp
push esi
lea eax, [esp + 0x78]
push edi
lea ecx, [esp + 0x70]
mov esi, 1
push eax
push ecx
mov dword [esp + 0x48], esi
call fcn.100d3780
mov edx, dword [esp + 0x4b4]
mov ebx, dword [esp + 0x4b0]
push ebx
mov eax, dword [edx]
mov dword [esp + 0x64], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x68], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x6c], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x70], ecx
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
cmp eax, 0x10
je 0x1004fc48
push 0
push eax
push 0xfffff448
push 0x1410
jmp 0x1005022a
mov ecx, dword [esp + 0x4b8]
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x1004fc57
jmp dword [eax*4 + 0x10050248]
mov ebp, 3
mov dword [esp + 0x1c], 9
mov dword [esp + 0x10], ebp
jmp 0x1004fcce
mov dword [esp + 0x10], 5
mov dword [esp + 0x1c], 0x19
jmp 0x1004fcca
mov dword [esp + 0x10], 7
mov dword [esp + 0x1c], 0x31
jmp 0x1004fcca
mov dword [esp + 0x10], 9
mov dword [esp + 0x1c], 0x51
jmp 0x1004fcca
push 0
push ecx
push 0xfffff308
push 0x1429
push str.C:_accusoftgear_sourceIMG_PROC_filterip.c
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], esi
call fcn.10046940
mov ebp, dword [esp + 0x10]
test ebp, ebp
jle 0x10050234
mov eax, ebp
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push esi
push esi
lea eax, [esi + 1]
push ebp
imul eax, ebp
mov dword [esp + 0x60], eax
lea eax, [esp + 0x90]
lea edx, [esi + esi]
push ebp
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x6c], edx
call fcn.1009b9d0
test ebp, ebp
jle 0x1004fd2d
lea edx, [esp + 0xa8]
mov dword [esp + 0x38], ebp
mov ecx, ebp
mov eax, 1
mov edi, edx
add edx, 0x40
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x38], eax
jne 0x1004fd14
fild dword [esp + 0x1c]
mov dword [esp + 0xa4], 0
fdivr qword [0x100fd460]
fstp qword [esp + 0x9c]
call fcn.100a0c60
push 0x40000
push eax
mov dword [esp + 0x88], eax
call fcn.100a0c80
lea ecx, [esp + 0x84]
mov edi, eax
push ecx
push ebx
mov dword [esp + 0x58], edi
call fcn.1009ff90
test eax, eax
jne 0x10050202
test edi, edi
je 0x10050202
mov edx, dword [esp + 0xa4]
push eax
push edx
push edi
call fcn.10023f80
add edi, 0x20000
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x4b4]
mov dword [esp + 0x5c], edi
push eax
call sym.GEAR32PO.OCX_rect_number_of_segments
push ebx
mov dword [esp + 0x3c], eax
call sym.GEAR32PO.OCX_GPb_height_get
push ebx
mov dword [esp + 0x7c], eax
call sym.GEAR32PO.OCX_GPb_width_get
lea ecx, [esp + 0x84]
lea edx, [esp + 0x60]
push ecx
push edx
push ebx
mov dword [esp + 0x80], eax
call fcn.10023e30
mov eax, dword [esp + 0x4b4]
push eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call fcn.100c4c10
mov edx, dword [0x10127e5c]
lea ecx, [esp + 0x84]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push ebx
call fcn.100a0090
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4b4]
mov eax, dword [eax + 4]
cmp eax, ecx
jge 0x1004fe9e
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x1004fe9a
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x34]
push ecx
push edx
mov edx, dword [0x10127e58]
push edi
push 0
lea ecx, [esp + 0x94]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
push ebp
lea ecx, [esp + 0x4c]
push esi
push ecx
push ebx
call fcn.10024680
test eax, eax
mov dword [esp + 0x40], eax
je 0x1004fe96
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x28]
lea eax, [esp + 0x84]
push edx
inc ecx
push eax
push ebx
mov dword [esp + 0x34], ecx
call fcn.100a0130
dec esi
test esi, esi
mov dword [esp + 0x14], eax
jg 0x1004fe36
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x100501fe
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x28], ecx
cmp ecx, eax
jg 0x10050163
jmp 0x1004fec0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov ebx, eax
add ecx, eax
cmp eax, esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ecx
jge 0x1004ff6b
mov ebx, ebp
mov edx, dword [esp + 0x54]
imul ebx, eax
add ebx, edx
lea edi, [esi + eax]
xor esi, esi
test ebp, ebp
jle 0x1004ff32
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
test edi, edi
mov ecx, dword [eax]
jl 0x1004ff18
lea edx, [edi + 1]
xor eax, eax
mov ah, byte [ecx + 1]
mov al, byte [ecx]
add ecx, 2
add esi, eax
dec edx
jne 0x1004ff09
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add ecx, 4
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jne 0x1004fefc
mov ecx, dword [esp + 0x4c]
mov eax, esi
mov esi, dword [0x10127e58]
cdq
idiv ebx
mov edx, dword [esp + 0x44]
add ebx, ebp
mov byte [esi + edx*2], al
mov esi, dword [0x10127e58]
shr eax, 8
mov byte [esi + edx*2 + 1], al
mov eax, dword [esp + 0x18]
inc edi
inc edx
cmp edx, eax
mov dword [esp + 0x44], edx
jl 0x1004feea
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
mov ebx, edx
mov edi, dword [esp + 0x74]
mov edx, edi
sub edx, esi
cmp ecx, edx
jle 0x10050039
mov eax, edi
mov edi, ebp
sub eax, ecx
mov ebx, dword [esp + 0x54]
imul edi, eax
add edi, ebx
lea ebx, [esi + eax]
mov eax, ecx
lea esi, [ecx + ecx]
sub eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
dec ecx
sub esi, 2
xor ebp, ebp
test eax, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], esi
jle 0x1004fffc
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x20], eax
sub esi, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x24]
mov ecx, esi
add ecx, dword [edx]
test ebx, ebx
jl 0x1004ffde
lea edx, [ebx + 1]
xor eax, eax
mov ah, byte [ecx + 1]
mov al, byte [ecx]
add ecx, 2
add ebp, eax
dec edx
jne 0x1004ffcf
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add ecx, 4
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jne 0x1004ffc0
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov eax, ebp
mov ebp, dword [esp + 0x10]
cdq
idiv edi
mov edx, dword [0x10127e58]
add edi, ebp
mov byte [edx + esi], al
mov edx, dword [0x10127e58]
shr eax, 8
mov byte [edx + esi + 1], al
mov eax, dword [esp + 0x3c]
inc ebx
dec eax
mov dword [esp + 0x3c], eax
jne 0x1004ff98
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x18]
sub ecx, esi
sub ebx, esi
cmp ebx, ecx
mov dword [esp + 0x48], ecx
jge 0x100500ba
mov eax, dword [esp + 0x58]
lea edi, [eax + ebx*2]
mov dword [esp + 0x20], edi
xor esi, esi
test ebp, ebp
jle 0x1005008c
mov edi, dword [esp + 0x14]
mov dword [esp + 0x3c], ebp
mov ecx, dword [edi]
lea eax, [ebx + ebx]
add ecx, eax
mov edx, ebp
xor eax, eax
mov ah, byte [ecx + 1]
mov al, byte [ecx]
add ecx, 2
add esi, eax
dec edx
jne 0x10050067
mov eax, dword [esp + 0x3c]
add edi, 4
dec eax
mov dword [esp + 0x3c], eax
jne 0x1005005e
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov eax, esi
add edi, 2
cdq
idiv dword [esp + 0x1c]
mov edx, dword [0x10127e58]
mov dword [esp + 0x20], edi
mov byte [edx + edi - 2], al
mov edx, dword [0x10127e58]
shr eax, 8
mov byte [edx + edi - 1], al
inc ebx
cmp ebx, ecx
jl 0x10050050
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x10127e58]
mov edi, dword [esp + 0x4b0]
lea edx, [ecx + eax*2]
lea eax, [esp + 0x28]
push edx
push eax
push edi
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call fcn.10006ee0
mov eax, dword [esp + 0x70]
test eax, eax
je 0x100500f9
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x7c]
push esi
push ecx
push edx
call eax
test eax, eax
je 0x10050129
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x84]
push eax
inc ebx
push ecx
push edi
mov dword [esp + 0x34], ebx
call fcn.100a0130
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
cmp edx, dword [esp + 0x6c]
jle 0x1004febc
jmp 0x10050154
mov eax, dword [esp + 0x34]
push esi
push eax
push 0xfffff7bf
push 0x14dd
push str.C:_accusoftgear_sourceIMG_PROC_filterip.c
call fcn.10046940
mov eax, dword [esp + 0x34]
mov dword [esp + 0x40], 0
inc eax
mov dword [esp + 0x34], eax
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x4b0]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x100501fe
mov ecx, dword [esp + 0x4b4]
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x78]
sub ecx, esi
cmp eax, ecx
jl 0x100501fe
sub eax, dword [esp + 0x6c]
mov ebp, eax
mov eax, dword [esp + 0x88]
lea esi, [eax - 1]
sub eax, ebp
cmp esi, eax
jl 0x100501fe
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push edx
push eax
mov eax, dword [0x10127e58]
push edi
push 0
lea edx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
push esi
lea edx, [esp + 0x4c]
push 0
push edx
push ebx
call fcn.10024680
test eax, eax
je 0x100501fe
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x84]
push eax
inc edx
push ecx
push ebx
mov dword [esp + 0x34], edx
call fcn.100a0130
dec esi
mov edx, dword [esp + 0x88]
mov dword [esp + 0x14], eax
sub edx, ebp
cmp esi, edx
jge 0x10050199
mov edi, dword [esp + 0x50]
call fcn.100a0020
test edi, edi
je 0x10050234
mov eax, dword [esp + 0x80]
push edi
push eax
call fcn.100a1010
test eax, eax
je 0x10050234
push 0
push eax
push 0xfffff42a
push 0x1512
push str.C:_accusoftgear_sourceIMG_PROC_filterip.c
call fcn.10046940
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x49c
ret 0xc