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

Disassembly:
sub esp, 0x4a0
push ebx
push ebp
push esi
lea eax, [esp + 0x6c]
push edi
lea ecx, [esp + 0x78]
mov ebx, 1
push eax
push ecx
mov dword [esp + 0x54], ebx
call fcn.100d3780
mov edx, dword [esp + 0x4b8]
mov ebp, dword [esp + 0x4b4]
push ebp
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, 0x18
je 0x100502c8
push 0
push eax
push 0xfffff448
push 0x1553
jmp 0x100509a6
mov eax, dword [esp + 0x4bc]
cmp eax, 4
ja case.default.0x100502d4
jmp dword [eax*4 + 0x100509c4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
jmp 0x10050354
mov dword [esp + 0x10], 3
mov dword [esp + 0x18], 9
jmp 0x10050350
mov dword [esp + 0x10], 5
mov dword [esp + 0x18], 0x19
jmp 0x10050350
mov dword [esp + 0x10], 7
mov dword [esp + 0x18], 0x31
jmp 0x10050350
mov dword [esp + 0x10], 9
mov dword [esp + 0x18], 0x51
jmp 0x10050350
push 0
push eax
push 0xfffff308
push 0x1570
push str.C:_accusoftgear_sourceIMG_PROC_filterip.c
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], ebx
call fcn.10046940
mov ebx, dword [esp + 0x10]
test ebx, ebx
jle 0x100509b0
push ebp
call sym.GEAR32PO.OCX_GPb_height_get
push ebp
mov dword [esp + 0x88], eax
call sym.GEAR32PO.OCX_GPb_width_get
mov ecx, eax
mov eax, ebx
cdq
sub eax, edx
mov dword [esp + 0x80], ecx
sar eax, 1
sub ecx, eax
push eax
lea edx, [eax + eax*2]
push eax
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x5c], ecx
lea ecx, [eax + 1]
imul ecx, ebx
push ebx
lea edx, [esp + 0x94]
push ebx
push edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x6c], ecx
call fcn.1009b9d0
test ebx, ebx
jle 0x100503cf
lea edx, [esp + 0xac]
mov esi, ebx
mov edi, edx
mov ecx, ebx
mov eax, 1
add edx, 0x40
dec esi
rep stosd dword es:[edi], eax
jne 0x100503be
fild dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0xa8], edi
fdivr qword [0x100fd460]
fstp qword [esp + 0xa0]
call fcn.100a0c60
push 0x200
push eax
mov dword [esp + 0x7c], eax
call fcn.100a0c80
mov esi, eax
lea eax, [esp + 0x88]
push eax
push ebp
mov dword [esp + 0x64], esi
call fcn.1009ff90
cmp eax, edi
jne 0x1005097d
cmp esi, edi
je 0x1005097d
mov ecx, dword [esp + 0xa8]
push edi
push ecx
push esi
call fcn.10023ea0
add esi, 0x100
mov dword [esp + 0x44], edi
mov edx, dword [esp + 0x4b8]
mov dword [esp + 0x14], esi
push edx
call sym.GEAR32PO.OCX_rect_number_of_segments
mov esi, eax
lea eax, [esp + 0x88]
lea ecx, [esp + 0x60]
push eax
push ecx
push ebp
mov dword [esp + 0x5c], esi
call fcn.10023e30
mov edi, dword [esp + 0x4b8]
push edi
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call fcn.100c4c10
lea ecx, [esp + 0x38]
lea edx, [esp + 0x88]
mov dword [esp + 0x40], eax
mov eax, dword [0x10127e5c]
push ecx
push edx
push eax
push ebp
call fcn.100a0090
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 4]
cmp eax, ecx
jge 0x10050518
mov edi, ecx
sub edi, eax
test edi, edi
jle 0x10050518
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 1
lea ecx, [esp + 0x48]
push esi
push ecx
push edx
mov edx, dword [0x10127e58]
push 0
lea ecx, [esp + 0x9c]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push ebx
lea ecx, [esp + 0x60]
push edi
push ecx
push ebp
call fcn.10024d10
test eax, eax
mov dword [esp + 0x4c], eax
je 0x10050514
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x38]
lea eax, [esp + 0x88]
push edx
inc ecx
push eax
push ebp
mov dword [esp + 0x44], ecx
call fcn.100a0130
dec edi
test edi, edi
mov dword [esp + 0x1c], eax
jg 0x100504b2
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x1005097d
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x38], ecx
cmp ecx, eax
jg 0x100508d0
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
lea ecx, [eax + eax*2]
mov dword [esp + 0x2c], ecx
lea edx, [ecx + esi*2]
add esi, edx
mov edx, dword [esp + 0x24]
cmp ecx, edx
jge 0x1005065e
mov edx, ebx
mov eax, 0x55555556
imul edx, ecx
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x58]
add edx, eax
mov ebp, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
lea eax, [edx + ecx]
mov dword [esp + 0x20], eax
jmp 0x10050584
mov eax, dword [esp + 0x20]
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
jle 0x100505fe
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x28]
test eax, eax
mov ecx, dword [edx]
jl 0x100505e4
lea edx, [eax + 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
xor eax, eax
mov ebp, dword [esp + 0x30]
mov al, byte [ecx]
add edi, eax
inc ecx
xor eax, eax
mov al, byte [ecx]
add ebp, eax
inc ecx
xor eax, eax
mov dword [esp + 0x30], ebp
mov al, byte [ecx]
mov ebp, dword [esp + 0x34]
add ebp, eax
inc ecx
dec edx
mov dword [esp + 0x34], ebp
jne 0x100505b4
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
add edx, 4
dec ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x48], ecx
jne 0x1005059e
mov ecx, dword [esp + 0x2c]
mov eax, edi
mov edi, dword [esp + 0x20]
cdq
idiv ebp
mov edx, dword [0x10127e58]
add ecx, 3
add edi, 3
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], edi
mov byte [ecx + edx - 3], al
mov eax, dword [esp + 0x30]
cdq
idiv ebp
mov edx, dword [0x10127e58]
mov byte [ecx + edx - 2], al
mov eax, dword [esp + 0x34]
cdq
idiv ebp
mov edx, dword [0x10127e58]
add ebp, ebx
mov dword [esp + 0x14], ebp
mov byte [ecx + edx - 1], al
mov eax, dword [esp + 0x24]
cmp ecx, eax
jl 0x10050580
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x4b4]
cmp esi, dword [esp + 0x54]
jle 0x10050770
mov eax, 0x55555556
mov ebp, dword [esp + 0x80]
imul esi
mov eax, edx
mov edi, ebp
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x58]
sub edi, edx
mov edx, dword [esp + 0x24]
imul edi, ebx
add edi, eax
lea eax, [edx + ebp*2]
add ebp, eax
sub ebp, esi
xor eax, eax
sub esi, 3
cmp ebx, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
jle 0x10050722
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x24]
mov ecx, esi
sub ecx, edx
mov edx, dword [esp + 0x28]
add ecx, dword [edx]
test ebp, ebp
jl 0x10050708
lea edx, [ebp + 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
mov ebx, dword [esp + 0x20]
xor eax, eax
mov al, byte [ecx]
add ebx, eax
inc ecx
xor eax, eax
mov dword [esp + 0x20], ebx
mov al, byte [ecx]
mov ebx, dword [esp + 0x30]
add ebx, eax
inc ecx
xor eax, eax
mov dword [esp + 0x30], ebx
mov al, byte [ecx]
mov ebx, dword [esp + 0x34]
add ebx, eax
inc ecx
dec edx
mov dword [esp + 0x34], ebx
jne 0x100506d4
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
add ecx, 4
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
jne 0x100506b6
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add ebp, 3
cdq
idiv edi
mov edx, dword [0x10127e58]
mov byte [esi + edx], al
mov eax, dword [esp + 0x30]
cdq
idiv edi
mov edx, dword [0x10127e58]
mov byte [esi + edx + 1], al
mov eax, dword [esp + 0x34]
cdq
idiv edi
mov edx, dword [0x10127e58]
add edi, ebx
mov byte [esi + edx + 2], al
mov eax, dword [esp + 0x54]
cmp esi, eax
jg 0x10050695
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x4b4]
mov edi, dword [esp + 0x24]
sub esi, edi
sub ecx, edi
mov edx, esi
mov esi, ecx
cmp esi, edx
mov dword [esp + 0x48], edx
jge 0x10050837
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor ebp, ebp
xor edi, edi
test eax, eax
jle 0x100507de
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x2c]
mov ecx, esi
mov eax, dword [edx]
mov edx, dword [esp + 0x10]
add ecx, eax
xor eax, eax
mov al, byte [ecx]
add edi, eax
inc ecx
xor eax, eax
mov al, byte [ecx]
add ebp, eax
inc ecx
xor eax, eax
mov al, byte [ecx]
add ebx, eax
inc ecx
dec edx
jne 0x100507b0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add ecx, 4
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], eax
jne 0x100507a2
mov eax, edi
mov edi, dword [esp + 0x18]
cdq
idiv edi
mov edx, dword [0x10127e58]
mov ecx, dword [esp + 0x24]
add edx, ecx
add esi, 3
mov byte [edx + esi - 3], al
mov eax, ebp
cdq
idiv edi
mov edx, dword [0x10127e58]
add edx, ecx
mov byte [edx + esi - 2], al
mov eax, ebx
cdq
idiv edi
mov edx, dword [0x10127e58]
add ecx, edx
mov byte [ecx + esi - 1], al
mov eax, dword [esp + 0x48]
cmp esi, eax
jl 0x10050788
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x4b4]
mov ecx, dword [0x10127e58]
lea edx, [ecx + eax*2]
add eax, edx
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call fcn.10007040
mov eax, dword [esp + 0x78]
test eax, eax
je 0x10050871
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x70]
push esi
push ecx
push edx
call eax
test eax, eax
je 0x100508a1
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x88]
push eax
inc edi
push ecx
push ebp
mov dword [esp + 0x44], edi
call fcn.100a0130
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
cmp edx, dword [esp + 0x6c]
jle 0x10050534
jmp 0x100508cc
mov eax, dword [esp + 0x44]
push esi
push eax
push 0xfffff7bf
push 0x1627
push str.C:_accusoftgear_sourceIMG_PROC_filterip.c
call fcn.10046940
mov eax, dword [esp + 0x44]
mov dword [esp + 0x4c], 0
inc eax
mov dword [esp + 0x44], eax
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x1005097d
mov ecx, dword [esp + 0x4b8]
mov edi, dword [esp + 0x7c]
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x84]
sub ecx, edi
cmp eax, ecx
jl 0x1005097d
sub eax, dword [esp + 0x6c]
mov ebx, eax
mov eax, dword [esp + 0x8c]
lea edi, [eax - 1]
sub eax, ebx
cmp edi, eax
jl 0x1005097d
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x18]
push 1
lea edx, [esp + 0x48]
push esi
add eax, 0x100
push edx
push eax
mov eax, dword [0x10127e58]
push 0
lea edx, [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
push edi
lea edx, [esp + 0x60]
push 0
push edx
push ebp
call fcn.10024d10
test eax, eax
je 0x1005097d
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x88]
push eax
inc edx
push ecx
push ebp
mov dword [esp + 0x44], edx
call fcn.100a0130
dec edi
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x1c], eax
sub edx, ebx
cmp edi, edx
jge 0x10050911
call fcn.100a0020
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x100509b0
push eax
mov eax, dword [esp + 0x78]
push eax
call fcn.100a1010
test eax, eax
je 0x100509b0
push 0
push eax
push 0xfffff42a
push 0x165d
push str.C:_accusoftgear_sourceIMG_PROC_filterip.c
call fcn.10046940
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4a0
ret 0xc