Function at 0x6c51bb40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [ecx + 0x74]
mov esi, dword [ebp + 0x78]
mov ecx, dword [ecx + 0x3bac]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x26f8]
mov dword [esp + 0x2c], ebx
mov ebx, dword [ebp + 0x7c]
sar esi, cl
mov dword [esp + 0x20], esi
mov esi, dword [ebp + 0x26f0]
mov ecx, eax
mov dword [esp + 0x24], ebx
and ecx, 7
mov dword [esp + 0x3c], esi
mov esi, eax
shr esi, 3
add esi, dword [esp + 0x3c]
movzx edi, byte [esi]
mov ebx, edi
mov edi, dword [ebp + 0x2700]
shl ebx, cl
shr bl, 7
mov byte [esp + 0x39], bl
cmp eax, edi
jge 0x6c51bbac
add eax, 1
mov esi, eax
shr esi, 3
add esi, dword [esp + 0x3c]
mov dword [ebp + 0x26f8], eax
mov esi, dword [esi]
mov ecx, eax
and ecx, 7
bswap esi
shl esi, cl
mov ecx, dword [0x6c662d0c]
shr esi, 0xfc
lea ecx, [ecx + esi*4]
movzx esi, word [ecx]
movsx ecx, word [ecx + 2]
mov word [esp + 0x3a], si
add eax, ecx
cmp eax, edi
cmova eax, edi
cmp si, 6
mov dword [ebp + 0x26f8], eax
mov dword [edx], 0
ja case.default.0x6c51bbf1
movzx eax, si
jmp dword [eax*4 + 0x6c593f94]
mov esi, dword [esp + 0x1c]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], esi
call fcn.6c563768
movsx esi, word [esp + 0x3a]
cmp esi, 4
mov dword [esp + 0x1c], esi
jne 0x6c51bcde
mov eax, dword [esp + 0x34]
movzx edx, byte [esp + 0x39]
mov ecx, dword [esp + 0x34]
add ecx, dword [esp + 0x2c]
xor dl, byte [eax]
mov byte [eax], dl
add eax, 1
cmp dword [esp + 0x2c], 1
jle 0x6c51bc4c
xor dl, byte [eax]
mov byte [eax], dl
add eax, 1
cmp eax, ecx
jne 0x6c51bc41
cmp dword [esp + 0x20], 1
jle 0x6c51bcca
mov ebp, dword [esp + 0x2c]
mov edi, 1
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
sub ebp, 1
mov dword [esp + 0x18], ebp
movzx ebp, byte [esp + 0x39]
neg ecx
lea esi, [eax + ebx + 1]
lea esi, [esi]
mov ebx, dword [esp + 0x18]
movzx eax, byte [esi + ecx - 1]
xor byte [esi - 1], al
mov eax, esi
add ebx, esi
cmp dword [esp + 0x2c], 1
jg 0x6c51bcab
jmp 0x6c51bcbd
mov edx, ebp
xor byte [eax], dl
add eax, 1
cmp ebx, eax
je 0x6c51bcbd
movzx edx, byte [eax - 1]
cmp dl, byte [eax + ecx]
jne 0x6c51bca0
xor byte [eax], dl
add eax, 1
cmp ebx, eax
jne 0x6c51bcab
add edi, 1
add esi, dword [esp + 0x24]
cmp edi, dword [esp + 0x20]
jne 0x6c51bc80
movzx eax, byte [esp + 0x39]
mov edx, dword [esp + 0x1c]
add esp, 0x5c
pop ebx
pop esi
pop edi
lea eax, [eax + edx*2]
pop ebp
ret
cmp esi, 2
je 0x6c51bc22
cmp byte [esp + 0x39], 0
je 0x6c51bcca
mov edx, dword [esp + 0x24]
imul edx, dword [esp + 0x20]
test edx, edx
jle 0x6c51bcca
mov eax, dword [esp + 0x34]
add edx, eax
cmp byte [eax], 0
sete byte [eax]
add eax, 1
cmp eax, edx
jne 0x6c51bd01
jmp 0x6c51bcca
mov ebx, dword [esp + 0x2c]
lea eax, [ebp + 0x26f0]
mov dword [esp + 0x18], eax
test ebx, ebx
jle case.default.0x6c51bbf1
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
nop
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x18]
mov eax, dword [edx + 8]
mov edi, dword [esi + 0x10]
mov edx, eax
mov ecx, eax
shr edx, 3
and ecx, 7
movzx edx, byte [ebx + edx]
shl edx, cl
mov ecx, edx
xor edx, edx
cmp eax, edi
setl dl
add eax, edx
test cl, cl
mov dword [esi + 8], eax
jns 0x6c51c193
mov ecx, dword [esp + 0x20]
xor edx, edx
mov esi, dword [esp + 0x1c]
test ecx, ecx
jg 0x6c51bd96
jmp 0x6c51bdc9
mov eax, dword [ebp + 0x26f8]
mov ebx, dword [ebp + 0x26f0]
mov edi, dword [ebp + 0x2700]
mov ecx, eax
shr ecx, 3
movzx ebx, byte [ebx + ecx]
mov ecx, eax
and ecx, 7
shl ebx, cl
mov ecx, ebx
shr cl, 7
cmp eax, edi
lea ebx, [eax + 1]
cmovl eax, ebx
mov ebx, dword [esp + 0x18]
add edx, 1
mov dword [ebx + 8], eax
mov byte [esi], cl
add esi, dword [esp + 0x24]
cmp edx, dword [esp + 0x20]
jne 0x6c51bd84
add dword [esp + 0x1c], 1
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x1c], eax
je case.default.0x6c51bbf1
mov ebx, dword [ebp + 0x26f0]
jmp 0x6c51bd40
mov dword [edx], 1
movzx eax, byte [esp + 0x39]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x20]
imul ebx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
and ebx, 1
je 0x6c51c1eb
mov eax, dword [ebp + 0x26f8]
mov edi, 1
mov esi, dword [esp + 0x3c]
mov edx, eax
mov ecx, eax
shr edx, 3
and ecx, 7
movzx edx, byte [esi + edx]
shl edx, cl
mov ecx, edx
xor edx, edx
shr cl, 7
cmp eax, dword [ebp + 0x2700]
setl dl
add eax, edx
mov dword [ebp + 0x26f8], eax
mov eax, dword [esp + 0x34]
mov ebx, eax
add ebx, 1
cmp dword [esp + 0x2c], 1
mov byte [eax], cl
mov eax, 1
je 0x6c51c558
mov esi, dword [esp + 0x24]
sub esi, dword [esp + 0x2c]
cmp dword [esp + 0x1c], edi
mov dword [esp + 0x28], esi
jg 0x6c51bea2
jmp case.default.0x6c51bbf1
mov edx, dword [esp + 0x18]
sar edx, 1
mov byte [ebx], dl
add ebx, 1
cmp dword [esp + 0x2c], eax
je 0x6c51c1e0
add edi, 2
cmp dword [esp + 0x1c], edi
jle case.default.0x6c51bbf1
mov ecx, dword [ebp + 0x26f8]
mov esi, dword [ebp + 0x26f0]
shr ecx, 3
mov esi, dword [esi + ecx]
mov ecx, dword [ebp + 0x26f8]
bswap esi
and ecx, 7
shl esi, cl
mov ecx, dword [0x6c662f14]
shr esi, 0xfd
lea esi, [ecx + esi*4]
movzx ecx, word [esi]
movsx esi, word [esi + 2]
movsx edx, cx
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 0x26f8]
add edx, esi
mov esi, dword [ebp + 0x2700]
cmp edx, esi
cmova edx, esi
and ecx, 1
mov dword [ebp + 0x26f8], edx
lea edx, [eax + 1]
add eax, 2
mov byte [ebx], cl
add ebx, 1
cmp edx, dword [esp + 0x2c]
jne 0x6c51be80
add ebx, dword [esp + 0x28]
mov eax, 1
jmp 0x6c51be80
mov eax, dword [esp + 0x20]
mov ecx, 0x55555556
imul ecx
mov eax, dword [esp + 0x20]
sar eax, 0x1f
sub edx, eax
lea eax, [edx + edx*2]
cmp dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
jne 0x6c51c1f8
imul ecx
mov eax, dword [esp + 0x2c]
sar eax, 0x1f
sub edx, eax
lea eax, [edx + edx*2]
cmp dword [esp + 0x2c], eax
je 0x6c51c480
mov esi, dword [esp + 0x20]
test esi, esi
jle 0x6c51c675
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x48], 0
add ebx, ebx
mov dword [esp + 0x28], ebx
and esi, 1
add ebx, dword [esp + 0x24]
add eax, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x18], ebp
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
add esi, 1
mov ebx, edx
sub ebx, dword [esp + 0x44]
cmp dword [esp + 0x2c], eax
mov dword [esp + 0x3c], ebx
jg 0x6c51c03c
jmp 0x6c51c491
movsx ebp, word [esp + 0x32]
mov ecx, dword [esp + 0x18]
add eax, ebx
cmp eax, dword [esp + 0x1c]
cmova eax, dword [esp + 0x1c]
test ebp, ebp
mov dword [ecx + 0x26f8], eax
js 0x6c51c369
mov eax, ebp
mov ebx, dword [esp + 0x24]
and eax, 1
mov byte [edx], al
mov eax, ebp
sar eax, 1
and eax, 1
mov byte [esi], al
mov eax, ebp
sar eax, 2
and eax, 1
mov byte [edx + ebx], al
mov eax, ebp
sar eax, 3
and eax, 1
mov byte [esi + ebx], al
mov ebx, dword [esp + 0x28]
mov eax, ebp
sar eax, 4
and eax, 1
mov byte [edx + ebx], al
mov eax, ebp
add edx, 2
sar eax, 5
and eax, 1
mov byte [esi + ebx], al
add esi, 2
mov eax, edx
sub eax, dword [esp + 0x3c]
cmp dword [esp + 0x2c], eax
jle 0x6c51c491
mov ecx, dword [esp + 0x18]
mov ebp, dword [0x6c662cf8]
mov eax, dword [ecx + 0x26f8]
mov ebx, dword [ecx + 0x2700]
mov edi, dword [ecx + 0x26f0]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x1c], ebx
mov ebx, dword [edi + ecx]
mov ecx, eax
and ecx, 7
bswap ebx
shl ebx, cl
shr ebx, 0xf7
lea ecx, [ebp + ebx*4]
movzx ebx, word [ecx]
mov word [esp + 0x32], bx
movsx ebx, word [ecx + 2]
test ebx, ebx
jns 0x6c51bfc0
add eax, 9
cmp eax, dword [esp + 0x1c]
cmova eax, dword [esp + 0x1c]
mov ecx, eax
shr ecx, 3
mov edi, dword [edi + ecx]
mov ecx, eax
and ecx, 7
bswap edi
shl edi, cl
mov ecx, ebx
shr edi, cl
movsx ecx, word [esp + 0x32]
add edi, ecx
lea ecx, [ebp + edi*4]
movsx ebp, word [ecx]
movsx ebx, word [ecx + 2]
jmp 0x6c51bfc5
mov ebx, dword [esp + 0x20]
lea edi, [ebp + 0x26f0]
test ebx, ebx
jle case.default.0x6c51bbf1
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 8]
mov esi, dword [edi + 0x10]
mov edx, eax
mov ecx, eax
shr edx, 3
and ecx, 7
movzx edx, byte [ebx + edx]
shl edx, cl
mov ecx, edx
xor edx, edx
cmp eax, esi
setl dl
add eax, edx
test cl, cl
mov dword [edi + 8], eax
jns 0x6c51c1c1
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
add ecx, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jg 0x6c51c142
jmp 0x6c51c16d
mov eax, dword [ebp + 0x26f8]
mov ebx, dword [ebp + 0x26f0]
mov esi, dword [ebp + 0x2700]
mov ecx, eax
shr ecx, 3
movzx ebx, byte [ebx + ecx]
mov ecx, eax
and ecx, 7
shl ebx, cl
mov ecx, ebx
shr cl, 7
cmp eax, esi
lea ebx, [eax + 1]
cmovl eax, ebx
mov dword [edi + 8], eax
mov byte [edx], cl
add edx, 1
cmp edx, dword [esp + 0x18]
jne 0x6c51c130
mov ebx, dword [esp + 0x24]
add dword [esp + 0x28], 1
mov esi, dword [esp + 0x20]
add dword [esp + 0x1c], ebx
cmp dword [esp + 0x28], esi
je case.default.0x6c51bbf1
mov ebx, dword [ebp + 0x26f0]
jmp 0x6c51c0e6
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x6c51bdc9
mov edx, dword [esp + 0x1c]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
lea esi, [esi]
add eax, 1
mov byte [edx], 0
add edx, ebx
cmp eax, ecx
jne 0x6c51c1b0
jmp 0x6c51bdc9
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
mov dword [esp], esi
call fcn.6c563768
jmp 0x6c51c16d
add ebx, dword [esp + 0x28]
xor eax, eax
jmp 0x6c51be95
mov ebx, dword [esp + 0x34]
xor eax, eax
xor edi, edi
jmp 0x6c51be62
imul ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
sar eax, 0x1f
sub edx, eax
lea eax, [edx + edx*2]
sub ecx, eax
mov dword [esp + 0x3c], ecx
mov edx, ecx
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x24]
and ebx, 1
imul eax, ebx
add eax, dword [esp + 0x34]
add esi, esi
sub edx, dword [esp + 0x24]
mov dword [esp + 0x40], ebx
add edi, eax
cmp dword [esp + 0x20], ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], edx
jle 0x6c51c3b0
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], ebp
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x3c]
add edx, dword [esp + 0x28]
cmp dword [esp + 0x2c], esi
jg 0x6c51c2e5
jmp 0x6c51c391
movsx ebp, word [esp + 0x32]
mov ecx, dword [esp + 0x18]
add eax, ebx
cmp eax, dword [esp + 0x1c]
cmova eax, dword [esp + 0x1c]
test ebp, ebp
mov dword [ecx + 0x26f8], eax
js 0x6c51c369
mov eax, ebp
mov ebx, dword [esp + 0x28]
and eax, 1
mov byte [edx], al
mov eax, ebp
sar eax, 1
and eax, 1
mov byte [edx + 1], al
mov eax, ebp
sar eax, 2
and eax, 1
mov byte [edx + 2], al
mov eax, ebp
add edx, 3
sar eax, 3
and eax, 1
mov byte [ebx + esi], al
mov eax, ebp
sar eax, 4
and eax, 1
mov byte [ebx + esi + 1], al
mov eax, ebp
sar eax, 5
and eax, 1
mov byte [ebx + esi + 2], al
add esi, 3
cmp dword [esp + 0x2c], esi
jle 0x6c51c391
mov ecx, dword [esp + 0x18]
mov ebp, dword [0x6c662cf8]
mov eax, dword [ecx + 0x26f8]
mov ebx, dword [ecx + 0x2700]
mov edi, dword [ecx + 0x26f0]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x1c], ebx
mov ebx, dword [edi + ecx]
mov ecx, eax
and ecx, 7
bswap ebx
shl ebx, cl
shr ebx, 0xf7
lea ecx, [ebp + ebx*4]
movzx ebx, word [ecx]
mov word [esp + 0x32], bx
movsx ebx, word [ecx + 2]
test ebx, ebx
jns 0x6c51c270
add eax, 9
cmp eax, dword [esp + 0x1c]
cmova eax, dword [esp + 0x1c]
mov ecx, eax
shr ecx, 3
mov edi, dword [edi + ecx]
mov ecx, eax
and ecx, 7
bswap edi
shl edi, cl
mov ecx, ebx
shr edi, cl
movsx ecx, word [esp + 0x32]
add edi, ecx
lea ecx, [ebp + edi*4]
movsx ebp, word [ecx]
movsx ebx, word [ecx + 2]
jmp 0x6c51c275
mov dword [esp + 8], str.invalid_NORM_6_VLC_n
mov dword [esp + 4], 0x30
mov eax, dword [ecx + 4]
mov dword [esp], eax
call sub.avutil_52.dll_av_log
add esp, 0x5c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [esp + 0x44], 2
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
add dword [esp + 0x28], ebx
cmp dword [esp + 0x20], esi
jg 0x6c51c256
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x6c51c592
mov esi, dword [esp + 0x40]
test esi, esi
je case.default.0x6c51bbf1
mov eax, dword [ebp + 0x26f8]
lea edi, [ebp + 0x26f0]
mov edx, dword [ebp + 0x26f0]
mov ecx, dword [ebp + 0x26f8]
mov ebx, dword [esp + 0x2c]
shr eax, 3
mov esi, dword [ebp + 0x2700]
movzx eax, byte [edx + eax]
sub ebx, dword [esp + 0x3c]
and ecx, 7
shl eax, cl
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x34]
mov ecx, eax
add ebx, dword [esp + 0x3c]
xor eax, eax
cmp dword [ebp + 0x26f8], esi
setl al
add eax, dword [ebp + 0x26f8]
test cl, cl
mov dword [ebp + 0x26f8], eax
jns 0x6c51bbf8
mov ecx, dword [esp + 0x1c]
add ecx, ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x6c51c452
jmp case.default.0x6c51bbf1
mov eax, dword [ebp + 0x26f8]
mov edx, dword [ebp + 0x26f0]
mov esi, dword [ebp + 0x2700]
mov ecx, eax
shr ecx, 3
movzx edx, byte [edx + ecx]
mov ecx, eax
and ecx, 7
shl edx, cl
shr dl, 7
cmp eax, esi
lea ecx, [eax + 1]
cmovl eax, ecx
mov dword [edi + 8], eax
mov byte [ebx], dl
add ebx, 1
cmp ebx, dword [esp + 0x18]
jne 0x6c51c440
jmp case.default.0x6c51bbf1
mov dword [esp + 0x3c], 0
mov edx, dword [esp + 0x3c]
jmp 0x6c51c212
add dword [esp + 0x48], 3
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
add dword [esp + 0x40], edx
cmp dword [esp + 0x20], ebx
jg 0x6c51bf96
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x44]
test ebx, ebx
je case.default.0x6c51bbf1
lea esi, [ebp + 0x26f0]
mov edx, dword [ebp + 0x26f0]
mov dword [esp + 0x18], esi
mov esi, dword [ebp + 0x26f8]
mov ebx, dword [ebp + 0x2700]
mov eax, esi
mov ecx, esi
shr eax, 3
and ecx, 7
movzx eax, byte [edx + eax]
shl eax, cl
mov ecx, eax
xor eax, eax
cmp esi, ebx
setl al
add eax, esi
test cl, cl
mov dword [ebp + 0x26f8], eax
jns 0x6c51c56b
mov ecx, dword [esp + 0x20]
xor edi, edi
mov esi, dword [esp + 0x34]
test ecx, ecx
jg 0x6c51c522
jmp case.default.0x6c51bbf1
mov eax, dword [ebp + 0x26f8]
mov edx, dword [ebp + 0x26f0]
mov ebx, dword [ebp + 0x2700]
mov ecx, eax
shr ecx, 3
movzx edx, byte [edx + ecx]
mov ecx, eax
and ecx, 7
shl edx, cl
shr dl, 7
cmp eax, ebx
mov ebx, dword [esp + 0x18]
lea ecx, [eax + 1]
cmovl eax, ecx
add edi, 1
mov dword [ebx + 8], eax
mov byte [esi], dl
add esi, dword [esp + 0x24]
cmp edi, dword [esp + 0x20]
jne 0x6c51c510
jmp case.default.0x6c51bbf1
mov esi, dword [esp + 0x24]
xor al, al
mov edi, dword [esp + 0x2c]
lea ebx, [ebx + esi - 1]
jmp 0x6c51be62
mov ebp, dword [esp + 0x20]
test ebp, ebp
jle case.default.0x6c51bbf1
mov edx, dword [esp + 0x34]
xor eax, eax
mov byte [edx], 0
add eax, 1
add edx, dword [esp + 0x24]
cmp eax, dword [esp + 0x20]
jne 0x6c51c57d
jmp case.default.0x6c51bbf1
mov ebx, dword [esp + 0x3c]
lea edi, [ebp + 0x26f0]
test ebx, ebx
jle 0x6c51c3bc
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 8]
mov edx, dword [edi]
mov esi, dword [edi + 0x10]
mov ecx, eax
shr ecx, 3
movzx ebx, byte [edx + ecx]
mov ecx, eax
and ecx, 7
mov dword [esp + 0x18], esi
shl ebx, cl
xor ecx, ecx
cmp eax, esi
setl cl
add eax, ecx
test bl, bl
mov dword [edi + 8], eax
jns 0x6c51c651
mov ecx, dword [esp + 0x20]
xor ebx, ebx
mov esi, dword [esp + 0x1c]
test ecx, ecx
jg 0x6c51c60a
jmp 0x6c51c639
mov ecx, dword [ebp + 0x2700]
mov eax, dword [ebp + 0x26f8]
mov edx, dword [ebp + 0x26f0]
mov dword [esp + 0x18], ecx
mov ecx, eax
shr ecx, 3
movzx edx, byte [edx + ecx]
mov ecx, eax
and ecx, 7
shl edx, cl
shr dl, 7
cmp eax, dword [esp + 0x18]
lea ecx, [eax + 1]
cmovl eax, ecx
add ebx, 1
mov dword [edi + 8], eax
mov byte [esi], dl
add esi, dword [esp + 0x24]
cmp ebx, dword [esp + 0x20]
jne 0x6c51c5f4
add dword [esp + 0x1c], 1
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x1c], eax
jne 0x6c51c5b8
jmp 0x6c51c3bc
mov ebx, dword [esp + 0x20]
test ebx, ebx
jle 0x6c51c639
mov edx, dword [esp + 0x1c]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
add eax, 1
mov byte [edx], 0
add edx, ebx
cmp eax, ecx
jne 0x6c51c667
jmp 0x6c51c639
mov ebx, dword [esp + 0x2c]
and ebx, 1
mov dword [esp + 0x44], ebx
jmp 0x6c51c4b0