Function at 0x1400161a0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3a8
mov qword [rsp + 0x20], r9
mov r15, qword [rdx]
test r15, r15
je 0x1400164c7
mov rax, r15
shr rax, 0x3d
jne 0x1400164c7
mov r13, r8
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x38], rdx
movsx rdx, word [rdx + 0x18]
mov r8, r15
shr r8, 0x20
mov rax, r15
shl rax, 0x20
lea ecx, [rdx - 0x20]
mov qword [rsp + 0x50], r8
test r8, r8
mov qword [rsp + 0x58], rdx
cmovne ecx, edx
cmovne rax, r15
mov rdx, rax
shr rdx, 0x30
mov r8, rax
shl r8, 0x10
lea r9d, [rcx - 0x10]
test rdx, rdx
cmovne r9d, ecx
cmovne r8, rax
mov rax, r8
shr rax, 0x38
mov rcx, r8
shl rcx, 8
lea edx, [r9 - 8]
test rax, rax
cmovne edx, r9d
cmovne rcx, r8
mov rax, rcx
shr rax, 0x3c
mov r8, rcx
shl r8, 4
lea r9d, [rdx - 4]
test rax, rax
cmovne r9d, edx
cmovne r8, rcx
mov rax, r8
shr rax, 0x3e
lea edx, [r9 - 2]
test rax, rax
cmovne edx, r9d
lea rax, [r8*4]
cmovne rax, r8
xor ecx, ecx
test rax, rax
setns cl
sub edx, ecx
mov ecx, 0xffffffa0
sub ecx, edx
movsx ecx, cx
lea ecx, [rcx + rcx*4]
shl ecx, 4
add ecx, 0x153b0
movsxd rcx, ecx
imul r8, rcx, 0x7b4dc993
mov rcx, r8
shr rcx, 0x3f
sar r8, 0x2a
add r8d, ecx
cmp r8d, 0x51
jae 0x1400164c7
test rax, rax
setns cl
shl rax, cl
mov esi, r8d
shl rsi, 4
lea r14, [0x14012cbe0]
mov r8, qword [rsi + r14]
mov rcx, rax
shr rcx, 0x20
mov eax, eax
mov r9d, r8d
shr r8, 0x20
mov r10, r8
imul r10, rcx
imul r8, rax
imul rcx, r9
imul r9, rax
shr r9, 0x20
mov r11d, ecx
add r11, r9
mov eax, r8d
add rax, r11
sub rax, 0xffffffff80000000
shr rcx, 0x20
add rcx, r10
shr r8, 0x20
add r8, rcx
shr rax, 0x20
add dx, word [rsi + r14 + 8]
add rax, r8
mov ecx, 0xffffffc0
sub ecx, edx
movzx r10d, cx
mov r9d, r10d
and r9d, 0x3f
mov rdx, rax
mov ecx, r9d
shr rdx, cl
mov r12d, 1
shl r12, cl
lea rdi, [r12 - 1]
mov rbx, rax
and rbx, rdi
mov qword [rsp + 0x40], r13
je 0x140016668
movzx ebp, word [rsi + r14 + 0xa]
cmp edx, 0x2710
jae 0x140016396
cmp edx, 0x64
movzx r11d, word [rsp + 0x410]
jae 0x1400163c4
xor ecx, ecx
cmp edx, 0xa
setae cl
lea esi, [rcx + rcx*8]
inc esi
jmp 0x140016421
cmp edx, 0xf4240
movzx r11d, word [rsp + 0x410]
jae 0x1400163e1
cmp edx, 0x186a0
setb cl
mov r8d, 0x2710
mov esi, 0x186a0
cmovb esi, r8d
xor cl, 5
jmp 0x140016421
cmp edx, 0x3e8
setb cl
mov r8d, 0x64
mov esi, 0x3e8
cmovb esi, r8d
xor cl, 3
jmp 0x140016421
cmp edx, 0x5f5e100
jae 0x140016406
cmp edx, 0x989680
setb cl
mov r8d, 0xf4240
mov esi, 0x989680
cmovb esi, r8d
xor cl, 7
jmp 0x140016421
cmp edx, 0x3b9aca00
setb cl
mov r8d, 0x5f5e100
mov esi, 0x3b9aca00
cmovb esi, r8d
xor cl, 9
movzx ecx, cl
mov r8d, ecx
sub r8d, ebp
mov qword [rsp + 0x48], r8
inc r8d
cmp r8w, r11w
jle 0x1400164c9
movsx rax, r8w
mov dword [rsp + 0x34], r8d
sub r8d, r11d
movsx r11, r11w
sub rax, r11
mov r11, qword [rsp + 0x20]
cmp rax, r11
movsx r14, r8w
cmovae r14, r11
neg rcx
mov r8, r11
neg r8
mov ebp, 1
mov r11d, 0xcccccccd
nop word cs:[rax + rax]
lea r13, [r8 + rbp]
mov eax, edx
xor edx, edx
div esi
cmp r13, 1
je 0x1400164c7
add al, 0x30
mov r13, qword [rsp + 0x40]
mov byte [r13 + rbp - 1], al
cmp r14, rbp
je 0x140016566
lea rax, [rcx + rbp]
cmp rax, 1
je 0x1400165ce
mov eax, esi
imul rax, r11
shr rax, 0x23
inc rbp
cmp esi, 0xa
mov esi, eax
jae 0x140016480
ud2
movabs rcx, 0xcccccccccccccccd
mul rcx
mov eax, esi
mov ecx, r9d
shl rax, cl
mov rcx, rax
sub rcx, r12
jbe 0x140016668
cmp rcx, r12
jbe 0x140016668
shr rdx, 3
mov rcx, rax
sub rcx, rdx
cmp rcx, rdx
jbe 0x140016523
mov r11d, r8d
mov r8, rax
sub r8, rdx
sub r8, rdx
mov r10d, 2
mov ecx, r9d
shl r10, cl
cmp r8, r10
jae 0x1400174ca
sub rdx, r12
jbe 0x140016668
sub rax, rdx
cmp rax, rdx
ja 0x140016668
mov rax, qword [rsp + 0x48]
lea ecx, [rax + 2]
movzx eax, word [rsp + 0x410]
cmp cx, ax
mov rax, qword [rsp + 0x28]
jle 0x14001751c
mov byte [r13], 0x31
mov r14d, 1
jmp 0x140017535
mov eax, edx
mov ecx, r9d
shl rax, cl
mov edx, esi
shl rdx, cl
mov rcx, rdx
sub rcx, r12
jbe 0x140016668
cmp rcx, r12
jbe 0x140016668
add rax, rbx
mov rcx, rdx
sub rcx, rax
cmp rcx, rax
jbe 0x1400165b4
mov r8, rdx
sub r8, rax
sub r8, rax
mov r10d, 2
mov ecx, r9d
shl r10, cl
cmp r8, r10
jae 0x1400174d7
sub rax, r12
jbe 0x140016668
sub rdx, rax
cmp rdx, rax
ja 0x140016668
jmp 0x1400174e2
dec r10d
and r10d, 0x3f
mov edx, 1
nop word [rax + rax]
mov rax, rdx
mov ecx, r10d
shr rdx, cl
test rdx, rdx
jne 0x140016668
cmp rbp, qword [rsp + 0x20]
jae 0x1400164c7
add rbx, rbx
lea r8, [rbx + rbx*4]
mov rbx, r8
and rbx, rdi
lea rcx, [rax + rax]
lea rdx, [rcx + rcx*4]
mov ecx, r9d
shr r8, cl
add r8b, 0x30
mov byte [r13 + rbp], r8b
inc rbp
cmp r14, rbp
jne 0x1400165e0
mov rcx, r12
sub rcx, rdx
jbe 0x140016668
cmp rcx, rdx
jbe 0x140016668
mov rcx, r12
sub rcx, rbx
cmp rcx, rbx
jbe 0x140016657
mov r8, r12
sub r8, rbx
sub r8, rbx
shl rax, 2
lea rax, [rax + rax*4]
cmp r8, rax
jae 0x1400174d7
sub rbx, rdx
jbe 0x140016668
sub r12, rbx
cmp r12, rbx
jbe 0x1400174e2
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400164c7
mov rcx, qword [rcx + 0x10]
test rcx, rcx
movzx r14d, word [rsp + 0x410]
je 0x1400164c7
add rcx, r15
mov r8, qword [rsp + 0x58]
jb 0x1400164c7
cmp r15, rax
jb 0x1400164c7
movzx edx, r8w
mov rax, r15
dec rax
je 0x1400166bd
bsr rax, rax
xor rax, 0x3f
jmp 0x1400166c2
mov eax, 0x40
mov rcx, r8
sub rcx, rax
imul rax, rcx, 0x4d104d42
movabs r12, 0x1344135080
add r12, rax
shr r12, 0x20
xor eax, eax
xor ecx, ecx
mov r9, qword [rsp + 0x50]
test r9, r9
cmove r9d, eax
setne cl
inc rcx
mov qword [rsp + 0x100], rcx
mov dword [rsp + 0x60], r15d
mov dword [rsp + 0x64], r9d
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xc8], xmm0
movups xmmword [rsp + 0xd8], xmm0
movups xmmword [rsp + 0xe8], xmm0
mov qword [rsp + 0xf8], 0
movups xmmword [rsp + 0x198], xmm0
movups xmmword [rsp + 0x18c], xmm0
movups xmmword [rsp + 0x17c], xmm0
movups xmmword [rsp + 0x16c], xmm0
movups xmmword [rsp + 0x15c], xmm0
movups xmmword [rsp + 0x14c], xmm0
movups xmmword [rsp + 0x13c], xmm0
movups xmmword [rsp + 0x12c], xmm0
movups xmmword [rsp + 0x11c], xmm0
movups xmmword [rsp + 0x10c], xmm0
mov qword [rsp + 0x1a8], 1
mov dword [rsp + 0x108], 1
test r8w, r8w
js 0x1400167cd
lea rcx, [rsp + 0x60]
jmp 0x1400167db
neg edx
movsx rdx, dx
lea rcx, [rsp + 0x108]
call fcn.14001bdb0
mov eax, r12d
neg eax
test r12w, r12w
cmovns rax, r12
lea rbx, [rsp + 0x108]
lea rcx, [rsp + 0x60]
cmovns rcx, rbx
movzx edx, ax
call fcn.140019a20
mov r13, qword [rsp + 0x1a8]
lea rcx, [rsp + 0x1b0]
mov r8d, 0xa0
mov rdx, rbx
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x250], r13
movabs r8, 0x44b82fa09b5a53
mov r9, r13
mov rcx, qword [rsp + 0x20]
cmp r9, 0x28
ja 0x1400164c7
nop dword [rax + rax]
test r9, r9
je 0x140016895
shl r9, 2
xor r10d, r10d
nop dword [rax]
mov eax, dword [rsp + r9 + 0x1ac]
shl r10, 0x20
or r10, rax
mov rax, r10
shr rax, 9
mul r8
shr rdx, 0xb
imul rax, rdx, 0x3b9aca00
sub r10, rax
mov dword [rsp + r9 + 0x1ac], edx
add r9, 0xfffffffffffffffc
jne 0x140016860
add rcx, 0xfffffffffffffff7
cmp rcx, 9
jbe 0x1400168b2
mov r9, qword [rsp + 0x250]
cmp r9, 0x28
jbe 0x140016850
jmp 0x1400164c7
lea rax, [0x14012d12c]
mov r8d, dword [rax + rcx*4]
test r8, r8
je 0x1400164c7
mov r9, qword [rsp + 0x250]
cmp r9, 0x28
ja 0x1400164c7
test r9, r9
je 0x140016942
shl r9, 2
xor eax, eax
jmp 0x140016909
xor edx, edx
div r8
mov rcx, rax
mov rax, rdx
mov dword [rsp + r9 + 0x1ac], ecx
add r9, 0xfffffffffffffffc
je 0x140016938
mov ecx, dword [rsp + r9 + 0x1ac]
shl rax, 0x20
or rax, rcx
mov rcx, rax
shr rcx, 0x20
jne 0x1400168f0
xor edx, edx
div r8d
mov ecx, eax
mov eax, edx
mov dword [rsp + r9 + 0x1ac], ecx
add r9, 0xfffffffffffffffc
jne 0x140016909
mov rax, qword [rsp + 0x250]
jmp 0x140016944
xor eax, eax
mov r15, qword [rsp + 0x100]
cmp rax, r15
cmovbe rax, r15
cmp rax, 0x29
jae 0x1400164c7
test rax, rax
je 0x1400169f9
cmp rax, 1
jne 0x140016972
xor ecx, ecx
xor edx, edx
jmp 0x1400169b5
mov r8d, eax
and r8d, 0x3e
xor edx, edx
xor ecx, ecx
nop dword [rax]
movzx edx, dl
bt edx, 0
mov edx, dword [rsp + rcx*4 + 0x60]
mov r9d, dword [rsp + rcx*4 + 0x64]
adc dword [rsp + rcx*4 + 0x1b0], edx
adc dword [rsp + rcx*4 + 0x1b4], r9d
lea rcx, [rcx + 2]
setb dl
cmp r8, rcx
jne 0x140016980
test al, 1
jne 0x1400169b5
test dl, dl
jne 0x1400169e1
jmp 0x1400169f9
mov r8d, dword [rsp + rcx*4 + 0x1b0]
mov r9d, dword [rsp + rcx*4 + 0x60]
lea r10d, [r8 + r9]
movzx r11d, dl
add r11d, r10d
setb dl
mov dword [rsp + rcx*4 + 0x1b0], r11d
add r8d, r9d
jb 0x1400169e1
test dl, dl
je 0x1400169f9
cmp rax, 0x28
je 0x1400164c7
mov dword [rsp + rax*4 + 0x1b0], 1
inc rax
mov qword [rsp + 0x250], rax
cmp rax, r13
cmovbe rax, r13
cmp rax, 0x29
jae 0x1400164c7
shl rax, 2
mov ecx, 0xff
nop dword [rax + rax]
test rax, rax
je 0x140016a5e
mov r8d, dword [rsp + rax + 0x104]
xor edx, edx
cmp r8d, dword [rsp + rax + 0x1ac]
setne dl
cmova edx, ecx
add rax, 0xfffffffffffffffc
test dl, dl
je 0x140016a20
cmp dl, 2
jae 0x140016a74
inc r12d
mov al, 1
cmp r12w, r14w
jge 0x140016af1
jmp 0x1400172e1
add rax, rsp
add rax, 0x108
cmp rax, rbx
setne dl
neg dl
cmp dl, 2
jb 0x140016a4a
cmp r15, 0x28
ja 0x1400164c7
test r15, r15
je 0x140016ada
lea rcx, [r15*4]
xor edx, edx
xor eax, eax
nop
mov r8d, dword [rsp + rdx + 0x60]
lea r8, [r8 + r8*4]
lea rax, [rax + r8*2]
mov dword [rsp + rdx + 0x60], eax
shr rax, 0x20
add rdx, 4
cmp rcx, rdx
jne 0x140016a90
test rax, rax
je 0x140016ac5
cmp r15, 0x28
je 0x1400164c7
mov dword [rsp + r15*4 + 0x60], eax
inc r15
mov qword [rsp + 0x100], r15
mov al, 1
cmp r12w, r14w
jge 0x140016af1
jmp 0x1400172e1
xor r15d, r15d
mov qword [rsp + 0x100], r15
mov al, 1
cmp r12w, r14w
jl 0x1400172e1
movsx rcx, r12w
mov edx, r12d
sub edx, r14d
movsx r8, r14w
sub rcx, r8
mov r8, qword [rsp + 0x20]
cmp rcx, r8
movsx rbp, dx
cmovae rbp, r8
test rbp, rbp
je 0x1400172e1
lea rcx, [rsp + 0x258]
lea rdx, [rsp + 0x108]
mov r8d, 0xa0
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x2f8], r13
test r13, r13
je 0x1400164c7
mov rax, r13
nop word [rax + rax]
cmp r13, 0x29
jae 0x1400164c7
dec rax
jne 0x140016b50
lea rax, [r13 - 1]
cmp rax, 0x28
jae 0x1400164c7
mov eax, dword [rsp + r13*4 + 0x254]
mov r9, r13
test eax, eax
jns 0x140016b97
cmp r13, 0x28
je 0x1400164c7
mov ecx, eax
shr ecx, 0x1f
mov dword [rsp + r13*4 + 0x258], ecx
lea r9, [r13 + 1]
cmp r13, 1
je 0x140016bc1
mov rcx, r13
mov edx, dword [rsp + rcx*4 + 0x250]
shld eax, edx, 1
mov dword [rsp + rcx*4 + 0x254], eax
lea r8, [rcx - 1]
mov eax, edx
mov rcx, r8
cmp r8, 1
ja 0x140016ba0
shl dword [rsp + 0x258], 1
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x2f8], r9
lea rcx, [rsp + 0x300]
lea rdx, [rsp + 0x108]
mov r8d, 0xa0
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x3a0], r13
mov rax, r13
nop dword [rax + rax]
cmp rax, 0x29
jae 0x1400164c7
dec rax
jne 0x140016c00
mov eax, dword [rsp + r13*4 + 0x2fc]
mov r10, r13
cmp eax, 0x3fffffff
jbe 0x140016c3c
cmp r13, 0x28
je 0x1400164c7
mov ecx, eax
shr ecx, 0x1e
mov dword [rsp + r13*4 + 0x300], ecx
lea r10, [r13 + 1]
cmp r13, 1
je 0x140016c7e
lea rcx, [r13 - 2]
mov rdx, r13
nop dword [rax]
cmp rcx, 0x28
jae 0x1400164c7
mov r8d, dword [rsp + rdx*4 + 0x2f8]
shld eax, r8d, 2
mov dword [rsp + rdx*4 + 0x2fc], eax
lea r9, [rdx - 1]
mov eax, r8d
mov rdx, r9
cmp r9, 1
ja 0x140016c50
shl dword [rsp + 0x300], 2
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x3a0], r10
lea rcx, [rsp + 0x1b0]
lea rdx, [rsp + 0x108]
mov r8d, 0xa0
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x250], r13
mov rax, r13
nop dword [rax]
cmp rax, 0x29
jae 0x1400164c7
dec rax
jne 0x140016cc0
mov ecx, dword [rsp + r13*4 + 0x1ac]
mov rsi, r13
cmp ecx, 0x1fffffff
jbe 0x140016cfd
cmp r13, 0x28
je 0x1400164c7
mov eax, ecx
shr eax, 0x1d
mov dword [rsp + r13*4 + 0x1b0], eax
lea rsi, [r13 + 1]
cmp r13, 1
je 0x140016d3f
lea rdx, [r13 - 2]
mov r8, r13
nop word [rax + rax]
cmp rdx, 0x28
jae 0x1400164c7
mov r9d, dword [rsp + r8*4 + 0x1a8]
shld ecx, r9d, 3
mov dword [rsp + r8*4 + 0x1ac], ecx
lea r10, [r8 - 1]
mov ecx, r9d
mov r8, r10
cmp r10, 1
ja 0x140016d10
shl dword [rsp + 0x1b0], 3
mov qword [rsp + 0x250], rsi
xor r8d, r8d
mov edx, 0xff
cmp r15, 0x29
jae 0x1400164c7
mov rcx, r8
inc r8
lea r9, [r15*4]
xor r10d, r10d
nop word cs:[rax + rax]
cmp r9, r10
je 0x140017343
cmp dword [rsp + r10 + 0x60], 0
lea r10, [r10 + 4]
je 0x140016d80
cmp r15, rsi
mov qword [rsp + 0x38], rsi
mov r11, rsi
cmova r11, r15
cmp r11, 0x29
jae 0x1400164c7
lea r9, [r11*4]
nop word cs:[rax + rax]
test r9, r9
je 0x140016e06
mov esi, dword [rsp + r9 + 0x1ac]
xor r10d, r10d
cmp esi, dword [rsp + r9 + 0x5c]
setne r10b
cmova r10d, edx
add r9, 0xfffffffffffffffc
test r10b, r10b
je 0x140016dc0
cmp r10b, 1
ja 0x140016e28
test r11, r11
je 0x140016eb0
cmp r11, 1
jne 0x140016e33
mov rax, rbx
mov r9b, 1
xor r10d, r10d
jmp 0x140016e7e
add r9, rsp
add r9, 0x1b0
lea rax, [rsp + 0x1b0]
cmp r9, rax
setne r10b
neg r10b
cmp r10b, 1
jbe 0x140016dec
xor r9d, r9d
mov r11, r15
jmp 0x140016ebb
mov esi, r11d
and esi, 0x3e
mov r9b, 1
xor r10d, r10d
nop
mov edi, dword [rsp + r10*4 + 0x1b0]
not edi
movzx r9d, r9b
bt r9d, 0
adc dword [rsp + r10*4 + 0x60], edi
mov r9d, dword [rsp + r10*4 + 0x1b4]
not r9d
adc dword [rsp + r10*4 + 0x64], r9d
lea r10, [r10 + 2]
setb r9b
cmp rsi, r10
jne 0x140016e40
test r11b, 1
je 0x140016ea7
mov rax, rbx
mov esi, dword [rsp + r10*4 + 0x1b0]
not esi
mov edi, dword [rsp + r10*4 + 0x60]
lea ebx, [rsi + rdi]
movzx r15d, r9b
add r15d, ebx
setb r9b
mov dword [rsp + r10*4 + 0x60], r15d
add esi, edi
mov rbx, rax
jb 0x140016eb0
test r9b, r9b
je 0x1400164c7
mov qword [rsp + 0x100], r11
mov r9b, 8
mov r10, qword [rsp + 0x50]
cmp r11, r10
cmova r10, r11
cmp r10, 0x29
jae 0x1400164c7
mov rax, rbx
lea rsi, [r10*4]
nop dword [rax]
test rsi, rsi
je 0x140016f1e
mov ebx, dword [rsp + rsi + 0x2fc]
xor edi, edi
cmp ebx, dword [rsp + rsi + 0x5c]
setne dil
cmova edi, edx
add rsi, 0xfffffffffffffffc
test dil, dil
je 0x140016ee0
cmp dil, 1
ja 0x140016f40
test r10, r10
je 0x140016fd0
cmp r10, 1
jne 0x140016f48
mov r11b, 1
xor esi, esi
jmp 0x140016f99
add rsi, rsp
add rsi, 0x300
lea rdi, [rsp + 0x300]
cmp rsi, rdi
setne dil
neg dil
cmp dil, 1
jbe 0x140016f08
mov r10, r11
jmp 0x140016fdc
mov edi, r10d
and edi, 0x3e
mov r11b, 1
xor esi, esi
nop word cs:[rax + rax]
mov ebx, dword [rsp + rsi*4 + 0x300]
not ebx
movzx r11d, r11b
bt r11d, 0
adc dword [rsp + rsi*4 + 0x60], ebx
mov r11d, dword [rsp + rsi*4 + 0x304]
not r11d
adc dword [rsp + rsi*4 + 0x64], r11d
lea rsi, [rsi + 2]
setb r11b
cmp rdi, rsi
jne 0x140016f60
test r10b, 1
je 0x140016fc7
mov edi, dword [rsp + rsi*4 + 0x300]
not edi
mov ebx, dword [rsp + rsi*4 + 0x60]
lea r15d, [rdi + rbx]
movzx r14d, r11b
add r14d, r15d
setb r11b
mov dword [rsp + rsi*4 + 0x60], r14d
add edi, ebx
movzx r14d, word [rsp + 0x410]
jb 0x140016fd0
test r11b, r11b
je 0x1400164c7
mov qword [rsp + 0x100], r10
or r9b, 4
mov r11, qword [rsp + 0x58]
cmp r10, r11
cmova r11, r10
cmp r11, 0x29
jae 0x1400164c7
lea rsi, [r11*4]
nop word [rax + rax]
test rsi, rsi
je 0x140017044
mov ebx, dword [rsp + rsi + 0x254]
xor edi, edi
cmp ebx, dword [rsp + rsi + 0x5c]
setne dil
cmova edi, edx
add rsi, 0xfffffffffffffffc
test dil, dil
je 0x140017000
cmp dil, 1
ja 0x140017066
test r11, r11
mov rbx, rax
je 0x140017100
cmp r11, 1
jne 0x140017071
mov r10b, 1
xor esi, esi
jmp 0x1400170c6
add rsi, rsp
add rsi, 0x258
lea rdi, [rsp + 0x258]
cmp rsi, rdi
setne dil
neg dil
cmp dil, 1
jbe 0x140017028
mov r11, r10
mov rbx, rax
jmp 0x14001710c
mov edi, r11d
and edi, 0x3e
mov r10b, 1
xor esi, esi
nop dword [rax]
mov ebx, dword [rsp + rsi*4 + 0x258]
not ebx
movzx r10d, r10b
bt r10d, 0
adc dword [rsp + rsi*4 + 0x60], ebx
mov r10d, dword [rsp + rsi*4 + 0x25c]
not r10d
adc dword [rsp + rsi*4 + 0x64], r10d
lea rsi, [rsi + 2]
setb r10b
cmp rdi, rsi
jne 0x140017080
test r11b, 1
jne 0x1400170c6
test r10b, r10b
mov rbx, rax
jne 0x140017100
jmp 0x1400164c7
mov edi, dword [rsp + rsi*4 + 0x258]
not edi
mov ebx, dword [rsp + rsi*4 + 0x60]
lea r14d, [rdi + rbx]
movzx r15d, r10b
add r15d, r14d
setb r10b
mov dword [rsp + rsi*4 + 0x60], r15d
add edi, ebx
movzx r14d, word [rsp + 0x410]
mov rbx, rax
jb 0x140017100
test r10b, r10b
je 0x1400164c7
mov qword [rsp + 0x100], r11
add r9b, 2
cmp r11, r13
mov r15, r13
cmova r15, r11
cmp r15, 0x29
jae 0x1400164c7
lea r10, [r15*4]
nop dword [rax + rax]
test r10, r10
je 0x140017179
mov edi, dword [rsp + r10 + 0x104]
xor esi, esi
cmp edi, dword [rsp + r10 + 0x5c]
setne sil
cmova esi, edx
add r10, 0xfffffffffffffffc
test sil, sil
je 0x140017130
cmp sil, 1
ja 0x14001719b
test r15, r15
mov rsi, qword [rsp + 0x38]
je 0x140017240
cmp r15, 1
jne 0x1400171a8
mov r10b, 1
xor r11d, r11d
jmp 0x140017200
add r10, rsp
add r10, 0x108
lea rsi, [rsp + 0x108]
cmp r10, rsi
setne sil
neg sil
cmp sil, 1
jbe 0x14001715a
mov r15, r11
mov rsi, qword [rsp + 0x38]
jmp 0x14001724b
mov esi, r15d
and esi, 0x3e
mov r10b, 1
xor r11d, r11d
nop word cs:[rax + rax]
mov edi, dword [rsp + r11*4 + 0x108]
not edi
movzx r10d, r10b
bt r10d, 0
adc dword [rsp + r11*4 + 0x60], edi
mov r10d, dword [rsp + r11*4 + 0x10c]
not r10d
adc dword [rsp + r11*4 + 0x64], r10d
lea r11, [r11 + 2]
setb r10b
cmp rsi, r11
jne 0x1400171c0
test r15b, 1
mov rsi, qword [rsp + 0x38]
je 0x140017237
mov esi, dword [rsp + r11*4 + 0x108]
not esi
mov edi, dword [rsp + r11*4 + 0x60]
lea ebx, [rsi + rdi]
movzx r14d, r10b
add r14d, ebx
setb r10b
mov dword [rsp + r11*4 + 0x60], r14d
add esi, edi
movzx r14d, word [rsp + 0x410]
mov rbx, rax
mov rsi, qword [rsp + 0x38]
jb 0x140017240
test r10b, r10b
je 0x1400164c7
mov qword [rsp + 0x100], r15
inc r9b
cmp rcx, qword [rsp + 0x20]
je 0x1400164c7
add r9b, 0x30
mov r10, qword [rsp + 0x40]
mov byte [r10 + rcx], r9b
cmp r15, 0x28
ja 0x1400164c7
test r15, r15
je 0x1400172c9
lea r9, [r15*4]
xor r10d, r10d
xor ecx, ecx
nop
mov r11d, dword [rsp + r10 + 0x60]
lea r11, [r11 + r11*4]
lea rcx, [rcx + r11*2]
mov dword [rsp + r10 + 0x60], ecx
shr rcx, 0x20
add r10, 4
cmp r9, r10
jne 0x140017280
test rcx, rcx
je 0x1400172b6
cmp r15, 0x28
je 0x1400164c7
mov dword [rsp + r15*4 + 0x60], ecx
inc r15
mov qword [rsp + 0x100], r15
cmp r8, rbp
jne 0x140016d57
jmp 0x1400172dd
xor r15d, r15d
mov qword [rsp + 0x100], r15
cmp r8, rbp
jne 0x140016d57
xor eax, eax
jmp 0x1400172e3
xor ebp, ebp
cmp r13, 0x28
ja 0x1400164c7
test r13, r13
je 0x14001736e
lea rdx, [r13*4]
xor r8d, r8d
xor ecx, ecx
nop
mov r9d, dword [rsp + r8 + 0x108]
lea r9, [r9 + r9*4]
add r9, rcx
mov rcx, r9
shr rcx, 0x20
mov dword [rsp + r8 + 0x108], r9d
add r8, 4
cmp rdx, r8
jne 0x140017300
test rcx, rcx
je 0x140017371
cmp r13, 0x28
je 0x1400164c7
mov dword [rsp + r13*4 + 0x108], ecx
inc r13
jmp 0x140017371
cmp rbp, qword [rsp + 0x20]
ja 0x1400164c7
mov r8, rbp
sub r8, rcx
mov rsi, qword [rsp + 0x40]
je 0x1400174a5
add rcx, rsi
mov dl, 0x30
call sub.msvcrt.dll_memset
jmp 0x1400174a5
xor r13d, r13d
mov qword [rsp + 0x1a8], r13
cmp r15, r13
cmova r13, r15
cmp r13, 0x29
jae 0x1400164c7
shl r13, 2
mov edx, 0xff
nop word cs:[rax + rax]
test r13, r13
je 0x14001741d
mov r8d, dword [rsp + r13 + 0x104]
xor ecx, ecx
cmp r8d, dword [rsp + r13 + 0x5c]
setne cl
cmova ecx, edx
add r13, 0xfffffffffffffffc
test cl, cl
je 0x1400173a0
test cl, cl
je 0x140017434
movzx eax, cl
cmp eax, 1
mov rsi, qword [rsp + 0x40]
jne 0x14001749a
cmp rbp, qword [rsp + 0x20]
ja 0x1400164c7
mov r8, 0xffffffffffffffff
mov rax, rbp
nop dword [rax]
test rax, rax
je 0x140017441
mov rcx, rax
dec rax
inc r8
cmp byte [rsi + rcx - 1], 0x39
je 0x1400173f0
inc byte [rsi + rax]
cmp rcx, rbp
jae 0x14001749a
add rcx, rsi
mov dl, 0x30
call sub.msvcrt.dll_memset
jmp 0x14001749a
lea rcx, [rsp + r13]
add rcx, 0x108
cmp rcx, rbx
setne cl
neg cl
test cl, cl
jne 0x1400173c6
test al, al
mov rsi, qword [rsp + 0x40]
je 0x140017462
xor ebp, ebp
jmp 0x1400174a5
test rbp, rbp
je 0x14001747d
mov byte [rsi], 0x31
mov bl, 0x30
cmp rbp, 1
je 0x14001747f
lea rcx, [rsi + 1]
lea r8, [rbp - 1]
mov dl, 0x30
call sub.msvcrt.dll_memset
jmp 0x14001747f
lea rax, [rbp - 1]
cmp rax, qword [rsp + 0x20]
jae 0x1400164c7
test byte [rsi + rax], 1
jne 0x1400173d7
jmp 0x14001749a
mov bl, 0x31
lea eax, [r12 + 1]
cmp r12w, r14w
jl 0x140017497
cmp rbp, qword [rsp + 0x20]
jae 0x140017497
mov byte [rsi + rbp], bl
inc rbp
mov r12d, eax
cmp rbp, qword [rsp + 0x20]
ja 0x1400164c7
mov rax, qword [rsp + 0x28]
mov qword [rax], rsi
mov qword [rax + 8], rbp
mov word [rax + 0x10], r12w
add rsp, 0x3a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
mov rax, qword [rsp + 0x28]
mov ecx, r11d
jmp 0x140017535
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x34]
jmp 0x140017535
mov rcx, r13
mov rdx, r14
call fcn.1400199b0
test al, 1
je 0x140017521
mov rax, qword [rsp + 0x48]
lea ecx, [rax + 2]
movzx eax, word [rsp + 0x410]
cmp cx, ax
mov rax, qword [rsp + 0x28]
jle 0x14001752a
cmp r14, qword [rsp + 0x20]
jae 0x14001752a
mov byte [r13 + r14], dl
inc r14
jmp 0x14001752a
xor r14d, r14d
jmp 0x140017535
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x34]
cmp r14, qword [rsp + 0x20]
ja 0x1400164c7
mov qword [rax], r13
mov qword [rax + 8], r14
mov word [rax + 0x10], cx
jmp 0x1400174b6