Function at 0x404f70
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x623958
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x510
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x518], ecx
mov dword [ebp - 0x4d8], ecx
mov dword [ebp - 0x4d8], ecx
lea ecx, [ebp - 0x2c]
call fcn.00401730
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x4dc], esi
lea eax, [esi + 1]
push eax
call fcn.00622712
add esp, 4
mov ecx, eax
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4e0], ecx
cmova eax, dword [ebp - 0x2c]
inc esi
push esi
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push esi
call fcn.00622712
add esp, 4
mov ecx, eax
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4cc], ecx
cmova eax, dword [ebp - 0x2c]
push esi
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x4a8], 0x6dcce4
mov byte [ebp - 0x4a4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov byte [ebp - 4], 1
xor ecx, ecx
movaps xmm0, xmmword [0x6e6830]
movups xmmword [ebp - 0x4f8], xmm0
mov dword [ebp - 0x4e8], 0x441c4441
mov byte [ebp - 0x4e4], 0
mov al, byte [ebp - 0x4f8]
xor byte [ebp + ecx - 0x4f7], al
inc ecx
cmp ecx, 0x13
jb 0x405081
movaps xmm0, xmmword [0x6e6950]
xor ecx, ecx
mov byte [ebp - 0x4e4], 0
movups xmmword [ebp - 0x510], xmm0
mov dword [ebp - 0x500], 0x20225252
mov word [ebp - 0x4fc], 0x580c
mov byte [ebp - 0x4fa], 0
nop word [eax + eax]
mov al, byte [ebp - 0x510]
xor byte [ebp + ecx - 0x50f], al
inc ecx
cmp ecx, 0x15
jb 0x4050d0
movups xmm0, xmmword [ebp - 0x4f7]
push 0x10
lea eax, [ebp - 0x4f7]
mov byte [ebp - 0x4fa], 0
push eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xe0], 0x10
push eax
mov dword [ebp - 0xdc], 0x10
movups xmmword [ebp - 0xd4], xmm0
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [ebp - 0xe0]
add esp, 0xc
mov eax, dword [ebp - 0xdc]
cmp edi, 0x10
je 0x40514b
cmp edi, 0x18
je 0x405141
mov ecx, 0xe
jmp 0x405164
xor ecx, ecx
cmp eax, 0x20
sete cl
jmp 0x40515d
cmp eax, 0x10
jne 0x405155
lea ecx, [eax - 6]
jmp 0x405164
xor ecx, ecx
cmp eax, 0x18
setne cl
lea ecx, [ecx*2 + 0xc]
cdq
xor esi, esi
and edx, 3
mov dword [ebp - 0xd8], ecx
add eax, edx
mov dword [ebp - 0x4b0], ecx
sar eax, 2
mov dword [ebp - 0x4c4], eax
test ecx, ecx
js 0x4051bc
lea edx, [ebp - 0x4a0]
nop dword [eax + eax]
test eax, eax
jle 0x4051a8
mov ecx, eax
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x4c4]
inc esi
add edx, 0x20
cmp esi, ecx
jle 0x405190
mov edi, dword [ebp - 0xe0]
mov dword [ebp - 0x4b0], ecx
xor edx, edx
test ecx, ecx
js 0x4051f4
lea esi, [ebp - 0x2c0]
test eax, eax
jle 0x4051e0
mov ecx, eax
mov edi, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x4c4]
inc edx
add esi, 0x20
cmp edx, ecx
jle 0x4051c8
mov edi, dword [ebp - 0xe0]
mov dword [ebp - 0x4b0], ecx
lea edx, [ecx + 1]
imul edx, eax
mov eax, edi
lea edi, [ebp - 0x50f]
mov dword [ebp - 0x4bc], edx
cdq
and edx, 3
lea esi, [edx + eax]
sar esi, 2
lea eax, [ebp - 0x94]
mov dword [ebp - 0x4c8], esi
mov dword [ebp - 0x4ac], eax
test esi, esi
jle 0x4052cb
mov dword [ebp - 0x4b8], esi
movzx esi, byte [edi]
lea edi, [edi + 4]
movzx edx, byte [edi - 3]
movzx ecx, byte [edi - 2]
movzx eax, byte [edi - 1]
shl esi, 8
or esi, edx
shl esi, 8
or esi, ecx
shl esi, 8
or esi, eax
mov eax, dword [ebp - 0x4ac]
mov dword [eax], esi
add eax, 4
sub dword [ebp - 0x4b8], 1
mov dword [ebp - 0x4ac], eax
jne 0x405232
mov esi, dword [ebp - 0x4c8]
xor edi, edi
cmp edi, dword [ebp - 0x4bc]
jge 0x4052bd
mov eax, edi
cdq
idiv dword [ebp - 0x4c4]
mov esi, eax
mov eax, dword [ebp + edi*4 - 0x94]
lea ecx, [edx + esi*8]
mov dword [ebp + ecx*4 - 0x4a0], eax
mov eax, dword [ebp - 0xd8]
sub eax, esi
mov esi, dword [ebp - 0x4c8]
lea ecx, [edx + eax*8]
mov eax, dword [ebp + edi*4 - 0x94]
inc edi
mov dword [ebp + ecx*4 - 0x2c0], eax
cmp edi, esi
jl 0x405275
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x4b0], ecx
jmp 0x4052cd
xor edi, edi
cmp edi, dword [ebp - 0x4bc]
jge 0x4054a2
lea edx, [ebp - 0x98]
mov eax, 0x6d8490
lea edx, [edx + esi*4]
nop word [eax + eax]
movzx ecx, byte [eax]
inc eax
mov dword [ebp - 0x4d4], eax
mov eax, dword [edx]
sar eax, 0x10
movzx eax, al
movsx edx, byte [eax + 0x6d6f30]
lea eax, [ebp - 0x98]
xor edx, ecx
lea eax, [eax + esi*4]
mov ecx, dword [eax]
mov eax, ecx
sar eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x6d6f30]
xor edx, eax
movzx eax, cl
shl edx, 8
sar ecx, 0x18
movzx eax, byte [eax + 0x6d6f30]
xor edx, eax
movzx eax, cl
shl edx, 8
mov ecx, 1
movzx eax, byte [eax + 0x6d6f30]
xor edx, eax
xor dword [ebp - 0x94], edx
cmp esi, 8
je 0x405390
cmp esi, ecx
jle 0x405378
nop
mov eax, dword [ebp + ecx*4 - 0x98]
xor dword [ebp + ecx*4 - 0x94], eax
inc ecx
cmp ecx, esi
jl 0x405360
jmp 0x405414
mov dword [ebp - 0x4ac], 0
test esi, esi
jle 0x40547b
jmp 0x405420
mov eax, dword [ebp + ecx*4 - 0x98]
xor dword [ebp + ecx*4 - 0x94], eax
inc ecx
cmp ecx, 4
jl 0x405390
mov ecx, dword [ebp - 0x88]
mov eax, ecx
sar eax, 0x18
movzx eax, al
movsx edx, byte [eax + 0x6d6f30]
mov eax, ecx
sar eax, 0x10
movzx eax, al
shl edx, 8
sar ecx, 8
movzx eax, byte [eax + 0x6d6f30]
xor edx, eax
movzx eax, cl
shl edx, 8
mov ecx, 5
movzx eax, byte [eax + 0x6d6f30]
xor edx, eax
movzx eax, byte [ebp - 0x88]
shl edx, 8
movzx eax, byte [eax + 0x6d6f30]
xor edx, eax
xor dword [ebp - 0x84], edx
nop dword [eax]
mov eax, dword [ebp + ecx*4 - 0x98]
xor dword [ebp + ecx*4 - 0x94], eax
inc ecx
cmp ecx, 8
jl 0x405400
mov dword [ebp - 0x4ac], 0
nop
cmp edi, dword [ebp - 0x4bc]
jge 0x405496
mov eax, edi
inc edi
cdq
idiv dword [ebp - 0x4c4]
mov esi, eax
mov eax, dword [ebp - 0x4ac]
mov eax, dword [ebp + eax*4 - 0x94]
lea ecx, [edx + esi*8]
mov dword [ebp + ecx*4 - 0x4a0], eax
mov eax, dword [ebp - 0xd8]
sub eax, esi
mov esi, dword [ebp - 0x4c8]
lea ecx, [edx + eax*8]
mov edx, dword [ebp - 0x4ac]
mov eax, dword [ebp + edx*4 - 0x94]
inc edx
mov dword [ebp + ecx*4 - 0x2c0], eax
mov dword [ebp - 0x4ac], edx
cmp edx, esi
jl 0x405420
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x4d4]
lea edx, [edx + esi*4]
cmp edi, dword [ebp - 0x4bc]
jl 0x4052f0
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x4b0], ecx
mov esi, 1
mov dword [ebp - 0x4c8], esi
cmp ecx, esi
jle 0x405546
mov eax, dword [ebp - 0x4c4]
lea edx, [ebp - 0x2a0]
mov dword [ebp - 0x4ac], edx
test eax, eax
jle 0x40552c
mov esi, edx
mov edi, eax
nop
mov edx, dword [esi]
lea esi, [esi + 4]
mov eax, edx
sar eax, 0x18
movzx ecx, al
mov eax, edx
sar eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x6d88b0]
xor ecx, dword [eax*4 + 0x6d7030]
mov eax, edx
sar eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6d7830]
movzx eax, dl
xor ecx, dword [eax*4 + 0x6d84b0]
mov dword [esi - 4], ecx
sub edi, 1
jne 0x4054d0
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x4c4]
mov edx, dword [ebp - 0x4ac]
mov esi, dword [ebp - 0x4c8]
inc esi
add edx, 0x20
mov dword [ebp - 0x4c8], esi
mov dword [ebp - 0x4ac], edx
cmp esi, ecx
jl 0x4054c7
mov dword [ebp - 0x4b0], ecx
mov edi, dword [ebp - 0x4dc]
mov byte [ebp - 0x4a4], 1
test edi, edi
je 0x405d9a
mov esi, dword [ebp - 0xdc]
xor edx, edx
mov eax, edi
div esi
test edx, edx
jne 0x405d9a
mov eax, dword [ebp - 0x4e0]
mov dword [ebp - 0x4c8], eax
mov eax, dword [ebp - 0x4cc]
mov dword [ebp - 0x4c4], eax
mov eax, edi
mov dword [ebp - 0x4d4], edx
div esi
test eax, eax
je 0x405d9a
nop dword [eax]
cmp byte [ebp - 0x4a4], 0
mov edx, dword [ebp - 0x4c8]
mov edi, edx
je 0x405cfe
cmp esi, 0x10
jne 0x4059ea
movzx eax, byte [edx]
lea esi, [edx + 1]
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
mov dword [ebp - 0x4c0], eax
mov edi, dword [ebp - 0x4c0]
movzx eax, byte [esi + 2]
shl edi, 8
or edi, edx
mov edx, edi
mov dword [ebp - 0x4c0], edi
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 5]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 3]
xor edx, dword [ebp - 0x2c0]
mov dword [ebp - 0x4c0], edx
movzx edx, byte [esi + 4]
mov dword [ebp - 0x4b4], eax
mov edi, dword [ebp - 0x4b4]
movzx eax, byte [esi + 6]
shl edi, 8
or edi, edx
mov edx, edi
mov dword [ebp - 0x4b4], edi
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 9]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 7]
xor edx, dword [ebp - 0x2bc]
mov dword [ebp - 0x4b8], eax
mov edi, dword [ebp - 0x4b8]
movzx eax, byte [esi + 0xa]
mov dword [ebp - 0x4b4], edx
movzx edx, byte [esi + 8]
shl edi, 8
or edi, edx
mov edx, edi
mov dword [ebp - 0x4b8], edi
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0xb]
shl ecx, 8
shl edx, 8
or edx, eax
movzx eax, byte [esi + 0xc]
xor edx, dword [ebp - 0x2b8]
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x4b8], edx
movzx eax, byte [esi + 0xe]
mov esi, dword [ebp - 0x4b0]
shl ecx, 8
or ecx, eax
xor ecx, dword [ebp - 0x2b4]
mov dword [ebp - 0x4ac], ecx
cmp esi, 1
jle 0x40583d
lea eax, [ebp - 0x298]
dec esi
mov dword [ebp - 0x4bc], eax
mov dword [ebp - 0x4d0], esi
jmp 0x4056d6
mov edx, dword [ebp - 0x4b8]
mov eax, dword [ebp - 0x4b4]
sar eax, 0x18
movzx eax, al
sar ecx, 8
movzx ecx, cl
mov edi, dword [ecx*4 + 0x6d6b30]
xor edi, dword [eax*4 + 0x6d8030]
mov eax, dword [ebp - 0x4c0]
sar eax, 0x10
movzx eax, al
xor edi, dword [eax*4 + 0x6d5b30]
movzx eax, dl
xor edi, dword [eax*4 + 0x6d7c30]
mov eax, dword [ebp - 0x4bc]
xor edi, dword [eax - 4]
mov eax, edx
sar eax, 0x18
movzx ecx, al
mov eax, dword [ebp - 0x4b4]
sar eax, 0x10
movzx eax, al
mov esi, dword [ecx*4 + 0x6d8030]
mov ecx, dword [ebp - 0x4ac]
xor esi, dword [eax*4 + 0x6d5b30]
mov eax, dword [ebp - 0x4c0]
sar eax, 8
movzx eax, al
xor esi, dword [eax*4 + 0x6d6b30]
movzx eax, cl
xor esi, dword [eax*4 + 0x6d7c30]
mov eax, dword [ebp - 0x4bc]
xor esi, dword [eax]
mov eax, ecx
sar eax, 0x18
movzx ecx, al
mov eax, edx
sar eax, 0x10
movzx eax, al
mov edx, dword [ecx*4 + 0x6d8030]
xor edx, dword [eax*4 + 0x6d5b30]
mov eax, dword [ebp - 0x4b4]
sar eax, 8
movzx eax, al
xor edx, dword [eax*4 + 0x6d6b30]
mov eax, dword [ebp - 0x4c0]
movzx eax, al
xor edx, dword [eax*4 + 0x6d7c30]
mov eax, dword [ebp - 0x4bc]
xor edx, dword [eax + 4]
mov eax, dword [ebp - 0x4ac]
sar eax, 0x10
movzx ecx, al
mov eax, dword [ebp - 0x4b8]
sar eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x6d5b30]
mov dword [ebp - 0x4b8], esi
xor ecx, dword [eax*4 + 0x6d6b30]
mov eax, dword [ebp - 0x4c0]
sar eax, 0x18
movzx eax, al
xor ecx, dword [eax*4 + 0x6d8030]
mov eax, dword [ebp - 0x4b4]
movzx eax, al
mov dword [ebp - 0x4b4], edi
xor ecx, dword [eax*4 + 0x6d7c30]
mov eax, dword [ebp - 0x4bc]
add dword [ebp - 0x4bc], 0x20
xor ecx, dword [eax - 8]
sub dword [ebp - 0x4d0], 1
mov eax, ecx
mov ecx, edx
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x4ac], ecx
jne 0x4056d0
mov esi, dword [ebp - 0x4b0]
jmp 0x405843
mov eax, dword [ebp - 0x4c0]
mov edi, dword [ebp - 0x4c4]
sar eax, 0x18
movzx eax, al
shl esi, 5
mov edx, dword [ebp + esi - 0x2c0]
mov ecx, edx
sar ecx, 0x18
xor cl, byte [eax + 0x6d5a30]
mov eax, dword [ebp - 0x4ac]
sar eax, 0x10
movzx eax, al
mov byte [edi], cl
mov ecx, edx
sar ecx, 0x10
xor cl, byte [eax + 0x6d5a30]
mov eax, dword [ebp - 0x4b8]
sar eax, 8
movzx eax, al
mov byte [edi + 1], cl
mov ecx, edx
sar ecx, 8
xor cl, byte [eax + 0x6d5a30]
mov byte [edi + 2], cl
mov ecx, dword [ebp - 0x4b4]
movzx eax, cl
movzx eax, byte [eax + 0x6d5a30]
xor al, dl
mov edx, dword [ebp + esi - 0x2bc]
mov byte [edi + 3], al
mov eax, ecx
sar eax, 0x18
mov ecx, edx
movzx eax, al
sar ecx, 0x18
xor cl, byte [eax + 0x6d5a30]
mov eax, dword [ebp - 0x4c0]
sar eax, 0x10
movzx eax, al
mov byte [edi + 4], cl
mov ecx, edx
sar ecx, 0x10
xor cl, byte [eax + 0x6d5a30]
mov eax, dword [ebp - 0x4ac]
sar eax, 8
movzx eax, al
mov byte [edi + 5], cl
mov ecx, edx
sar ecx, 8
xor cl, byte [eax + 0x6d5a30]
mov byte [edi + 6], cl
mov ecx, dword [ebp - 0x4b8]
movzx eax, cl
movzx eax, byte [eax + 0x6d5a30]
xor al, dl
mov edx, dword [ebp + esi - 0x2b8]
mov byte [edi + 7], al
mov eax, ecx
sar eax, 0x18
mov ecx, edx
movzx eax, al
sar ecx, 0x18
xor cl, byte [eax + 0x6d5a30]
mov eax, dword [ebp - 0x4b4]
sar eax, 0x10
mov byte [edi + 8], cl
mov ecx, edx
movzx eax, al
sar ecx, 0x10
xor cl, byte [eax + 0x6d5a30]
mov eax, dword [ebp - 0x4c0]
sar eax, 8
mov byte [edi + 9], cl
mov ecx, edx
movzx eax, al
sar ecx, 8
xor cl, byte [eax + 0x6d5a30]
mov byte [edi + 0xa], cl
mov ecx, dword [ebp - 0x4ac]
movzx eax, cl
movzx eax, byte [eax + 0x6d5a30]
xor al, dl
mov edx, dword [ebp + esi - 0x2b4]
sar ecx, 0x18
mov byte [edi + 0xb], al
movzx eax, cl
mov ecx, edx
sar ecx, 0x18
xor cl, byte [eax + 0x6d5a30]
mov eax, dword [ebp - 0x4b8]
sar eax, 0x10
movzx eax, al
mov byte [edi + 0xc], cl
mov ecx, edx
sar ecx, 0x10
xor cl, byte [eax + 0x6d5a30]
mov eax, dword [ebp - 0x4b4]
sar eax, 8
movzx eax, al
mov byte [edi + 0xd], cl
mov ecx, edx
sar ecx, 8
xor cl, byte [eax + 0x6d5a30]
mov eax, dword [ebp - 0x4c0]
movzx eax, al
mov byte [edi + 0xe], cl
movzx eax, byte [eax + 0x6d5a30]
xor al, dl
mov byte [edi + 0xf], al
mov esi, dword [ebp - 0xdc]
jmp 0x405d04
mov eax, esi
cdq
and edx, 3
lea esi, [edx + eax]
sar esi, 2
cmp esi, 4
jne 0x405a2f
mov eax, dword [0x6d843c]
mov dword [ebp - 0x4ac], eax
mov eax, dword [0x6d8444]
mov dword [ebp - 0x4b8], eax
mov eax, dword [0x6d844c]
mov dword [ebp - 0x4bc], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x4b4], eax
xor eax, eax
mov dword [ebp - 0x4b0], eax
jmp 0x405a80
cmp esi, 6
mov edx, 0x20
mov eax, 0x40
cmove eax, edx
mov edx, dword [eax + 0x6d843c]
mov dword [ebp - 0x4ac], edx
mov edx, dword [eax + 0x6d8444]
mov eax, dword [eax + 0x6d844c]
mov dword [ebp - 0x4bc], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x4b4], eax
xor eax, eax
mov dword [ebp - 0x4b8], edx
mov dword [ebp - 0x4b0], eax
test esi, esi
jle 0x405ad6
nop dword [eax + eax]
movzx edx, byte [edi]
lea edi, [edi + 4]
movzx ecx, byte [edi - 3]
movzx eax, byte [edi - 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi - 1]
shl edx, 8
or edx, eax
mov eax, dword [ebp - 0x4b4]
add dword [ebp - 0x4b4], 4
shl edx, 8
mov dword [eax], edx
or edx, ecx
mov ecx, dword [ebp - 0x4b0]
xor edx, dword [ebp + ecx*4 - 0x2c0]
inc ecx
mov dword [eax], edx
mov dword [ebp - 0x4b0], ecx
cmp ecx, esi
jl 0x405a80
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ebp - 0x4b8]
mov edi, 1
mov dword [ebp - 0x4b0], edi
cmp ecx, edi
jle 0x405bf8
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x4c0], eax
nop word [eax + eax]
mov dword [ebp - 0x4d0], 0
test esi, esi
jle 0x405bb6
mov ecx, dword [ebp - 0x4bc]
mov edi, edx
mov dword [ebp - 0x4b4], eax
mov eax, dword [ebp - 0x4ac]
sub eax, edx
sub ecx, edx
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x514], ecx
add eax, edi
cdq
idiv esi
movsx eax, word [ebp + edx*4 - 0x52]
movzx ecx, al
mov eax, dword [ebp - 0x514]
add eax, edi
cdq
idiv esi
mov ecx, dword [ecx*4 + 0x6d5b30]
movzx eax, byte [ebp + edx*4 - 0x54]
xor ecx, dword [eax*4 + 0x6d7c30]
mov eax, edi
cdq
inc edi
idiv esi
mov eax, dword [ebp + edx*4 - 0x54]
mov edx, dword [ebp - 0x4d0]
sar eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6d6b30]
movzx eax, byte [ebp + edx*4 - 0x51]
xor ecx, dword [eax*4 + 0x6d8030]
mov eax, dword [ebp - 0x4b4]
xor ecx, dword [eax]
add eax, 4
mov dword [ebp + edx*4 - 0x74], ecx
inc edx
mov dword [ebp - 0x4b4], eax
mov eax, dword [ebp - 0x4d8]
mov dword [ebp - 0x4d0], edx
cmp edx, esi
jl 0x405b36
mov edi, dword [ebp - 0x4b0]
lea eax, [esi*4]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x4c0]
inc edi
mov ecx, dword [ebp - 0xd8]
add eax, 0x20
mov edx, dword [ebp - 0x4b8]
add esp, 0xc
mov dword [ebp - 0x4b0], edi
mov dword [ebp - 0x4c0], eax
cmp edi, ecx
jl 0x405b00
mov edi, dword [ebp - 0x4c4]
xor eax, eax
mov dword [ebp - 0x4d0], eax
test esi, esi
jle 0x4059df
shl ecx, 5
lea edx, [ebp - 0x2c0]
add ecx, edx
mov edx, dword [ebp - 0x4b8]
sub dword [ebp - 0x4ac], edx
sub dword [ebp - 0x4bc], edx
mov dword [ebp - 0x4b0], ecx
movzx eax, byte [ebp + eax*4 - 0x51]
mov ecx, dword [ecx]
sar ecx, 0x18
xor cl, byte [eax + 0x6d5a30]
mov eax, dword [ebp - 0x4ac]
add eax, edx
mov byte [edi], cl
cdq
inc edi
idiv esi
mov ecx, dword [ebp - 0x4b0]
mov dword [ebp - 0x4b4], edi
movsx eax, word [ebp + edx*4 - 0x52]
mov edi, dword [ecx]
mov ecx, edi
movzx eax, al
sar ecx, 0x10
xor cl, byte [eax + 0x6d5a30]
mov eax, dword [ebp - 0x4b4]
mov byte [eax], cl
inc eax
mov dword [ebp - 0x4b4], eax
mov ecx, edi
mov eax, dword [ebp - 0x4b8]
cdq
idiv esi
sar ecx, 8
mov edi, dword [ebp - 0x4b4]
mov eax, dword [ebp + edx*4 - 0x54]
sar eax, 8
movzx eax, al
xor cl, byte [eax + 0x6d5a30]
mov eax, dword [ebp - 0x4b8]
add eax, dword [ebp - 0x4bc]
cdq
idiv esi
mov byte [edi], cl
mov ecx, dword [ebp - 0x4b0]
movzx eax, byte [ebp + edx*4 - 0x54]
mov edx, dword [ebp - 0x4b8]
inc edx
mov dword [ebp - 0x4b8], edx
mov al, byte [eax + 0x6d5a30]
xor al, byte [ecx]
add ecx, 4
mov byte [edi + 1], al
add edi, 2
mov eax, dword [ebp - 0x4d0]
inc eax
mov dword [ebp - 0x4b0], ecx
mov dword [ebp - 0x4d0], eax
cmp eax, esi
jl 0x405c31
mov esi, dword [ebp - 0xdc]
mov edi, dword [ebp - 0x4c4]
cmp byte [ebp - 0x4a4], 0
mov ecx, edi
je 0x405d35
test esi, esi
jle 0x405d35
lea edi, [ebp - 0xb4]
mov edx, esi
sub edi, dword [ebp - 0x4c4]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x405d21
mov edi, dword [ebp - 0x4c4]
mov eax, dword [ebp - 0x4c8]
push esi
push eax
lea eax, [ebp - 0xb4]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov esi, dword [ebp - 0xdc]
xor edx, edx
add edi, esi
mov ecx, dword [ebp - 0x4d4]
mov dword [ebp - 0x4c4], edi
inc ecx
mov edi, dword [ebp - 0x4dc]
add esp, 0xc
mov eax, edi
add dword [ebp - 0x4c8], esi
div esi
mov dword [ebp - 0x4d4], ecx
cmp ecx, eax
jae 0x405d8e
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x4b0], ecx
jmp 0x4055a0
mov eax, dword [ebp - 0x4cc]
mov al, byte [edi + eax - 1]
jmp 0x405da4
mov eax, dword [ebp - 0x4cc]
mov al, byte [eax + edi - 1]
movsx esi, al
lea ecx, [edi - 1]
mov edx, edi
sub edx, esi
cmp ecx, edx
jb 0x405e04
mov eax, dword [ebp - 0x4cc]
movsx eax, byte [ecx + eax]
cmp eax, esi
jne 0x405dd3
mov eax, dword [ebp - 0x4cc]
mov byte [ecx + eax], 0
dec ecx
cmp ecx, edx
jae 0x405db8
mov esi, eax
jmp 0x405e0a
mov esi, dword [ebp - 0x4cc]
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add esp, 0xc
mov edx, 0x6dcdfc
call fcn.00418810
push 0x418a30
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x405e0a
mov esi, dword [ebp - 0x4cc]
mov edi, dword [ebp - 0x518]
mov ecx, esi
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
lea edx, [ecx + 1]
mov dword [edi + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405e30
sub ecx, edx
push ecx
push esi
mov ecx, edi
call fcn.00401af0
push dword [ebp - 0x4e0]
call fcn.00622535
add esp, 4
push esi
call fcn.00622535
mov ecx, dword [ebp - 0x18]
add esp, 4
cmp ecx, 0xf
jbe 0x405e8f
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405e85
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405e85
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00622081
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret