Function at 0x4a4490
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x94
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x60]
push ebx
mov ebx, dword [ebp + 0x70]
push esi
mov esi, dword [ebp + 0x68]
push edi
mov dword [ebp], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0
test eax, eax
je 0x4a512a
mov edx, dword [ebp + 0x78]
test edx, edx
je 0x4a44dd
cmp dword [ebp + 0x74], 0
je 0x4a44dd
mov eax, 1
jmp 0x4a44df
xor eax, eax
mov edi, dword [ebp + 0x64]
xor ecx, ecx
test eax, eax
setne cl
add ecx, 8
cmp edi, ecx
jb 0x4a512a
test esi, esi
je 0x4a512a
mov esi, dword [ebp + 0x6c]
test esi, esi
je 0x4a512a
test ebx, ebx
je 0x4a512a
test edx, edx
je 0x4a4520
cmp dword [ebp + 0x74], 0
je 0x4a4520
mov ecx, 1
jmp 0x4a4522
xor ecx, ecx
mov eax, edi
sub eax, ecx
mov ecx, eax
and ecx, 7
je 0x4a4532
sub eax, ecx
add eax, 8
mov dword [ebp - 0xc], eax
add eax, 0xfffffff8
cmp esi, eax
jbe 0x4a5123
mov byte [ebp - 0x14], 0
test edx, edx
je 0x4a460e
cmp dword [ebp + 0x74], 0
je 0x4a460e
lea eax, [edi + 8]
cmp eax, 0x400
ja 0x4a4579
call fcn.0046d9c0
mov esi, esp
test esi, esi
je 0x4a4574
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 8], esi
jmp 0x4a4594
push eax
call fcn.00468977
add esp, 4
test eax, eax
je 0x4a458f
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
mov dword [ebp - 8], eax
test esi, esi
je 0x4a4602
movzx edx, byte [ebx + 5]
and edx, 0x80000007
push 0
jns 0x4a45ab
dec edx
or edx, 0xfffffff8
inc edx
movzx eax, byte [edx + ebx]
and eax, 0x80000001
jns 0x4a45bb
dec eax
or eax, 0xfffffffe
inc eax
mov edx, dword [ebp]
push eax
push 1
lea ecx, [ebp - 0x14]
push ecx
push edi
push edi
push esi
push edx
call fcn.004a1f00
movzx eax, byte [ebx + 3]
and eax, 0x80000007
jns 0x4a45de
dec eax
or eax, 0xfffffff8
inc eax
mov bl, byte [eax + ebx]
mov ecx, dword [ebp + 0x7c]
mov eax, dword [ebp - 0x14]
push ecx
movzx edx, bl
push 1
push edx
push eax
call fcn.004a28c0
xor al, bl
add esp, 0x30
dec edi
mov byte [ebp - 0x14], al
mov dword [ebp + 0x64], edi
jmp 0x4a4614
mov dword [ebp - 4], 8
jmp 0x4a50f1
mov esi, dword [ebp]
mov dword [ebp - 8], esi
test esi, esi
je 0x4a50f1
mov edi, dword [ebp + 0x6c]
mov esi, dword [ebp - 0xc]
cmp edi, esi
jae 0x4a465e
lea eax, [esi + 8]
cmp eax, 0x400
ja 0x4a4646
call fcn.0046d9c0
mov eax, esp
test eax, eax
je 0x4a4661
mov dword [eax], 0xcccc
add eax, 8
jmp 0x4a4661
push eax
call fcn.00468977
add esp, 4
test eax, eax
je 0x4a4661
mov dword [eax], 0xdddd
add eax, 8
jmp 0x4a4661
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0x14], eax
test eax, eax
je 0x4a50d6
mov dword [ebp], edi
cmp edi, esi
ja 0x4a4676
mov dword [ebp], esi
cmp dword [ebp + 0x74], 0
je 0x4a5036
mov eax, dword [ebp + 0x64]
add eax, 8
mov dword [ebp + 0x18], eax
cmp eax, 0x400
ja 0x4a46a3
call fcn.0046d9c0
mov eax, esp
test eax, eax
je 0x4a46b9
mov dword [eax], 0xcccc
jmp 0x4a46b6
push eax
call fcn.00468977
add esp, 4
test eax, eax
je 0x4a46b9
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp + 4], eax
test eax, eax
je 0x4a502a
mov esi, dword [ebp - 0x38]
lea ecx, [ebp + 0x4c]
sub esi, ecx
xor eax, eax
mov byte [ebp + 0x4c], 0xb2
mov byte [ebp + 0x4d], 0x33
mov byte [ebp + 0x4e], 0x65
mov byte [ebp + 0x4f], 0x8b
mov byte [ebp + 0x50], 0x2d
mov byte [ebp + 0x51], 0xc3
mov byte [ebp + 0x52], 0x17
mov byte [ebp + 0x53], 0x4d
lea edi, [eax + 8]
lea ecx, [ebp + eax + 0x4c]
mov dl, byte [esi + ecx]
xor dl, byte [ecx]
inc eax
sub edi, 1
mov byte [ebp + eax + 0x43], dl
jne 0x4a46f1
movzx eax, byte [ebp + 0x44]
and eax, 0x80000007
lea esi, [edi + 8]
jns 0x4a4717
dec eax
or eax, 0xfffffff8
inc eax
movzx eax, byte [ebp + eax + 0x44]
cdq
mov ecx, 5
idiv ecx
lea eax, [ebp + edx + 0x44]
lea edx, [ecx - 1]
jmp 0x4a4730
movzx ebx, byte [eax]
mov ecx, 0x20
sub ecx, esi
shl ebx, cl
add esi, 8
inc eax
or edi, ebx
sub edx, 1
jne 0x4a4730
movzx edx, byte [ebp + 0x4b]
and edx, 0x80000007
mov dword [ebp + 0x24], edi
jns 0x4a475b
dec edx
or edx, 0xfffffff8
inc edx
movzx eax, byte [ebp + edx + 0x44]
and eax, 0x80000001
jns 0x4a476c
dec eax
or eax, 0xfffffffe
inc eax
mov byte [ebp + 0x10], al
movzx eax, al
mov dword [ebp + 0x1c], eax
and eax, 0x80000001
jns 0x4a4781
dec eax
or eax, 0xfffffffe
inc eax
je 0x4a49e5
mov eax, 0x10
call fcn.00468360
mov edi, esp
test edi, edi
je 0x4a4be0
mov dword [edi], 0xcccc
add edi, 8
mov dword [ebp + 0x50], edi
je 0x4a4be0
push 8
lea eax, [ebp + 0x44]
push eax
push 8
push edi
call fcn.004687be
mov ecx, dword [ebp + 0x24]
add esp, 0x10
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x20], edi
xor edx, edx
mov eax, 8
lea esi, [edx + 4]
movzx ebx, byte [edi]
mov ecx, 0x20
sub ecx, eax
shl ebx, cl
add eax, 8
inc edi
or edx, ebx
sub esi, 1
jne 0x4a47d8
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x34]
push ecx
push eax
push edx
call fcn.00499ac0
mov edx, 8
mov dword [ebp + 0x30], eax
add esp, 0x10
lea esi, [ebp - 0x10]
lea eax, [edx - 4]
mov ebx, dword [ebp + 0x30]
mov ecx, 0x20
sub ecx, edx
shr ebx, cl
add edx, 8
inc esi
sub eax, 1
mov byte [esi - 1], bl
jne 0x4a4812
mov esi, dword [ebp + 0x28]
mov eax, dword [ebp + 0x20]
mov edx, 2
sub edx, esi
push 4
lea ecx, [ebp - 0x10]
add edx, edx
push ecx
add edx, edx
push edx
push eax
call fcn.004687be
mov ecx, dword [ebp + 0x24]
add dword [ebp + 0x34], ecx
inc esi
add esp, 0x10
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x20], edi
cmp esi, 2
jb 0x4a47ce
mov eax, 0x108
call fcn.0046d9c0
mov eax, esp
mov dword [ebp + 0x2c], esp
test eax, eax
je 0x4a4880
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0xc], eax
mov eax, 0x108
call fcn.0046d9c0
mov eax, esp
mov dword [ebp + 0x30], esp
test eax, eax
je 0x4a48a2
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp + 0x30], eax
mov edx, dword [ebp + 0x24]
mov dword [ebp + 0x10], eax
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp + 0x34], eax
lea eax, [edx*8]
push eax
xor bl, bl
call fcn.004a7790
add esp, 4
call fcn.004a7980
and al, 7
mov cl, al
shr cl, 5
mov byte [ebp + 0x3b], cl
movzx esi, al
mov ecx, esi
and ecx, 0x1f
mov edx, 1
shl edx, cl
movzx ecx, byte [ebp + 0x3b]
mov edi, dword [ebp + ecx*4 - 0x34]
lea ecx, [ebp + ecx*4 - 0x34]
test edi, edx
jne 0x4a491a
or edx, edi
mov dword [ecx], edx
mov edx, dword [ebp + 0x2c]
movzx ecx, bl
mov byte [ecx + edx], al
mov eax, dword [ebp + 0x30]
mov byte [esi + eax], bl
inc bl
inc dword [ebp + 0x34]
cmp bl, 8
jae 0x4a4967
mov ecx, 0x800
cmp word [ebp + 0x34], cx
jb 0x4a48d7
xor dl, dl
nop
cmp bl, 8
jae 0x4a4967
movzx eax, dl
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
mov ecx, eax
shr ecx, 5
test dword [ebp + ecx*4 - 0x34], esi
jne 0x4a4960
mov esi, dword [ebp + 0x2c]
movzx ecx, bl
mov byte [ecx + esi], dl
mov ecx, dword [ebp + 0x30]
mov byte [eax + ecx], bl
inc bl
inc dl
cmp dl, 8
jb 0x4a4930
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + edx*4 + 0xc]
mov ebx, dword [ebp + 0x50]
xor edi, edi
lea ecx, [ebp + 0x3c]
lea esi, [edi + 8]
lea esp, [esp]
movzx edx, byte [eax]
add edx, edi
mov dl, byte [edx + ebx]
mov byte [ecx], dl
inc eax
inc ecx
sub esi, 1
jne 0x4a4980
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x4a49ac
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x4a49ac
push eax
call fcn.00468a41
add esp, 4
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x4a49c7
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x4a49c7
push eax
call fcn.00468a41
add esp, 4
cmp dword [ebx - 8], 0xdddd
lea eax, [ebx - 8]
jne 0x4a4be0
push eax
call fcn.00468a41
add esp, 4
jmp 0x4a4be0
mov eax, 0x108
call fcn.0046d9c0
mov eax, esp
mov dword [ebp + 0x30], esp
test eax, eax
je 0x4a4a04
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x4c], eax
mov eax, 0x108
call fcn.0046d9c0
mov eax, esp
mov dword [ebp + 0x2c], esp
test eax, eax
je 0x4a4a26
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x50], eax
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp + 0x34], eax
lea eax, [edi*8]
push eax
xor bl, bl
call fcn.004a7790
add esp, 4
call fcn.004a7980
and al, 7
mov cl, al
shr cl, 5
mov byte [ebp + 0x3b], cl
movzx esi, al
mov ecx, esi
and ecx, 0x1f
mov edx, 1
shl edx, cl
movzx ecx, byte [ebp + 0x3b]
mov edi, dword [ebp + ecx*4 - 0x34]
lea ecx, [ebp + ecx*4 - 0x34]
test edi, edx
jne 0x4a4a9b
or edx, edi
mov dword [ecx], edx
mov edx, dword [ebp + 0x30]
movzx ecx, bl
mov byte [ecx + edx], al
mov eax, dword [ebp + 0x2c]
mov byte [esi + eax], bl
inc bl
inc dword [ebp + 0x34]
cmp bl, 8
jae 0x4a4ae7
mov ecx, 0x800
cmp word [ebp + 0x34], cx
jb 0x4a4a58
xor dl, dl
cmp bl, 8
jae 0x4a4ae7
movzx eax, dl
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
mov ecx, eax
shr ecx, 5
test dword [ebp + ecx*4 - 0x34], esi
jne 0x4a4ae0
mov esi, dword [ebp + 0x30]
movzx ecx, bl
mov byte [ecx + esi], dl
mov ecx, dword [ebp + 0x2c]
mov byte [eax + ecx], bl
inc bl
inc dl
cmp dl, 8
jb 0x4a4ab0
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + edx*4 + 0x4c]
xor edi, edi
lea ecx, [ebp + 0x3c]
lea esi, [edi + 8]
movzx edx, byte [eax]
add edx, edi
mov dl, byte [ebp + edx + 0x44]
mov byte [ecx], dl
inc eax
inc ecx
sub esi, 1
jne 0x4a4af6
mov eax, dword [ebp + 0x30]
cmp eax, edi
je 0x4a4b23
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x4a4b23
push eax
call fcn.00468a41
add esp, 4
mov eax, dword [ebp + 0x2c]
cmp eax, edi
je 0x4a4b3e
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x4a4b3e
push eax
call fcn.00468a41
add esp, 4
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x1c], edi
lea edi, [ebp + 0x3c]
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x28], edi
xor edx, edx
mov eax, 8
lea esi, [edx + 4]
movzx ebx, byte [edi]
mov ecx, 0x20
sub ecx, eax
shl ebx, cl
add eax, 8
inc edi
or edx, ebx
sub esi, 1
jne 0x4a4b57
mov ecx, dword [ebp + 0x7c]
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0x34]
push eax
push ecx
push edx
call fcn.00499ac0
mov edx, 8
mov dword [ebp + 0x50], eax
add esp, 0x10
lea esi, [ebp + 0x20]
lea eax, [edx - 4]
mov ebx, dword [ebp + 0x50]
mov ecx, 0x20
sub ecx, edx
shr ebx, cl
add edx, 8
inc esi
sub eax, 1
mov byte [esi - 1], bl
jne 0x4a4b91
mov esi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x28]
mov eax, 2
sub eax, esi
push 4
lea edx, [ebp + 0x20]
add eax, eax
push edx
add eax, eax
push eax
push ecx
call fcn.004687be
mov edx, dword [ebp + 0x24]
add dword [ebp + 0x34], edx
inc esi
add esp, 0x10
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x28], edi
cmp esi, 2
jb 0x4a4b4d
lea eax, [ebp + 0x3c]
push 1
push eax
call fcn.004975a0
mov ecx, dword [ebp]
mov esi, dword [ebp + 0x14]
push ecx
push 0
push esi
call fcn.00467d60
xor ebx, ebx
add esp, 0x14
cmp dword [ebp + 0x64], ebx
jbe 0x4a4c48
mov edi, dword [ebp - 8]
sub esi, edi
mov dword [ebp + 0x50], esi
lea esp, [esp]
mov edx, dword [ebp + 0x50]
lea esi, [edx + edi]
push esi
push edi
call fcn.00497560
add esp, 8
test ebx, ebx
je 0x4a4c3d
mov eax, 8
lea esp, [esp]
mov cl, byte [eax + edi - 9]
xor byte [esi + eax - 1], cl
dec eax
test eax, eax
jne 0x4a4c30
add ebx, 8
add edi, 8
cmp ebx, dword [ebp + 0x64]
jb 0x4a4c10
mov eax, dword [ebp + 0x18]
cmp eax, 0x400
ja 0x4a4c65
call fcn.0046d9c0
mov eax, esp
test eax, eax
je 0x4a4c7b
mov dword [eax], 0xcccc
jmp 0x4a4c78
push eax
call fcn.00468977
add esp, 4
test eax, eax
je 0x4a4c7b
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp + 0x24], eax
test eax, eax
je 0x4a503c
mov esi, dword [ebp + 0x64]
mov edx, dword [ebp + 0x14]
push esi
push edx
mov edi, eax
push esi
push edi
call fcn.004687be
mov eax, esi
mov ecx, esi
shr eax, 2
and ecx, 3
xor edx, edx
add esp, 0x10
mov dword [ebp + 0x20], ecx
cmp eax, edx
jbe 0x4a4d5c
mov ecx, dword [ebp + 0x74]
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x50], eax
xor edx, edx
mov eax, 8
lea esi, [edx + 4]
movzx ebx, byte [edi]
mov ecx, 0x20
sub ecx, eax
shl ebx, cl
add eax, 8
inc edi
or edx, ebx
sub esi, 1
jne 0x4a4ccd
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x34]
push eax
push 1
push ecx
push edx
call fcn.00499ac0
mov edx, 8
mov dword [ebp + 0x18], eax
add esp, 0x10
lea esi, [ebp + 0x30]
lea eax, [edx - 4]
mov ebx, dword [ebp + 0x18]
mov ecx, 0x20
sub ecx, edx
shr ebx, cl
add edx, 8
inc esi
sub eax, 1
mov byte [esi - 1], bl
jne 0x4a4d05
mov esi, dword [ebp + 0x64]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
push 4
lea edx, [ebp + 0x30]
push edx
mov eax, esi
sub eax, ebx
push eax
push ecx
call fcn.004687be
mov edx, dword [ebp + 0x74]
add dword [ebp + 0x34], edx
add ebx, 4
add esp, 0x10
sub dword [ebp + 0x28], 1
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x1c], edi
jne 0x4a4cc3
mov edi, dword [ebp + 0x24]
mov edx, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x20]
cmp ecx, 2
je 0x4a4d6a
cmp ecx, 3
jne 0x4a4e07
lea eax, [edx*4]
mov dword [ebp + 0x50], eax
add eax, edi
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x34], 0
mov ecx, 8
mov dword [ebp + 0x10], 2
lea esp, [esp]
movzx di, byte [eax]
shl di, cl
inc eax
sub ecx, 8
or word [ebp + 0x34], di
sub dword [ebp + 0x10], 1
jne 0x4a4d90
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x34]
inc edx
mov dword [ebp + 0x10], edx
imul edx, dword [ebp + 0x74]
push eax
push 1
push edx
push ecx
call fcn.004a2a40
movzx edx, ax
mov eax, 8
mov dword [ebp + 0x18], edx
add esp, 0x10
lea edi, [ebp + 0x30]
lea edx, [eax - 6]
mov ebx, dword [ebp + 0x18]
mov cx, ax
shr bx, cl
sub eax, 8
inc edi
sub edx, 1
mov byte [edi - 1], bl
jne 0x4a4dd1
mov edx, dword [ebp - 0x10]
push 2
lea eax, [ebp + 0x30]
mov ecx, esi
sub ecx, dword [ebp + 0x50]
push eax
push ecx
push edx
call fcn.004687be
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
add esp, 0x10
cmp ecx, 1
je 0x4a4e11
cmp ecx, 3
jne 0x4a4e2e
imul edx, dword [ebp + 0x74]
mov eax, dword [ebp + 0x7c]
movzx ecx, byte [edi + esi - 1]
push eax
push 1
push edx
push ecx
call fcn.004a28c0
add esp, 0x10
mov byte [edi + esi - 1], al
mov eax, 0x80808081
mul esi
shr edx, 7
mov eax, edx
imul eax, eax, 0xff
sub esi, eax
neg esi
sbb esi, esi
neg esi
mov eax, 0x108
add esi, edx
call fcn.0046d9c0
mov eax, esp
mov dword [ebp + 0x34], esp
test eax, eax
je 0x4a4e69
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp + 0x34], eax
mov eax, 0x108
call fcn.0046d9c0
mov eax, esp
mov dword [ebp + 0x2c], esp
test eax, eax
je 0x4a4e88
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp + 0x2c], eax
test esi, esi
jbe 0x4a4fdb
mov eax, dword [ebp + 0x64]
imul eax, dword [ebp + 0x74]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x1c], esi
jmp 0x4a4eb0
mov eax, dword [ebp + 0x64]
sub eax, dword [ebp + 0x30]
mov byte [ebp + 0x3b], 0xff
cmp eax, 0xff
ja 0x4a4ec4
mov byte [ebp + 0x3b], al
movzx cx, byte [ebp + 0x3b]
xor eax, eax
shl cx, 8
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x28]
movzx edx, cx
push eax
xor bl, bl
mov dword [ebp + 0x18], edx
call fcn.004a7790
movzx ecx, byte [ebp + 0x3b]
add esp, 4
mov dword [ebp + 0x10], ecx
call fcn.004a7980
xor edx, edx
div dword [ebp + 0x10]
mov al, dl
shr al, 5
movzx esi, dl
mov byte [ebp + 0xb], al
movzx edi, byte [ebp + 0xb]
mov ecx, esi
and ecx, 0x1f
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + edi*4 - 0x34]
lea edi, [ebp + edi*4 - 0x34]
test eax, ecx
jne 0x4a4f4b
or ecx, eax
movzx eax, bl
mov dword [edi], ecx
mov ecx, dword [ebp + 0x34]
mov byte [eax + ecx], dl
mov edx, dword [ebp + 0x2c]
mov byte [esi + edx], bl
inc bl
inc dword [ebp + 0x20]
cmp bl, byte [ebp + 0x3b]
jae 0x4a4f9b
mov ax, word [ebp + 0x18]
cmp word [ebp + 0x20], ax
jb 0x4a4f05
xor dl, dl
cmp byte [ebp + 0x3b], dl
jbe 0x4a4fc4
mov esi, dword [ebp + 0x2c]
cmp bl, byte [ebp + 0x3b]
jae 0x4a4f9b
movzx eax, dl
mov ecx, eax
and ecx, 0x1f
mov edi, 1
shl edi, cl
mov ecx, eax
shr ecx, 5
test dword [ebp + ecx*4 - 0x34], edi
jne 0x4a4f94
mov edi, dword [ebp + 0x34]
movzx ecx, bl
mov byte [ecx + edi], dl
mov byte [eax + esi], bl
inc bl
inc dl
cmp dl, byte [ebp + 0x3b]
jb 0x4a4f67
cmp byte [ebp + 0x3b], 0
jbe 0x4a4fc4
mov edx, dword [ebp + 4]
mov edi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x10]
lea ecx, [edi + edx]
mov edx, dword [ebp + 0x24]
movzx ebx, byte [eax]
add ebx, edx
mov bl, byte [ebx + edi]
mov byte [ecx], bl
inc eax
inc ecx
sub esi, 1
jne 0x4a4fb3
mov eax, dword [ebp + 0x50]
add dword [ebp + 0x28], eax
add dword [ebp + 0x30], 0xff
sub dword [ebp + 0x1c], 1
jne 0x4a4eb0
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x4a4ff6
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x4a4ff6
push eax
call fcn.00468a41
add esp, 4
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x4a5011
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x4a5011
push eax
call fcn.00468a41
add esp, 4
mov eax, dword [ebp + 0x24]
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x4a503c
push eax
call fcn.00468a41
add esp, 4
jmp 0x4a503c
mov dword [ebp - 4], 8
jmp 0x4a50c2
mov ecx, dword [ebp - 8]
mov dword [ebp + 4], ecx
cmp dword [ebp + 4], 0
je 0x4a50c2
mov edx, dword [ebp - 0x38]
push 1
push edx
call fcn.004975a0
mov eax, dword [ebp]
mov ecx, dword [ebp + 0x14]
push eax
push 0
push ecx
call fcn.00467d60
xor ebx, ebx
add esp, 0x14
cmp dword [ebp + 0x64], ebx
jbe 0x4a50a8
mov edi, dword [ebp + 4]
mov eax, dword [ebp + 0x14]
sub eax, edi
mov dword [ebp + 0x18], eax
mov edx, dword [ebp + 0x18]
lea esi, [edx + edi]
push esi
push edi
call fcn.00497560
add esp, 8
test ebx, ebx
je 0x4a509d
mov eax, 8
mov edi, edi
mov cl, byte [eax + edi - 9]
xor byte [esi + eax - 1], cl
dec eax
test eax, eax
jne 0x4a5090
add ebx, 8
add edi, 8
cmp ebx, dword [ebp + 0x64]
jb 0x4a5075
mov eax, dword [ebp + 0x6c]
cmp eax, dword [ebp - 0xc]
jae 0x4a50c2
mov edx, dword [ebp + 0x14]
push eax
push edx
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004687be
add esp, 0x10
cmp dword [ebp + 0x74], 0
je 0x4a50dd
mov ecx, dword [ebp + 4]
push ecx
call fcn.0041a740
add esp, 4
jmp 0x4a50dd
mov dword [ebp - 4], 8
mov edx, dword [ebp - 0xc]
cmp dword [ebp + 0x6c], edx
jae 0x4a50f1
mov eax, dword [ebp + 0x14]
push eax
call fcn.0041a740
add esp, 4
cmp dword [ebp + 0x78], 0
je 0x4a5109
cmp dword [ebp + 0x74], 0
je 0x4a5109
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041a740
add esp, 4
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x48]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x54]
xor ecx, ebp
call fcn.00467d4f
add ebp, 0x58
mov esp, ebp
pop ebp
ret
mov eax, 0x7a
jmp 0x4a510c
mov eax, 0x57
jmp 0x4a510c