Function at 0x405aa0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x34
mov ecx, dword [esp + 0x3c]
push ebx
push ebp
push esi
mov edx, ecx
push edi
mov edi, dword [esp + 0x48]
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov ebx, dword [esp + 0x50]
and ecx, 3
mov dword [esp + 0x14], 0
rep stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x427590]
repne scasb al, byte es:[edi]
mov eax, dword [edx + 8]
not ecx
dec ecx
test eax, eax
mov ebp, ecx
je 0x40689e
cmp eax, 2
jbe 0x4074fa
cmp eax, 4
ja 0x4074fa
cmp ebp, 0x10
jl 0x4074fa
cmp ebp, 0x18
jg 0x4074fa
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x406123
xor ecx, ecx
cmp eax, 4
mov al, byte [edx + 0x53]
mov edi, ebx
sete cl
mov ebp, ecx
mov cx, word [edx + 0x1e]
mov byte [esp + 0x54], al
mov word [esp + 0x40], cx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x34], ebp
mov esi, ecx
mov ecx, eax
mov dword [esp + 0x24], esi
je 0x405b77
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x405b8b
cmp al, 0x5a
jg 0x405b8b
test ebp, ebp
je 0x405b63
cmp al, 0x39
jg 0x405b8b
jmp 0x405b6b
cmp al, 0x38
jle 0x405b6b
cmp al, 0x41
jl 0x405b8b
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, esi
jb 0x405b4e
mov esi, ebp
mov eax, dword [esp + 0x4c]
neg esi
sbb esi, esi
and esi, 8
add esi, 0xc
cmp esi, eax
jbe 0x405b98
xor eax, eax
mov ebp, eax
mov dword [esp + 0x14], ebp
jmp 0x406733
test ebp, ebp
mov dword [esp + 0x10], esi
jne 0x405c04
mov ebp, dword [esp + 0x4c]
xor eax, eax
test ebp, ebp
mov edi, ebx
mov ecx, 1
jbe 0x405be4
mov dl, byte [edi]
inc edi
test dl, dl
je 0x405bda
mov edx, 5
shl ecx, 1
cmp ecx, 0x100
jl 0x405bcd
inc eax
mov ecx, 1
dec edx
je 0x405bd6
cmp eax, ebp
jae 0x405bda
jmp 0x405bbd
cmp eax, ebp
jb 0x405bb1
cmp ecx, 1
je 0x405be4
cmp eax, ebp
jae 0x405be4
inc eax
mov ecx, eax
cmp esi, eax
mov dword [esp + 0x10], ecx
jae 0x405bf4
mov ecx, esi
mov dword [esp + 0x10], ecx
cmp ecx, 0x29e
jbe 0x405c04
mov dword [esp + 0x10], 0x29e
mov ebp, dword [esp + 0x24]
xor edx, edx
mov esi, ebp
mov eax, ebx
shr esi, 2
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], esi
je 0x405c60
mov edi, esi
mov ecx, edx
shr ecx, 0x1f
lea ecx, [ecx + edx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea edx, [edx + ecx*2]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
inc eax
dec edi
jne 0x405c1d
mov dword [esp + 0x20], edx
mov edi, ebp
and edi, 3
mov dword [esp + 0x4c], edi
jbe 0x405c83
mov ecx, edi
mov ebx, edx
shr ebx, 0x1f
lea edx, [ebx + edx*2]
xor ebx, ebx
mov bl, byte [eax]
add edx, ebx
inc eax
dec ecx
jne 0x405c6d
mov dword [esp + 0x20], edx
push 0x53c
call fcn.004194d5
mov ebp, eax
push 0x29e
mov dword [esp + 0x20], ebp
call fcn.004194d5
mov ecx, 1
add esp, 8
cmp word [esp + 0x10], cx
mov ebx, eax
mov word [ebp], 0
mov dword [esp + 0x38], ebx
movzx bp, byte [esp + 0x54]
jbe 0x405d16
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x40]
and ebx, 0xffff
mov esi, ecx
lea edi, [edx + 2]
mov edx, ebp
lea eax, [esi + ebx]
and edx, 0xffff
add edi, 2
xor eax, edx
cdq
idiv esi
mov eax, edx
and edx, 0xffff
xor eax, ecx
add ebp, eax
mov eax, dword [esp + 0x18]
lea eax, [eax + edx*2]
mov dx, word [eax]
mov word [edi - 2], dx
mov word [eax], cx
inc ecx
inc esi
cmp cx, word [esp + 0x10]
jb 0x405cd1
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
xor edx, edx
test esi, esi
mov dword [esp + 0x28], edx
lea eax, [eax + ecx - 1]
jbe 0x405d6f
mov ecx, edx
shr ecx, 0x1f
lea ecx, [ecx + edx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea edx, [edx + ecx*2]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
dec eax
dec esi
jne 0x405d2c
mov dword [esp + 0x28], edx
test edi, edi
jbe 0x405d8b
mov ecx, edi
mov esi, edx
shr esi, 0x1f
lea esi, [esi + edx*2]
xor edx, edx
mov dl, byte [eax]
add edx, esi
dec eax
dec ecx
jne 0x405d75
mov dword [esp + 0x28], edx
mov esi, dword [0x42768c]
mov edx, dword [esp + 0x50]
xor edi, edi
xor ebp, ebp
mov ecx, dword [esi*4 + 0x427310]
mov dword [esp + 0x2c], edi
cmp ecx, edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edx
mov eax, 1
mov dword [esp + 0x4c], edi
je 0x405e0e
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x30], dl
je 0x405de2
mov edx, dword [esp + 0x30]
and edx, 0xff
lea edi, [edx - 1]
cmp edi, esi
je 0x405dde
cmp edx, dword [0x427688]
jle 0x405e0a
mov edi, dword [esp + 0x4c]
mov edx, dword [ecx]
lea ebp, [ecx + 5]
mov ecx, dword [0x427590]
mov dword [esp + 0x40], edx
mov dword [esp + 0x14], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x405e0e
mov dword [esp + 0x14], 8
jmp 0x405e0e
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x10]
test edx, edx
jbe 0x405fe9
mov esi, dword [esp + 0x3c]
mov cl, byte [esi]
inc esi
test cl, cl
mov byte [esp + 0x1c], cl
mov dword [esp + 0x3c], esi
je 0x405fc2
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x405e90
cmp cl, 0x37
jne 0x405e51
mov cl, 0x49
mov dword [esp + 0x30], 5
add cl, 0xc5
mov byte [esp + 0x1c], cl
jmp 0x405ea4
cmp cl, 0x38
jne 0x405e69
mov cl, 0x4f
mov dword [esp + 0x30], 5
add cl, 0xc5
mov byte [esp + 0x1c], cl
jmp 0x405ea4
cmp cl, 0x41
jb 0x405e7f
add cl, 0xc5
mov dword [esp + 0x30], 5
mov byte [esp + 0x1c], cl
jmp 0x405ea4
add cl, 0xcf
mov dword [esp + 0x30], 5
mov byte [esp + 0x1c], cl
jmp 0x405ea4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], 1
and eax, 0xff
or ah, 1
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x405ebb
shl eax, 1
test cl, 1
je 0x405eb5
or al, 1
shr cl, 1
mov byte [esp + 0x1c], cl
cmp eax, 0x100
jl 0x405f97
mov esi, dword [esp + 0x18]
mov edx, edi
and edx, 0xffff
xor ecx, ecx
inc edi
mov cx, word [esi + edx*2]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], edi
mov byte [ecx + ebx], al
mov eax, dword [esp + 0x2c]
cmp eax, edx
jae 0x405f8a
test ebp, ebp
je 0x405f8a
mov eax, dword [ebp]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jne 0x405f8a
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x20]
cmp ecx, eax
jne 0x405f8a
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x28]
cmp edx, eax
jne 0x405f8a
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jle 0x405f6f
mov esi, dword [esp + 0x50]
mov ecx, ebp
sub ecx, esi
lea edi, [ecx + 0xc]
add esi, eax
mov dl, al
add dl, 0x55
mov cl, byte [edi + esi]
xor cl, dl
mov dl, byte [esi]
cmp cl, dl
jne 0x405f6f
mov cl, byte [eax + ebp + 0x14]
mov esi, dword [esp + 0x14]
mov dl, al
add dl, 0x77
xor cl, dl
mov edx, eax
sub edx, esi
mov esi, dword [esp + 0x24]
add edx, esi
mov esi, dword [esp + 0x50]
cmp cl, byte [edx + esi]
jne 0x405f6f
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
jl 0x405f32
cmp eax, dword [esp + 0x14]
jne 0x405f7d
add dword [esp + 0x4c], 0xffff
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x2c], eax
mov cl, byte [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov eax, 1
mov esi, dword [esp + 0x30]
dec esi
mov dword [esp + 0x30], esi
je 0x405fb2
mov esi, edi
and esi, 0xffff
cmp esi, edx
jb 0x405ea4
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jb 0x405e1a
cmp eax, 1
je 0x405fe9
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jae 0x405fe9
shl eax, 1
cmp eax, 0x100
jl 0x405fd3
mov esi, dword [esp + 0x18]
xor edx, edx
mov dx, word [esi + ecx*2]
mov byte [edx + ebx], al
mov esi, dword [esp + 0x10]
mov al, byte [esp + 0x54]
xor edi, edi
xor ebp, ebp
test esi, esi
mov byte [esp + 0x4c], al
jbe 0x4060b2
jmp 0x406007
mov al, byte [esp + 0x4c]
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov ecx, ebp
jne 0x406021
and ecx, 0xffff
mov dl, byte [ebx + ecx]
xor dl, al
mov byte [ebx + ecx], dl
jmp 0x40604f
mov eax, dword [esp + 0x4c]
mov esi, 0xa
and eax, 0xff
and ecx, 0xffff
cdq
idiv esi
xor eax, eax
mov al, byte [ebx + ecx]
sub eax, edx
sub eax, 0x26
cdq
idiv esi
mov al, byte [esp + 0x4c]
add dl, 0x30
mov byte [ebx + ecx], dl
add al, dl
xor esi, esi
test ecx, ecx
mov byte [esp + 0x4c], al
mov dword [esp + 0x50], esi
jbe 0x406094
mov eax, 1
cmp ecx, eax
jbe 0x40608b
xor edx, edx
mov dl, byte [esi + ebx]
mov esi, edx
xor edx, edx
mov dl, byte [eax + ebx]
mov ebx, esi
shr edx, 1
shr ebx, 1
xor edx, ebx
mov ebx, dword [esp + 0x38]
add edi, edx
inc eax
cmp eax, ecx
jb 0x40606f
mov esi, dword [esp + 0x50]
inc esi
cmp esi, ecx
mov dword [esp + 0x50], esi
jb 0x40605f
mov al, byte [ebx + ecx]
xor al, 0x6a
inc ebp
mov byte [ebx + ecx], al
mov ecx, dword [esp + 0x10]
mov eax, ebp
and eax, 0xffff
cmp eax, ecx
jb 0x406003
mov esi, ecx
xor edx, edx
test esi, esi
jbe 0x4060e5
xor ecx, ecx
mov ebp, dword [esp + 0x18]
xor eax, eax
mov ax, word [ebp + ecx*2]
mov ebp, dword [esp + 0x48]
mov al, byte [eax + ebx]
xor al, dl
mov byte [ecx + ebp], al
and eax, 0xff
add edi, eax
inc edx
mov ecx, edx
and ecx, 0xffff
cmp ecx, esi
jb 0x4060ba
cmp dword [0x4271f0], edi
je 0x4060fd
mov dword [0x4271f0], edi
mov dword [0x4271ec], 1
push ebx
call fcn.004194ca
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004194ca
mov edx, dword [0x427590]
mov eax, esi
mov ebp, eax
add esp, 8
mov dword [esp + 0x14], ebp
jmp 0x406733
xor ecx, ecx
cmp eax, 4
mov al, byte [edx + 0x54]
mov edi, ebx
sete cl
mov ebp, ecx
mov cx, word [edx + 0x34]
mov byte [esp + 0x54], al
mov word [esp + 0x40], cx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x2c], ebp
mov esi, ecx
mov ecx, eax
mov dword [esp + 0x20], esi
je 0x406180
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x406194
cmp al, 0x5a
jg 0x406194
test ebp, ebp
je 0x40616c
cmp al, 0x39
jg 0x406194
jmp 0x406174
cmp al, 0x38
jle 0x406174
cmp al, 0x41
jl 0x406194
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, esi
jb 0x406157
mov esi, ebp
mov eax, dword [esp + 0x4c]
neg esi
sbb esi, esi
and esi, 8
add esi, 0xc
cmp esi, eax
jbe 0x40619b
xor eax, eax
jmp 0x40672d
test ebp, ebp
mov dword [esp + 0x10], esi
jne 0x406207
mov ebp, dword [esp + 0x4c]
xor eax, eax
test ebp, ebp
mov edi, ebx
mov ecx, 1
jbe 0x4061e7
mov dl, byte [edi]
inc edi
test dl, dl
je 0x4061dd
mov edx, 5
shl ecx, 1
cmp ecx, 0x100
jl 0x4061d0
inc eax
mov ecx, 1
dec edx
je 0x4061d9
cmp eax, ebp
jae 0x4061dd
jmp 0x4061c0
cmp eax, ebp
jb 0x4061b4
cmp ecx, 1
je 0x4061e7
cmp eax, ebp
jae 0x4061e7
inc eax
mov ecx, eax
cmp esi, eax
mov dword [esp + 0x10], ecx
jae 0x4061f7
mov ecx, esi
mov dword [esp + 0x10], ecx
cmp ecx, 0x29e
jbe 0x406207
mov dword [esp + 0x10], 0x29e
mov ebp, dword [esp + 0x20]
xor edx, edx
mov esi, ebp
mov eax, ebx
shr esi, 2
mov dword [esp + 0x38], edx
mov dword [esp + 0x4c], esi
je 0x406263
mov edi, esi
mov ecx, edx
shr ecx, 0x1f
lea ecx, [ecx + edx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea edx, [edx + ecx*2]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
inc eax
dec edi
jne 0x406220
mov dword [esp + 0x38], edx
mov edi, ebp
and edi, 3
mov dword [esp + 0x3c], edi
jbe 0x406286
mov ecx, edi
mov ebx, edx
shr ebx, 0x1f
lea edx, [ebx + edx*2]
xor ebx, ebx
mov bl, byte [eax]
add edx, ebx
inc eax
dec ecx
jne 0x406270
mov dword [esp + 0x38], edx
push 0x53c
call fcn.004194d5
mov ebp, eax
push 0x29e
mov dword [esp + 0x20], ebp
call fcn.004194d5
mov ecx, 1
add esp, 8
cmp word [esp + 0x10], cx
mov ebx, eax
mov word [ebp], 0
mov dword [esp + 0x28], ebx
movzx bp, byte [esp + 0x54]
jbe 0x40631f
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x40]
and ebx, 0xffff
mov esi, ecx
lea edi, [edx + 2]
mov edx, ebp
lea eax, [esi + ebx]
and edx, 0xffff
add edi, 2
xor eax, edx
cdq
idiv esi
mov eax, edx
and edx, 0xffff
xor eax, ecx
add ebp, eax
mov eax, dword [esp + 0x18]
lea eax, [eax + edx*2]
mov dx, word [eax]
mov word [edi - 2], dx
mov word [eax], cx
inc ecx
inc esi
cmp cx, word [esp + 0x10]
jb 0x4062d4
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x3c]
jmp 0x406323
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], 0
test esi, esi
lea eax, [eax + ebp - 1]
jbe 0x40637e
mov ecx, dword [esp + 0x50]
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
dec esi
mov dword [esp + 0x50], ecx
jne 0x406337
test edi, edi
jbe 0x40639e
mov edx, dword [esp + 0x50]
mov ecx, edi
mov esi, edx
shr esi, 0x1f
lea esi, [esi + edx*2]
xor edx, edx
mov dl, byte [eax]
add edx, esi
dec eax
dec ecx
jne 0x406388
mov dword [esp + 0x50], edx
mov esi, dword [0x42768c]
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], edi
mov ecx, dword [esi*4 + 0x427310]
mov dword [esp + 0x3c], edi
cmp ecx, edi
mov dword [esp + 0x40], ebp
mov eax, 1
mov dword [esp + 0x4c], edi
je 0x406423
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x30], dl
je 0x4063f3
mov edx, dword [esp + 0x30]
and edx, 0xff
lea edi, [edx - 1]
cmp edi, esi
je 0x4063ef
cmp edx, dword [0x427688]
jle 0x40641f
mov edi, dword [esp + 0x4c]
mov edx, dword [ecx]
add ecx, 5
mov dword [esp + 0x24], ecx
mov ecx, dword [0x427590]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x1c], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x406423
mov dword [esp + 0x1c], 8
jmp 0x406423
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x10]
test edx, edx
jbe 0x4065fe
mov esi, dword [esp + 0x40]
mov cl, byte [esi]
inc esi
test cl, cl
mov byte [esp + 0x14], cl
mov dword [esp + 0x40], esi
je 0x4065d7
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x4064a5
cmp cl, 0x37
jne 0x406466
mov cl, 0x49
mov dword [esp + 0x30], 5
add cl, 0xc5
mov byte [esp + 0x14], cl
jmp 0x4064b9
cmp cl, 0x38
jne 0x40647e
mov cl, 0x4f
mov dword [esp + 0x30], 5
add cl, 0xc5
mov byte [esp + 0x14], cl
jmp 0x4064b9
cmp cl, 0x41
jb 0x406494
add cl, 0xc5
mov dword [esp + 0x30], 5
mov byte [esp + 0x14], cl
jmp 0x4064b9
add cl, 0xcf
mov dword [esp + 0x30], 5
mov byte [esp + 0x14], cl
jmp 0x4064b9
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], 1
and eax, 0xff
or ah, 1
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x4064d0
shl eax, 1
test cl, 1
je 0x4064ca
or al, 1
shr cl, 1
mov byte [esp + 0x14], cl
cmp eax, 0x100
jl 0x4065ac
mov esi, dword [esp + 0x18]
mov edx, edi
and edx, 0xffff
xor ecx, ecx
inc edi
mov cx, word [esi + edx*2]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x4c], edi
mov byte [ecx + ebx], al
mov eax, dword [esp + 0x34]
cmp eax, edx
jae 0x40659f
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40659f
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
cmp edx, ecx
jne 0x40659f
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x38]
cmp edx, ecx
jne 0x40659f
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jne 0x40659f
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
jle 0x406582
mov ecx, dword [esp + 0x24]
sub ecx, ebp
lea edi, [ecx + 0xc]
lea esi, [eax + ebp]
mov dl, al
add dl, 0x55
mov cl, byte [edi + esi]
xor cl, dl
mov dl, byte [esi]
cmp cl, dl
jne 0x406582
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov dl, al
mov cl, byte [eax + ecx + 0x14]
add dl, 0x77
xor cl, dl
mov edx, eax
sub edx, esi
add edx, dword [esp + 0x20]
cmp cl, byte [edx + ebp]
jne 0x406586
inc eax
cmp eax, esi
jl 0x406548
jmp 0x406586
mov esi, dword [esp + 0x1c]
cmp eax, esi
jne 0x406592
add dword [esp + 0x4c], 0xffff
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x10]
mov cl, byte [esp + 0x14]
mov eax, 1
mov esi, dword [esp + 0x30]
dec esi
mov dword [esp + 0x30], esi
je 0x4065c7
mov esi, edi
and esi, 0xffff
cmp esi, edx
jb 0x4064b9
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jb 0x40642f
cmp eax, 1
je 0x4065fe
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jae 0x4065fe
shl eax, 1
cmp eax, 0x100
jl 0x4065e8
mov esi, dword [esp + 0x18]
xor edx, edx
mov dx, word [esi + ecx*2]
mov byte [edx + ebx], al
mov esi, dword [esp + 0x10]
mov al, byte [esp + 0x54]
xor edi, edi
xor ebp, ebp
test esi, esi
mov byte [esp + 0x4c], al
jbe 0x4066c7
jmp 0x40661c
mov al, byte [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
mov ecx, ebp
jne 0x406636
and ecx, 0xffff
mov dl, byte [ebx + ecx]
xor dl, al
mov byte [ebx + ecx], dl
jmp 0x406664
mov eax, dword [esp + 0x4c]
mov esi, 0xa
and eax, 0xff
and ecx, 0xffff
cdq
idiv esi
xor eax, eax
mov al, byte [ebx + ecx]
sub eax, edx
sub eax, 0x26
cdq
idiv esi
mov al, byte [esp + 0x4c]
add dl, 0x30
mov byte [ebx + ecx], dl
add al, dl
xor esi, esi
test ecx, ecx
mov byte [esp + 0x4c], al
mov dword [esp + 0x50], esi
jbe 0x4066a9
mov eax, 1
cmp ecx, eax
jbe 0x4066a0
xor edx, edx
mov dl, byte [esi + ebx]
mov esi, edx
xor edx, edx
mov dl, byte [eax + ebx]
mov ebx, esi
shr edx, 1
shr ebx, 1
xor edx, ebx
mov ebx, dword [esp + 0x28]
add edi, edx
inc eax
cmp eax, ecx
jb 0x406684
mov esi, dword [esp + 0x50]
inc esi
cmp esi, ecx
mov dword [esp + 0x50], esi
jb 0x406674
mov al, byte [ebx + ecx]
xor al, 0x6a
inc ebp
mov byte [ebx + ecx], al
mov ecx, dword [esp + 0x10]
mov eax, ebp
and eax, 0xffff
cmp eax, ecx
jb 0x406618
mov esi, ecx
xor edx, edx
test esi, esi
jbe 0x4066fa
xor ecx, ecx
mov ebp, dword [esp + 0x18]
xor eax, eax
mov ax, word [ebp + ecx*2]
mov ebp, dword [esp + 0x48]
mov al, byte [eax + ebx]
xor al, dl
mov byte [ecx + ebp], al
and eax, 0xff
add edi, eax
inc edx
mov ecx, edx
and ecx, 0xffff
cmp ecx, esi
jb 0x4066cf
cmp dword [0x4271f0], edi
je 0x406712
mov dword [0x4271f0], edi
mov dword [0x4271ec], 1
push ebx
call fcn.004194ca
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004194ca
mov edx, dword [0x427590]
add esp, 8
mov eax, esi
mov dword [esp + 0x14], eax
mov ebp, eax
cmp dword [edx + 8], 3
jne 0x4067b1
lea esi, [ebp - 1]
xor cl, cl
xor eax, eax
test esi, esi
jle 0x406760
mov edx, dword [esp + 0x48]
mov bl, cl
shr bl, 7
mov dl, byte [eax + edx]
xor dl, al
xor dl, 0x6a
add dl, bl
shl cl, 1
add cl, dl
inc eax
cmp eax, esi
jl 0x406744
mov esi, dword [esp + 0x48]
mov dl, byte [esi + ebp - 1]
xor dl, al
xor dl, 0x6a
cmp dl, cl
je 0x406785
pop edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
xor eax, eax
xor ecx, ecx
add esi, 5
mov bl, cl
xor edx, edx
mov dl, byte [esi + ecx]
add bl, 5
and ebx, 0xff
xor edx, ebx
xor edx, 0x6a
shl eax, 5
add eax, edx
inc ecx
cmp ecx, 6
jl 0x40678c
jmp 0x406849
mov edi, dword [esp + 0x48]
xor esi, esi
xor eax, eax
mov dl, al
xor ecx, ecx
mov cl, byte [edi + eax + 0xd]
add dl, 0xd
and edx, 0xff
xor ecx, edx
lea edx, [esi + esi*4]
xor ecx, 0x6a
inc eax
cmp eax, 7
lea esi, [ecx + edx*2 - 0x30]
jl 0x4067b9
xor ecx, ecx
xor eax, eax
xor edx, edx
mov ebx, eax
mov dl, byte [eax + edi]
and ebx, 0xff
xor edx, ebx
mov ebx, ecx
xor edx, 0x6a
shr ebx, 0x1f
add edx, ebx
inc eax
cmp eax, 0xd
lea ecx, [edx + ecx*2]
jl 0x4067e0
and ecx, 0x7fffff
cmp esi, ecx
je 0x406820
pop edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
xor eax, eax
xor ecx, ecx
lea esi, [edi + 5]
mov bl, cl
xor edx, edx
mov dl, byte [esi + ecx]
add bl, 5
and ebx, 0xff
lea eax, [eax + eax*4]
xor edx, ebx
xor edx, 0x6a
inc ecx
cmp ecx, 8
lea eax, [edx + eax*2 - 0x30]
jl 0x406827
xor dl, dl
xor ecx, ecx
mov byte [esp + 0x4c], dl
mov edi, dword [esp + 0x48]
shr dl, 7
mov bl, byte [ecx + edi]
xor bl, cl
xor bl, 0x6a
add bl, dl
mov dl, byte [esp + 0x4c]
shl dl, 1
add dl, bl
inc ecx
cmp ecx, 5
mov byte [esp + 0x4c], dl
jl 0x406851
mov ecx, dword [0x427590]
cmp dl, byte [ecx + 0x1d]
je 0x406893
pop edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov dword [0x427254], esi
jmp 0x4074a6
cmp ebp, 8
jl 0x4074fa
lea edx, [ebp - 7]
push edx
call fcn.00419070
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x4074fa
mov eax, dword [esp + 0x50]
lea ecx, [ebp - 8]
mov edx, ecx
mov edi, ebx
lea esi, [eax + 3]
mov eax, dword [esp + 0x54]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 8], 0
test eax, eax
mov eax, dword [0x427590]
mov bp, word [eax]
je 0x406ec4
mov cl, byte [eax + 0x53]
mov dx, word [eax + 0x1e]
shr ebp, 0xb
mov byte [esp + 0x50], cl
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
and ebp, 1
mov word [esp + 0x40], dx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov ecx, eax
mov dword [esp + 0x1c], edx
je 0x40693f
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x40695e
cmp al, 0x5a
jg 0x40695e
cmp al, 0x38
jle 0x406933
cmp al, 0x41
jl 0x40695e
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, edx
jb 0x406920
movsx eax, byte [ebx + 1]
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
movsx eax, byte [ebx]
lea edi, [eax + edx*2 - 0x6db]
mov edx, dword [esp + 0x4c]
cmp edi, edx
lea eax, [ebx + 2]
jbe 0x406965
xor eax, eax
jmp 0x407491
mov esi, eax
xor eax, eax
test edx, edx
mov ecx, 1
jbe 0x4069a9
mov ebx, dword [esp + 0x4c]
mov dl, byte [esi]
inc esi
test dl, dl
je 0x40699f
mov edx, 5
shl ecx, 1
cmp ecx, 0x100
jl 0x406992
inc eax
mov ecx, 1
dec edx
je 0x40699b
cmp eax, ebx
jae 0x40699f
jmp 0x406982
cmp eax, ebx
jb 0x406976
cmp ecx, 1
je 0x4069a9
cmp eax, ebx
jae 0x4069a9
inc eax
cmp edi, eax
mov dword [esp + 0x54], eax
jae 0x4069b5
mov dword [esp + 0x54], edi
mov ecx, dword [esp + 0x54]
mov eax, 0x29e
cmp ecx, eax
jbe 0x4069c6
mov dword [esp + 0x54], eax
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
xor edx, edx
shr ebx, 2
mov dword [esp + 0x34], edx
mov dword [esp + 0x4c], ebx
je 0x406a22
mov esi, ebx
mov ecx, edx
shr ecx, 0x1f
lea ecx, [ecx + edx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea edx, [edx + ecx*2]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
inc eax
dec esi
jne 0x4069df
mov dword [esp + 0x34], edx
mov edi, dword [esp + 0x1c]
and edi, 3
mov dword [esp + 0x38], edi
jbe 0x406a4b
mov ecx, edi
mov esi, edx
shr esi, 0x1f
lea esi, [esi + edx*2]
xor edx, edx
mov dl, byte [eax]
add edx, esi
inc eax
dec ecx
jne 0x406a31
mov edi, dword [esp + 0x38]
mov dword [esp + 0x34], edx
push 0x53c
call fcn.004194d5
mov esi, eax
push 0x29e
mov dword [esp + 0x20], esi
call fcn.004194d5
add esp, 8
mov dword [esp + 0x14], eax
test ebp, ebp
mov word [esi], 0
jne 0x406add
movzx bp, byte [esp + 0x50]
mov ecx, 1
cmp word [esp + 0x54], cx
jbe 0x406b58
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x40]
and ebx, 0xffff
mov esi, ecx
lea edi, [edx + 2]
mov edx, ebp
lea eax, [ebx + esi]
and edx, 0xffff
add edi, 2
xor eax, edx
cdq
idiv esi
mov eax, edx
and edx, 0xffff
xor eax, ecx
add ebp, eax
mov eax, dword [esp + 0x18]
lea eax, [eax + edx*2]
mov dx, word [eax]
mov word [edi - 2], dx
mov word [eax], cx
inc ecx
inc esi
cmp cx, word [esp + 0x54]
jb 0x406a9e
mov ebx, dword [esp + 0x4c]
jmp 0x406b54
mov al, byte [esp + 0x50]
mov cl, 1
mov byte [esp + 0x4c], al
mov al, byte [esp + 0x54]
cmp al, cl
jbe 0x406b58
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x40]
and ebp, 0xff
mov esi, 1
lea edi, [edx + 2]
mov edx, dword [esp + 0x4c]
lea eax, [esi + ebp]
and edx, 0xff
add edi, 2
xor eax, edx
cdq
idiv esi
mov al, byte [esp + 0x4c]
mov byte [esp + 0x40], dl
xor dl, cl
add al, dl
mov edx, dword [esp + 0x18]
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0x40]
and eax, 0xff
lea eax, [edx + eax*2]
mov dx, word [eax]
mov word [edi - 2], dx
xor dx, dx
mov dl, cl
inc cl
mov word [eax], dx
mov al, byte [esp + 0x54]
inc esi
cmp cl, al
jb 0x406b05
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
xor ebp, ebp
xor edx, edx
cmp ebx, ebp
mov dword [esp + 0x38], edx
lea eax, [eax + ecx - 1]
jbe 0x406bb5
mov esi, ebx
mov ecx, edx
shr ecx, 0x1f
lea ecx, [ecx + edx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea edx, [edx + ecx*2]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
dec eax
dec esi
jne 0x406b72
mov dword [esp + 0x38], edx
cmp edi, ebp
jbe 0x406bd1
mov ecx, edi
mov esi, edx
xor ebx, ebx
mov bl, byte [eax]
shr esi, 0x1f
lea edx, [esi + edx*2]
add edx, ebx
dec eax
dec ecx
jne 0x406bbb
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x10]
mov esi, dword [0x42768c]
xor edi, edi
mov dword [esp + 0x30], ebp
mov ecx, dword [esi*4 + 0x427310]
lea eax, [edx + 2]
mov dword [esp + 0x40], eax
cmp ecx, ebp
mov dword [esp + 0x3c], ebp
mov eax, 1
je 0x406c47
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x4c], dl
je 0x406c21
mov edx, dword [esp + 0x4c]
and edx, 0xff
lea ebx, [edx - 1]
cmp ebx, esi
je 0x406c21
cmp edx, dword [0x427688]
jle 0x406c47
mov edx, dword [ecx]
lea ebp, [ecx + 5]
mov ecx, dword [0x427590]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x406c47
mov dword [esp + 0x20], 8
mov edx, dword [esp + 0x54]
test edx, edx
jbe 0x406dc8
mov esi, dword [esp + 0x40]
mov cl, byte [esi]
inc esi
test cl, cl
mov dword [esp + 0x40], esi
je 0x406d9d
cmp cl, 0x37
jne 0x406c72
mov cl, 0x49
add cl, 0xc5
jmp 0x406c8b
cmp cl, 0x38
jne 0x406c7e
mov cl, 0x4f
add cl, 0xc5
jmp 0x406c8b
cmp cl, 0x41
jb 0x406c88
add cl, 0xc5
jmp 0x406c8b
add cl, 0xcf
mov dword [esp + 0x2c], 5
shl eax, 1
test cl, 1
je 0x406c9c
or al, 1
shr cl, 1
cmp eax, 0x100
mov byte [esp + 0x4c], cl
jl 0x406d72
mov ebx, dword [esp + 0x18]
mov edx, edi
and edx, 0xffff
xor esi, esi
inc edi
mov si, word [ebx + edx*2]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], edi
mov byte [esi + edx], al
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x3c]
jae 0x406d69
test ebp, ebp
je 0x406d69
mov edx, dword [ebp]
mov eax, dword [esp + 0x1c]
cmp edx, eax
jne 0x406d69
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x34]
cmp eax, edx
jne 0x406d69
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x38]
cmp edx, eax
jne 0x406d69
mov edx, dword [esp + 0x20]
xor eax, eax
test edx, edx
jle 0x406d59
mov ecx, dword [esp + 0x10]
mov edx, ebp
sub edx, ecx
lea edi, [edx + 0xc]
lea esi, [eax + ecx]
mov dl, al
add dl, 0x55
mov bl, byte [esi + edi]
xor bl, dl
mov dl, byte [esi]
cmp bl, dl
jne 0x406d51
mov bl, byte [eax + ebp + 0x14]
mov esi, dword [esp + 0x20]
mov dl, al
add dl, 0x77
xor bl, dl
mov edx, eax
sub edx, esi
mov esi, dword [esp + 0x1c]
add edx, esi
cmp bl, byte [edx + ecx]
jne 0x406d51
mov edx, dword [esp + 0x20]
inc eax
cmp eax, edx
jl 0x406d17
mov edi, dword [esp + 0x24]
mov cl, byte [esp + 0x4c]
cmp eax, dword [esp + 0x20]
jne 0x406d65
add edi, 0xffff
inc dword [esp + 0x30]
mov edx, dword [esp + 0x54]
mov eax, 1
mov esi, dword [esp + 0x2c]
dec esi
mov dword [esp + 0x2c], esi
je 0x406d8d
mov esi, edi
and esi, 0xffff
cmp esi, edx
jb 0x406c93
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jb 0x406c53
cmp eax, 1
je 0x406dc8
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jae 0x406dc8
shl eax, 1
cmp eax, 0x100
jl 0x406dae
mov esi, dword [esp + 0x18]
xor edx, edx
mov dx, word [esi + ecx*2]
mov ecx, dword [esp + 0x14]
mov byte [edx + ecx], al
mov eax, dword [esp + 0x54]
mov dl, byte [esp + 0x50]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x24], edi
jbe 0x406e4c
xor eax, eax
mov ecx, dword [esp + 0x14]
xor ebp, ebp
mov bl, byte [eax + ecx]
xor bl, dl
add dl, bl
mov byte [eax + ecx], bl
test eax, eax
mov byte [esp + 0x4c], dl
jbe 0x406e29
mov ecx, 1
cmp eax, ecx
jbe 0x406e24
mov esi, dword [esp + 0x14]
xor edx, edx
mov dl, byte [esi + ebp]
mov esi, edx
mov ebx, dword [esp + 0x14]
xor edx, edx
mov dl, byte [ecx + ebx]
mov ebx, esi
shr edx, 1
shr ebx, 1
xor edx, ebx
add edi, edx
inc ecx
cmp ecx, eax
jb 0x406e08
mov dl, byte [esp + 0x4c]
inc ebp
cmp ebp, eax
jb 0x406df4
mov ecx, dword [esp + 0x14]
mov bl, byte [eax + ecx]
xor bl, 0x6a
mov byte [eax + ecx], bl
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x54]
inc eax
mov dword [esp + 0x24], eax
and eax, 0xffff
cmp eax, ecx
jb 0x406ddc
mov eax, dword [esp + 0x54]
xor edx, edx
test eax, eax
jbe 0x406e8c
mov esi, dword [esp + 0x48]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
xor ecx, ecx
xor eax, eax
mov ax, word [ebx + ecx*2]
mov al, byte [eax + ebp]
xor al, dl
mov byte [ecx + esi], al
and eax, 0xff
add edi, eax
mov eax, dword [esp + 0x54]
inc edx
mov ecx, edx
and ecx, 0xffff
cmp ecx, eax
jb 0x406e64
jmp 0x406e94
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
cmp dword [0x4271f0], edi
je 0x406eac
mov dword [0x4271f0], edi
mov dword [0x4271ec], 1
push ebp
call fcn.004194ca
push ebx
call fcn.004194ca
mov eax, dword [esp + 0x5c]
add esp, 8
jmp 0x40748d
mov cl, byte [eax + 0x54]
mov dx, word [eax + 0x34]
shr ebp, 0xb
mov byte [esp + 0x50], cl
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
and ebp, 1
mov word [esp + 0x40], dx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov ecx, eax
mov dword [esp + 0x24], edx
je 0x406f0f
mov al, byte [eax + ebx]
cmp al, 0x30
jl 0x406f2e
cmp al, 0x5a
jg 0x406f2e
cmp al, 0x38
jle 0x406f03
cmp al, 0x41
jl 0x406f2e
inc ecx
mov eax, ecx
and eax, 0xffff
cmp eax, edx
jb 0x406ef0
movsx eax, byte [ebx + 1]
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0x4c]
movsx eax, byte [ebx]
lea edi, [eax + edx*2 - 0x6db]
lea eax, [ebx + 2]
cmp edi, ecx
jbe 0x406f35
xor eax, eax
jmp 0x407491
mov ebx, dword [esp + 0x4c]
mov esi, eax
xor eax, eax
mov ecx, 1
test ebx, ebx
jbe 0x406f79
mov dl, byte [esi]
inc esi
test dl, dl
je 0x406f6f
mov edx, 5
shl ecx, 1
cmp ecx, 0x100
jl 0x406f62
inc eax
mov ecx, 1
dec edx
je 0x406f6b
cmp eax, ebx
jae 0x406f6f
jmp 0x406f52
cmp eax, ebx
jb 0x406f46
cmp ecx, 1
je 0x406f79
cmp eax, ebx
jae 0x406f79
inc eax
cmp edi, eax
mov dword [esp + 0x54], eax
jae 0x406f85
mov dword [esp + 0x54], edi
mov ecx, dword [esp + 0x54]
mov eax, 0x29e
cmp ecx, eax
jbe 0x406f96
mov dword [esp + 0x54], eax
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
xor edx, edx
shr ebx, 2
mov dword [esp + 0x34], edx
mov dword [esp + 0x4c], ebx
je 0x406ff2
mov esi, ebx
mov ecx, edx
shr ecx, 0x1f
lea ecx, [ecx + edx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
inc eax
mov edx, ecx
shr edx, 0x1f
lea edx, [edx + ecx*2]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
inc eax
dec esi
jne 0x406faf
mov dword [esp + 0x34], edx
mov edi, dword [esp + 0x24]
and edi, 3
mov dword [esp + 0x38], edi
jbe 0x40701b
mov ecx, edi
mov esi, edx
shr esi, 0x1f
lea esi, [esi + edx*2]
xor edx, edx
mov dl, byte [eax]
add edx, esi
inc eax
dec ecx
jne 0x407001
mov edi, dword [esp + 0x38]
mov dword [esp + 0x34], edx
push 0x53c
call fcn.004194d5
mov esi, eax
push 0x29e
mov dword [esp + 0x1c], esi
call fcn.004194d5
add esp, 8
mov dword [esp + 0x18], eax
test ebp, ebp
mov word [esi], 0
jne 0x4070ad
movzx bp, byte [esp + 0x50]
mov ecx, 1
cmp word [esp + 0x54], cx
jbe 0x407128
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x40]
and ebx, 0xffff
mov esi, ecx
lea edi, [edx + 2]
mov edx, ebp
lea eax, [esi + ebx]
and edx, 0xffff
add edi, 2
xor eax, edx
cdq
idiv esi
mov eax, edx
and edx, 0xffff
xor eax, ecx
add ebp, eax
mov eax, dword [esp + 0x14]
lea eax, [eax + edx*2]
mov dx, word [eax]
mov word [edi - 2], dx
mov word [eax], cx
inc ecx
inc esi
cmp cx, word [esp + 0x54]
jb 0x40706e
mov ebx, dword [esp + 0x4c]
jmp 0x407124
mov al, byte [esp + 0x50]
mov cl, 1
mov byte [esp + 0x4c], al
mov al, byte [esp + 0x54]
cmp al, cl
jbe 0x407128
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x40]
and ebp, 0xff
mov esi, 1
lea edi, [edx + 2]
mov edx, dword [esp + 0x4c]
lea eax, [esi + ebp]
and edx, 0xff
add edi, 2
xor eax, edx
cdq
idiv esi
mov al, byte [esp + 0x4c]
mov byte [esp + 0x40], dl
xor dl, cl
add al, dl
mov edx, dword [esp + 0x14]
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0x40]
and eax, 0xff
lea eax, [edx + eax*2]
mov dx, word [eax]
mov word [edi - 2], dx
xor dx, dx
mov dl, cl
inc cl
mov word [eax], dx
mov al, byte [esp + 0x54]
inc esi
cmp cl, al
jb 0x4070d5
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
xor ebp, ebp
xor edx, edx
cmp ebx, ebp
mov dword [esp + 0x38], edx
lea eax, [eax + ecx - 1]
jbe 0x407185
mov esi, ebx
mov ecx, edx
shr ecx, 0x1f
lea ecx, [ecx + edx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea ecx, [edx + ecx*2]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
dec eax
mov edx, ecx
shr edx, 0x1f
lea edx, [edx + ecx*2]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
dec eax
dec esi
jne 0x407142
mov dword [esp + 0x38], edx
cmp edi, ebp
jbe 0x4071a1
mov ecx, edi
mov esi, edx
xor ebx, ebx
mov bl, byte [eax]
shr esi, 0x1f
lea edx, [esi + edx*2]
add edx, ebx
dec eax
dec ecx
jne 0x40718b
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x10]
mov esi, dword [0x42768c]
xor edi, edi
mov dword [esp + 0x30], ebp
mov ecx, dword [esi*4 + 0x427310]
lea eax, [edx + 2]
mov dword [esp + 0x40], eax
cmp ecx, ebp
mov dword [esp + 0x3c], ebp
mov eax, 1
je 0x407217
mov dl, byte [ecx + 4]
sub dl, 0xe
mov byte [esp + 0x4c], dl
je 0x4071f1
mov edx, dword [esp + 0x4c]
and edx, 0xff
lea ebx, [edx - 1]
cmp ebx, esi
je 0x4071f1
cmp edx, dword [0x427688]
jle 0x407217
mov edx, dword [ecx]
lea ebp, [ecx + 5]
mov ecx, dword [0x427590]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], 5
mov edx, dword [ecx + 8]
test edx, edx
jne 0x407217
mov dword [esp + 0x20], 8
mov edx, dword [esp + 0x54]
test edx, edx
jbe 0x407398
mov esi, dword [esp + 0x40]
mov cl, byte [esi]
inc esi
test cl, cl
mov dword [esp + 0x40], esi
je 0x40736d
cmp cl, 0x37
jne 0x407242
mov cl, 0x49
add cl, 0xc5
jmp 0x40725b
cmp cl, 0x38
jne 0x40724e
mov cl, 0x4f
add cl, 0xc5
jmp 0x40725b
cmp cl, 0x41
jb 0x407258
add cl, 0xc5
jmp 0x40725b
add cl, 0xcf
mov dword [esp + 0x2c], 5
shl eax, 1
test cl, 1
je 0x40726c
or al, 1
shr cl, 1
cmp eax, 0x100
mov byte [esp + 0x4c], cl
jl 0x407342
mov ebx, dword [esp + 0x14]
mov edx, edi
and edx, 0xffff
xor esi, esi
inc edi
mov si, word [ebx + edx*2]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], edi
mov byte [esi + edx], al
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x3c]
jae 0x407339
test ebp, ebp
je 0x407339
mov edx, dword [ebp]
mov eax, dword [esp + 0x24]
cmp edx, eax
jne 0x407339
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x34]
cmp eax, edx
jne 0x407339
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x38]
cmp edx, eax
jne 0x407339
mov edx, dword [esp + 0x20]
xor eax, eax
test edx, edx
jle 0x407329
mov ecx, dword [esp + 0x10]
mov edx, ebp
sub edx, ecx
lea edi, [edx + 0xc]
lea esi, [eax + ecx]
mov dl, al
add dl, 0x55
mov bl, byte [edi + esi]
xor bl, dl
mov dl, byte [esi]
cmp bl, dl
jne 0x407321
mov bl, byte [eax + ebp + 0x14]
mov esi, dword [esp + 0x20]
mov dl, al
add dl, 0x77
xor bl, dl
mov edx, eax
sub edx, esi
mov esi, dword [esp + 0x24]
add edx, esi
cmp bl, byte [edx + ecx]
jne 0x407321
mov edx, dword [esp + 0x20]
inc eax
cmp eax, edx
jl 0x4072e7
mov edi, dword [esp + 0x1c]
mov cl, byte [esp + 0x4c]
cmp eax, dword [esp + 0x20]
jne 0x407335
add edi, 0xffff
inc dword [esp + 0x30]
mov edx, dword [esp + 0x54]
mov eax, 1
mov esi, dword [esp + 0x2c]
dec esi
mov dword [esp + 0x2c], esi
je 0x40735d
mov esi, edi
and esi, 0xffff
cmp esi, edx
jb 0x407263
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jb 0x407223
cmp eax, 1
je 0x407398
mov ecx, edi
and ecx, 0xffff
cmp ecx, edx
jae 0x407398
shl eax, 1
cmp eax, 0x100
jl 0x40737e
mov esi, dword [esp + 0x14]
xor edx, edx
mov dx, word [esi + ecx*2]
mov ecx, dword [esp + 0x18]
mov byte [edx + ecx], al
mov eax, dword [esp + 0x54]
mov dl, byte [esp + 0x50]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], edi
jbe 0x40741c
xor eax, eax
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov bl, byte [eax + ecx]
xor bl, dl
add dl, bl
mov byte [eax + ecx], bl
test eax, eax
mov byte [esp + 0x4c], dl
jbe 0x4073f9
mov ecx, 1
cmp eax, ecx
jbe 0x4073f4
mov esi, dword [esp + 0x18]
xor edx, edx
mov dl, byte [esi + ebp]
mov esi, edx
mov ebx, dword [esp + 0x18]
xor edx, edx
mov dl, byte [ecx + ebx]
mov ebx, esi
shr edx, 1
shr ebx, 1
xor edx, ebx
add edi, edx
inc ecx
cmp ecx, eax
jb 0x4073d8
mov dl, byte [esp + 0x4c]
inc ebp
cmp ebp, eax
jb 0x4073c4
mov ecx, dword [esp + 0x18]
mov bl, byte [eax + ecx]
xor bl, 0x6a
mov byte [eax + ecx], bl
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x54]
inc eax
mov dword [esp + 0x1c], eax
and eax, 0xffff
cmp eax, ecx
jb 0x4073ac
mov ebp, dword [esp + 0x54]
xor edx, edx
test ebp, ebp
jbe 0x40745c
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov ebp, dword [esp + 0x48]
xor eax, eax
mov ax, word [esi + ecx*2]
mov al, byte [eax + ebx]
xor al, dl
mov byte [ecx + ebp], al
mov ebp, dword [esp + 0x54]
and eax, 0xff
add edi, eax
inc edx
mov ecx, edx
and ecx, 0xffff
cmp ecx, ebp
jb 0x407430
jmp 0x407464
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp dword [0x4271f0], edi
je 0x40747c
mov dword [0x4271f0], edi
mov dword [0x4271ec], 1
push ebx
call fcn.004194ca
push esi
call fcn.004194ca
add esp, 8
mov eax, ebp
mov ebx, dword [esp + 0x10]
push ebx
mov dword [esp + 0x18], eax
call fcn.004191d3
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x18]
add esp, 4
test ebp, ebp
je 0x4074fa
mov ecx, dword [0x427590]
mov edx, dword [ecx + 8]
test edx, edx
je 0x4074fa
mov edx, dword [0x427254]
mov esi, eax
xor edi, edi
mov byte [edx], 8
mov eax, esi
xor edx, edx
mov ecx, 0xa
div ecx
mov eax, 0xcccccccd
mov ecx, edx
mul esi
shr edx, 3
mov esi, edx
mov edx, dword [0x427254]
add cl, 0x30
sub edx, edi
inc edi
cmp edi, 8
mov byte [edx + 8], cl
jl 0x4074c4
mov eax, dword [0x427254]
mov byte [eax + 9], 0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret