Function at 0x413328
Capabilities:
Encode data using xor

Disassembly:
push 0xbc
mov eax, 0x4332cf
call fcn.0041bc0a
cmp byte [0x43d36d], 0
lea edi, [ebp - 0x98]
push 5
pop ecx
mov esi, str.QZS_PdUUUSKL_31m2__G
rep movsd dword es:[edi], dword [esi]
push 0x34
pop ebx
movsw word es:[edi], word [esi]
je 0x41336d
xor ecx, ecx
xor edx, edx
mov eax, ecx
div ebx
add dl, 0x32
xor byte [ebp + ecx - 0x98], dl
inc ecx
cmp ecx, 0x16
jl 0x413357
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004040bd
and dword [ebp - 4], 0
mov edi, dword [0x444f50]
mov esi, edi
mov ebx, dword [0x444f54]
push 0x18
pop ecx
cmp edi, ebx
je 0x4133b4
push ecx
pop edi
lea edx, [ebp - 0x7c]
mov ecx, esi
call fcn.00408c7c
test al, al
jne 0x4133ab
add esi, edi
cmp esi, ebx
jne 0x413397
mov edi, dword [0x444f50]
push 0x18
pop ecx
cmp esi, ebx
je 0x4133d8
sub esi, edi
mov eax, esi
cdq
idiv ecx
lea ecx, [ebp - 0x5c]
imul eax, eax, 0xc
add eax, dword [0x444f5c]
push eax
call fcn.004059e4
mov eax, dword [ebp - 0x5c]
xor ebx, ebx
jmp 0x4133e5
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov eax, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004040f6
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x413433
mov edi, dword [ebp - 0x58]
cmp esi, edi
je 0x413413
mov ecx, esi
call fcn.00402636
push 0x18
pop eax
add esi, eax
cmp esi, edi
jne 0x413400
mov esi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x54]
sub eax, esi
push 0x18
pop ecx
cdq
idiv ecx
imul eax, eax, 0x18
push eax
push esi
call fcn.004026d2
pop ecx
pop ecx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.00402636
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x20]
call fcn.00406e82
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x60], eax
cmp ebx, eax
je 0x413582
push ebx
lea ecx, [ebp - 0x38]
call fcn.004040f6
mov byte [ebp - 4], 6
cmp dword [ebp - 0x28], 0x13
jne 0x413568
push 0x43d34c
lea ecx, [ebp - 0x98]
call fcn.004040bd
push str.____n_
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 7
call fcn.004040bd
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x38]
call fcn.00406e22
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.00402636
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 6
call fcn.00402636
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0xb0]
call fcn.00406e82
push 9
pop ecx
mov byte [ebp - 4], 9
lea edi, [ebp - 0xa4]
mov eax, dword [eax]
mov esi, 0x43d3a8
rep movsd dword es:[edi], dword [esi]
push 0x34
mov dword [ebp - 0x64], eax
xor ecx, ecx
movsb byte es:[edi], byte [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x32
xor byte [ebp + ecx - 0xa4], dl
inc ecx
cmp ecx, 0x25
jl 0x4134f2
push dword [ebp - 0x64]
lea edx, [ebp - 0xa4]
lea ecx, [ebp - 0xc8]
call fcn.00404e71
pop ecx
push 1
push 0x43bf94
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.004042c1
push eax
lea ecx, [ebp - 0x7c]
call fcn.00404084
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
push eax
mov ecx, 0x443930
call fcn.00404245
lea ecx, [ebp - 0x7c]
call fcn.00402636
lea ecx, [ebp - 0xc8]
call fcn.00402636
lea ecx, [ebp - 0xb0]
call fcn.004041b7
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.00402636
push 0x18
pop eax
add ebx, eax
cmp ebx, dword [ebp - 0x60]
jne 0x41345f
lea ecx, [ebp - 0x20]
call fcn.004041b7
lea ecx, [ebp - 0x50]
call fcn.00402636
call fcn.0041bbb9
ret