Function at 0x1000bde0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.100d3780
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
mov dword [esp + 0x48], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [edx + 0xc]
mov edx, dword [esp + 0x5c]
push edx
mov dword [esp + 0x58], ecx
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
mov edi, eax
mov eax, dword [esp + 0x64]
push eax
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
mov esi, eax
mov ecx, dword [esp + 0x60]
push ecx
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
cmp esi, 0x18
jne 0x1000c2f6
cmp edi, esi
jne 0x1000c2f6
cmp eax, 8
jne 0x1000c2f6
lea edx, [esp + 0x48]
push edx
call fcn.100c4c10
mov esi, eax
call fcn.100a0c60
lea ebp, [esi + esi*2]
mov edi, eax
push ebp
push edi
mov dword [esp + 0x18], edi
call fcn.100a0c80
mov ebx, eax
push esi
push edi
mov dword [esp + 0x70], ebx
call fcn.100a0c80
mov edi, eax
test edi, edi
je 0x1000c25a
test ebx, ebx
je 0x1000c256
mov ebp, dword [esp + 0x60]
push ebp
call sym.GEAR32PO.OCX_GPb_width_get
mov esi, eax
push ebp
dec esi
call sym.GEAR32PO.OCX_GPb_height_get
mov ebp, eax
mov eax, dword [esp + 0x5c]
dec ebp
push eax
call sym.GEAR32PO.OCX_GPb_width_get
mov ecx, dword [esp + 0x5c]
push ecx
call sym.GEAR32PO.OCX_GPb_height_get
lea edx, [esp + 0x48]
mov ecx, dword [esp + 0x6c]
push edx
mov eax, dword [ecx]
mov dword [esp + 0x3c], eax
add esi, eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], eax
add ebp, eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x48], ebp
push eax
call fcn.100c4e20
test eax, eax
je 0x1000c28b
lea ecx, [esp + 0x38]
push ecx
call sym.GEAR32PO.OCX_rect_number_of_segments
xor ebp, ebp
mov esi, eax
lea edx, [esp + 0x2c]
push ebp
lea eax, [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x20], esi
call sym.GEAR32PO.OCX_rect_segment_get
lea ecx, [esp + 0x38]
push ecx
call fcn.100c4c10
cmp esi, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebp
jle 0x1000c28b
mov edx, dword [esp + 0x70]
lea esi, [edx - 1]
mov dword [esp + 0x70], esi
jmp 0x1000bf40
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x2c]
push ebx
push eax
push ecx
call sym.GEAR32PO.OCX_GPb_row_get
lea edx, [esp + 0x20]
push edi
mov eax, dword [esp + 0x64]
push edx
push eax
call sym.GEAR32PO.OCX_GPb_row_get
cmp esi, 7
ja case.default.0x1000bf69
jmp dword [esi*4 + 0x1000c320]
mov eax, dword [esp + 0x28]
xor ebp, ebp
test eax, eax
jle case.default.0x1000bf69
mov esi, ebx
xor ecx, ecx
xor eax, eax
xor edx, edx
mov al, byte [ecx + esi]
mov dl, byte [edi + ebp]
add eax, edx
cmp eax, 0xff
jle 0x1000bf9a
mov eax, 0xff
mov byte [ecx + esi], al
inc ecx
cmp ecx, 3
jl 0x1000bf82
mov eax, dword [esp + 0x28]
inc ebp
add esi, 3
cmp ebp, eax
jl 0x1000bf80
jmp case.default.0x1000bf69
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
jle case.default.0x1000bf69
mov edx, ebx
xor ecx, ecx
xor eax, eax
mov al, byte [ecx + edx]
mov ebp, eax
xor eax, eax
mov al, byte [edi + esi]
lea eax, [ebp + eax - 0x7f]
test eax, eax
jge 0x1000bfde
xor eax, eax
jmp 0x1000bfea
cmp eax, 0xff
jle 0x1000bfea
mov eax, 0xff
mov byte [ecx + edx], al
inc ecx
cmp ecx, 3
jl 0x1000bfc6
mov eax, dword [esp + 0x28]
inc esi
add edx, 3
cmp esi, eax
jl 0x1000bfc4
jmp case.default.0x1000bf69
mov eax, dword [esp + 0x28]
xor ebp, ebp
test eax, eax
jle case.default.0x1000bf69
mov esi, ebx
xor ecx, ecx
xor edx, edx
xor eax, eax
mov dl, byte [ecx + esi]
mov al, byte [edi + ebp]
sub edx, eax
mov eax, 0
sets al
dec eax
and eax, edx
mov byte [ecx + esi], al
inc ecx
cmp ecx, 3
jl 0x1000c016
mov eax, dword [esp + 0x28]
inc ebp
add esi, 3
cmp ebp, eax
jl 0x1000c014
jmp case.default.0x1000bf69
mov eax, dword [esp + 0x28]
xor ebp, ebp
test eax, eax
jle case.default.0x1000bf69
mov esi, ebx
xor ecx, ecx
xor eax, eax
xor edx, edx
mov al, byte [ecx + esi]
mov dl, byte [edi + ebp]
imul eax, edx
test eax, eax
jge 0x1000c06e
xor eax, eax
jmp 0x1000c07a
cmp eax, 0xff
jle 0x1000c07a
mov eax, 0xff
mov byte [ecx + esi], al
inc ecx
cmp ecx, 3
jl 0x1000c059
mov eax, dword [esp + 0x28]
inc ebp
add esi, 3
cmp ebp, eax
jl 0x1000c057
jmp case.default.0x1000bf69
mov eax, dword [esp + 0x28]
xor ecx, ecx
test eax, eax
jle case.default.0x1000bf69
mov esi, ebx
mov ebp, edi
mov dword [esp + 0x6c], 3
sub ebp, ebx
cmp byte [ebp + esi], 0
jne 0x1000c0c4
mov al, byte [esi]
neg al
sbb eax, eax
and eax, 0xff
jmp 0x1000c0e8
xor eax, eax
xor ebx, ebx
mov al, byte [esi]
mov bl, byte [edi + ecx]
cdq
idiv ebx
test eax, eax
jge 0x1000c0d8
xor eax, eax
jmp 0x1000c0e4
cmp eax, 0xff
jle 0x1000c0e4
mov eax, 0xff
mov ebx, dword [esp + 0x68]
mov byte [esi], al
mov eax, dword [esp + 0x6c]
inc esi
dec eax
mov dword [esp + 0x6c], eax
jne 0x1000c0b0
mov eax, dword [esp + 0x28]
inc ecx
cmp ecx, eax
jl 0x1000c0a4
jmp case.default.0x1000bf69
mov eax, dword [esp + 0x28]
xor ebp, ebp
test eax, eax
jle case.default.0x1000bf69
mov esi, ebx
xor eax, eax
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + esi]
mov dl, byte [edi + ebp]
and ecx, edx
mov byte [eax + esi], cl
inc eax
cmp eax, 3
jl 0x1000c116
mov eax, dword [esp + 0x28]
inc ebp
add esi, 3
cmp ebp, eax
jl 0x1000c114
jmp case.default.0x1000bf69
mov eax, dword [esp + 0x28]
xor ebp, ebp
test eax, eax
jle case.default.0x1000bf69
mov esi, ebx
xor eax, eax
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + esi]
mov dl, byte [edi + ebp]
or ecx, edx
mov byte [eax + esi], cl
inc eax
cmp eax, 3
jl 0x1000c147
mov eax, dword [esp + 0x28]
inc ebp
add esi, 3
cmp ebp, eax
jl 0x1000c145
jmp case.default.0x1000bf69
mov eax, dword [esp + 0x28]
xor ebp, ebp
test eax, eax
jle case.default.0x1000bf69
mov esi, ebx
xor eax, eax
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + esi]
mov dl, byte [edi + ebp]
xor ecx, edx
mov byte [eax + esi], cl
inc eax
cmp eax, 3
jl 0x1000c178
mov eax, dword [esp + 0x28]
inc ebp
add esi, 3
cmp ebp, eax
jl 0x1000c176
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x2c]
push ebx
push eax
push ecx
call sym.GEAR32PO.OCX_GPb_row_set
mov eax, dword [esp + 0x74]
test eax, eax
je 0x1000c1d0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000c1d0
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push esi
push edx
push ecx
call eax
test eax, eax
je 0x1000c1f3
jmp 0x1000c1d4
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
inc ebp
inc eax
cmp eax, esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], eax
jl 0x1000bf3c
jmp 0x1000c28b
push ebx
mov ebx, dword [esp + 0x14]
push ebx
call fcn.100a1010
test eax, eax
je 0x1000c219
push 0
push eax
push 0xfffff42a
push 0x25c
push str.C:_accusoftgear_sourceIMG_PROCARITH.C
call fcn.10046940
push edi
push ebx
call fcn.100a1010
test eax, eax
je 0x1000c23b
push 0
push eax
push 0xfffff42a
push 0x263
push str.C:_accusoftgear_sourceIMG_PROCARITH.C
call fcn.10046940
push ebx
call fcn.100a12c0
push esi
mov edx, dword [esp + 0x24]
push edx
push 0xfffff7bf
push 0x268
jmp 0x1000c304
test edi, edi
jne 0x1000c271
push 0
push esi
push 0xfffffc18
push 0x1bc
push str.C:_accusoftgear_sourceIMG_PROCARITH.C
call fcn.10046940
test ebx, ebx
jne 0x1000c28f
push ebx
push ebp
push 0xfffffc18
push 0x1bf
push str.C:_accusoftgear_sourceIMG_PROCARITH.C
call fcn.10046940
test ebx, ebx
je 0x1000c2b7
mov esi, dword [esp + 0x10]
push ebx
push esi
call fcn.100a1010
test eax, eax
je 0x1000c2bb
push 0
push eax
push 0xfffff42a
push 0x276
push str.C:_accusoftgear_sourceIMG_PROCARITH.C
call fcn.10046940
jmp 0x1000c2bb
mov esi, dword [esp + 0x10]
test edi, edi
je 0x1000c2e1
push edi
push esi
call fcn.100a1010
test eax, eax
je 0x1000c2e1
push 0
push eax
push 0xfffff42a
push 0x27d
push str.C:_accusoftgear_sourceIMG_PROCARITH.C
call fcn.10046940
push esi
call fcn.100a12c0
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x1c
push 0
push 0
push 0xfffff402
push 0x1ac
push str.C:_accusoftgear_sourceIMG_PROCARITH.C
call fcn.10046940
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x1c