Function at 0x14001e834
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
xor r12d, r12d
xor eax, eax
mov qword [rsp + 0x4a], rax
mov ebx, r12d
mov dword [rsp + 0x52], eax
mov rsi, rcx
mov word [rsp + 0x56], ax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x58], rax
mov edi, r12d
mov qword [rbp - 0x68], r12
mov word [rsp + 0x48], r12w
mov byte [rbp + 0x60], r12b
mov qword [rbp - 0x38], rbx
mov qword [rsp + 0x38], r12
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x18], r12
mov byte [rbp + 0x58], r12b
mov dword [rbp + 0x68], r12d
mov dword [rsp + 0x7c], r12d
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x78], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x6c], r12d
mov dword [rsp + 0x68], r12d
test rcx, rcx
je 0x14001f522
cmp dword [rcx], 0xbee0bee0
jne 0x14001f522
cmp qword [rcx + 0x38], r12
je 0x14001f522
mov rax, qword [rcx + 0x10]
lea r13d, [r12 + 1]
mov dword [rax + 0xb0], 0x6752664f
mov rax, qword [rcx + 0x10]
lea rcx, [rbp - 0x30]
mov dword [rax + 0xb4], r13d
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rsi + 0x10]
lea edx, [r12 + 0x7f]
mov eax, dword [rbp - 0x30]
mov dword [rcx + 0x200], eax
mov rcx, qword [rsi + 0x10]
mov eax, dword [rbp - 0x2c]
mov dword [rcx + 0x204], eax
mov eax, r12d
mov r8, qword [rsi + 0x10]
mov rcx, r8
xor eax, dword [rcx]
lea rcx, [rcx + 4]
sub rdx, r13
jne 0x14001e93c
cmp eax, 0xffffffff
lea rdx, [rsp + 0x58]
mov ecx, 0xfffffffe
cmove eax, ecx
test eax, eax
cmove eax, r13d
mov dword [r8 + 0x1fc], eax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsi + 0x38]
mov qword [rax], rdx
lea rdx, [rsp + 0x58]
mov qword [rax + 8], rcx
cmp qword [rcx], rdx
je 0x14001e985
mov ecx, 3
int 0x29
mov qword [rcx], rax
mov r14, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x58], r14
cmp r14, rax
je 0x14001f4bd
test r14, r14
je 0x14001f4d8
mov r12, qword [r14 + 0x28]
mov qword [rbp - 0x50], r12
test r12, r12
je 0x14001f4d8
mov rax, qword [rsi + 0x10]
mov ecx, dword [rax + 0x14]
sub ecx, r13d
shl ecx, 0xc
add ecx, dword [rax + 0x18]
movzx eax, word [r12 + 0x48]
cmp ecx, 2
sbb ecx, ecx
and ecx, 8
lea edi, [rcx + 0x57]
add edi, eax
lea eax, [rcx + 7]
not eax
and edi, eax
mov rax, qword [r14 + 0x38]
test rax, rax
je 0x14001e9f9
mov rbx, qword [rax + 0x78]
mov qword [rbp - 0x38], rbx
lea rax, [rbp - 0x68]
mov r8, rbx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, edi
mov rcx, rsi
call fcn.14001f968
mov ebx, eax
test eax, eax
jne 0x14001f4e4
mov r13, qword [rbp - 0x68]
neg edi
mov rax, qword [rsp + 0x38]
mov rdx, r12
mov qword [r14 + 0x78], rax
mov qword [r14 + 0x88], r13
mov dword [r13], edi
lea r15, [r13 + 4]
movzx eax, word [r12 + 0x48]
mov rcx, r15
add eax, 0x4c
mov qword [rbp - 0x40], r15
movsxd r8, eax
call sub.msvcrt.dll_memcpy
mov rax, qword [rsi + 0x10]
mov ecx, dword [rax + 0x14]
dec ecx
shl ecx, 0xc
add ecx, dword [rax + 0x18]
cmp ecx, 4
jb 0x14001ea8e
movzx eax, word [r14 + 0x22]
or word [r15 + 2], ax
movzx eax, word [r14 + 0x24]
shl eax, 0x14
or eax, dword [r15 + 0x34]
xor eax, dword [r15 + 0x34]
and eax, 0xf00000
xor dword [r15 + 0x34], eax
or dword [r15 + 0x20], 0xffffffff
xor r11d, r11d
mov dword [r15 + 0x18], r11d
cmp byte [rbp + 0x60], r11b
jne 0x14001eab9
mov rcx, rsi
call fcn.140020f0c
xor r11d, r11d
mov byte [rbp + 0x60], 1
mov ebx, eax
test eax, eax
jne 0x14001f4e4
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x14001eca0
mov rdx, qword [rcx + 0x88]
mov rcx, qword [rcx + 0x78]
call fcn.14001f920
test byte [r15 + 2], 0x20
mov dword [r15 + 0x10], eax
mov rbx, qword [r14 + 0x38]
je 0x14001eb6e
movzx edi, word [r15 + 0x48]
add di, di
mov word [rsp + 0x48], di
mov word [rsp + 0x4a], di
cmp byte [rbp + 0x58], r11b
jne 0x14001eb16
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001eb16
mov rdx, rcx
mov rcx, rsi
call fcn.14001f720
movzx ecx, di
mov edx, 0x10
call qword [sym.imp.msvcrt.dll__aligned_malloc]
xor r11d, r11d
mov qword [rsp + 0x50], rax
mov r12, rax
test rax, rax
je 0x14001f4a2
movzx ecx, word [r15 + 0x48]
movzx edx, di
mov eax, edx
mov byte [rbp + 0x58], r11b
shr eax, 1
cmp eax, ecx
jae 0x14001eb51
mov ecx, edx
shr rcx, 1
mov rdx, r11
test rcx, rcx
je 0x14001eb8a
movzx eax, byte [r15 + rdx + 0x4c]
mov word [r12 + rdx*2], ax
inc rdx
cmp rdx, rcx
jne 0x14001eb59
jmp 0x14001eb8a
movzx eax, word [r15 + 0x48]
mov word [rsp + 0x48], ax
mov word [rsp + 0x4a], ax
lea rax, [r15 + 0x4c]
mov qword [rsp + 0x50], rax
mov byte [rbp + 0x58], 1
mov rdi, qword [rbx + 0x50]
mov eax, 0x6972
cmp word [rdi], ax
je 0x14001ebe0
mov rcx, qword [r14 + 0x78]
mov rdx, r13
call fcn.14001f920
mov r11d, eax
lea rdx, [rsp + 0x48]
mov eax, dword [rbx + 0x58]
mov dword [rdi + rax*8 + 4], r11d
cmp dword [rsi + 0x18], 5
jb 0x14001ebcd
call fcn.140021bc0
mov ecx, eax
mov eax, dword [rbx + 0x58]
mov dword [rdi + rax*8 + 8], ecx
jmp 0x14001ec82
mov eax, dword [rbx + 0x58]
lea rcx, [rax*8 + 4]
add rcx, rdi
jmp 0x14001ec7d
mov r8d, dword [rbx + 0x58]
movabs rax, 0x2864fc7729e8c5f
mul r8
mov ecx, r8d
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 8
imul eax, ecx, 0x1fb
mov ecx, ecx
mov edx, dword [rdi + rcx*4 + 4]
sub r8d, eax
mov rax, qword [rbx + 0x80]
mov r9, qword [rax + rcx*8]
mov r10d, dword [r9 + 0x10]
lea eax, [r10 - 0x1000]
cmp eax, edx
ja 0x14001ec48
lea ecx, [r10 - 0x1000]
add ecx, dword [r9 + 0x14]
cmp ecx, edx
jbe 0x14001ec48
sub edx, r10d
lea edi, [rdx + 0x1000]
add rdi, qword [r9 + 0x18]
jmp 0x14001ec4b
mov rdi, r11
mov rcx, qword [r14 + 0x78]
lea r11, [rdi + r8*8]
mov rdx, r13
mov r12d, r8d
call fcn.14001f920
mov dword [r11 + 8], eax
lea rdx, [rsp + 0x48]
cmp dword [rsi + 0x18], 5
jb 0x14001ec79
call fcn.140021bc0
mov dword [rdi + r12*8 + 0xc], eax
jmp 0x14001ec82
lea rcx, [r11 + 8]
call fcn.14001e788
inc dword [rbx + 0x58]
mov ecx, dword [rbx + 0x58]
mov edx, ecx
mov rax, qword [rbx + 0x28]
mov r12, qword [rbp - 0x50]
cmp dword [rax + 0x14], ecx
mov ecx, 0
cmove edx, ecx
mov dword [rbx + 0x58], edx
mov rcx, qword [r14 + 0x48]
mov rdx, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x18]
call fcn.14001f920
mov dword [r15 + 0x2c], eax
mov edx, dword [r12 + 0x24]
xor r12d, r12d
test edx, edx
je 0x14001f2e1
mov rax, qword [rsi + 0x10]
lea r9, [rsp + 0x38]
mov r8, qword [r14 + 0x78]
mov r13d, r12d
mov dword [rbp - 0x80], r12d
mov ecx, dword [rax + 0x14]
dec ecx
shl ecx, 0xc
add ecx, dword [rax + 0x18]
cmp ecx, 2
mov rcx, rsi
sbb eax, eax
and eax, 8
lea edi, [rax + 0xb]
sub eax, 0xfffffff9
not eax
lea edi, [rdi + rdx*4]
and edi, eax
lea rax, [rbp - 0x60]
mov edx, edi
mov qword [rsp + 0x20], rax
call fcn.14001f968
mov ebx, eax
test eax, eax
jne 0x14001f4e4
mov r11, qword [rbp - 0x60]
mov rcx, qword [rsp + 0x38]
mov rdx, r11
call fcn.14001f920
mov dword [r15 + 0x28], eax
neg edi
mov rax, qword [rbp - 0x50]
xor ecx, ecx
mov dword [r11], edi
mov r12, qword [r14 + 0x68]
cmp dword [rax + 0x24], ecx
jbe 0x14001f2de
mov rax, qword [rsi + 0x10]
lea r9, [rsp + 0x38]
mov r8, qword [r14 + 0x78]
mov ecx, dword [rax + 0x14]
dec ecx
shl ecx, 0xc
add ecx, dword [rax + 0x18]
mov rax, qword [r12 + 0x18]
cmp ecx, 2
sbb edx, edx
and edx, 8
movzx ecx, word [rax + 2]
lea eax, [rdx + 7]
lea edi, [rdx + 0x1f]
not eax
add edi, ecx
mov rcx, rsi
and edi, eax
lea rax, [rbp - 0x18]
mov edx, edi
mov qword [rsp + 0x20], rax
call fcn.14001f968
mov ebx, eax
test eax, eax
jne 0x14001f4e4
mov rbx, qword [rbp - 0x18]
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
call fcn.14001f920
mov rcx, qword [rbp - 0x60]
mov r11d, eax
mov eax, r13d
neg edi
mov dword [rcx + rax*4 + 4], r11d
lea rcx, [rbx + 4]
mov dword [rbx], edi
mov rdx, qword [r12 + 0x18]
mov qword [rbp - 0x28], rcx
movzx eax, word [rdx + 2]
add eax, 0x14
movsxd r8, eax
call sub.msvcrt.dll_memcpy
mov rax, qword [r12 + 0x18]
mov r13d, dword [rax + 4]
mov rax, qword [rsi + 0x10]
mov dword [rsp + 0x70], r13d
mov ecx, dword [rax + 0x14]
dec ecx
shl ecx, 0xc
add ecx, dword [rax + 0x18]
cmp ecx, 4
jb 0x14001f13c
cmp r13d, 0x80000000
jae 0x14001f285
mov eax, 0x3fd8
cmp r13d, eax
jbe 0x14001f13c
mov edx, 0x10
mov ecx, r13d
call qword [sym.imp.msvcrt.dll__aligned_malloc]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rdi, rax
test rax, rax
je 0x14001f4a9
mov qword [rsp + 0x70], rax
lea ecx, [r13 + 0x3fd7]
mov eax, 0xa0643f
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0xd
movzx eax, cx
mov dword [rsp + 0x40], eax
mov rax, qword [r12 + 0x20]
test rax, rax
je 0x14001ef60
mov rax, qword [rax]
mov edi, r8d
mov ebx, r13d
cmp r8w, word [rax + 2]
jae 0x14001ef70
mov r15, qword [rsp + 0x70]
mov r14d, 0x3fd8
mov rax, qword [r12 + 0x20]
mov ecx, edi
mov rdx, qword [rax + rcx*8 + 8]
mov rcx, r15
mov qword [rbp - 0x78], rdx
cmp ebx, r14d
jbe 0x14001ef2b
lea rax, [rdx + 4]
mov edx, 0x7f
lea r8d, [rdx + 1]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
add rcx, r8
movups xmm1, xmmword [rax + 0x70]
add rax, r8
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x14001eeb1
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
mov rax, qword [rax + 0x50]
mov qword [rcx + 0x50], rax
jmp 0x14001ef37
mov r8d, ebx
add rdx, 4
call sub.msvcrt.dll_memcpy
mov rax, qword [r12 + 0x20]
add ebx, 0xffffc028
add r15, r14
inc edi
mov rcx, qword [rax]
movzx eax, word [rcx + 2]
cmp edi, eax
jb 0x14001ee88
mov r14, qword [rbp - 0x58]
mov r15, qword [rbp - 0x40]
jmp 0x14001ef70
mov rdx, qword [r12 + 0x28]
mov r8, r13
mov rcx, rdi
call sub.msvcrt.dll_memcpy
mov rax, qword [rsi + 0x10]
lea r9, [rsp + 0x38]
mov r8, qword [r14 + 0x78]
mov ecx, dword [rax + 0x14]
dec ecx
shl ecx, 0xc
add ecx, dword [rax + 0x18]
cmp ecx, 2
mov rcx, rsi
sbb eax, eax
and eax, 8
lea edi, [rax + 7]
add eax, 0x13
not edi
and edi, eax
lea rax, [rbp - 0x70]
mov edx, edi
mov qword [rsp + 0x20], rax
call fcn.14001f968
mov ebx, eax
test eax, eax
jne 0x14001f4e4
mov r11, qword [rbp - 0x70]
mov eax, 0x6264
mov rcx, qword [rsp + 0x38]
neg edi
mov rdx, r11
mov dword [r11], edi
mov word [r11 + 4], ax
mov eax, dword [rsp + 0x40]
mov word [r11 + 6], ax
call fcn.14001f920
mov rcx, qword [rbp - 0x28]
lea r9, [rsp + 0x38]
mov dword [rcx + 8], eax
mov rax, qword [rsi + 0x10]
mov r8, qword [r14 + 0x78]
mov ecx, dword [rax + 0x14]
dec ecx
shl ecx, 0xc
add ecx, dword [rax + 0x18]
movzx eax, word [r11 + 6]
cmp ecx, 2
sbb ecx, ecx
and ecx, 8
lea edi, [rax*4 + 3]
add ecx, 8
add edi, ecx
lea eax, [rcx - 1]
mov rcx, rsi
not eax
and edi, eax
lea rax, [rbp - 0x48]
mov edx, edi
mov qword [rsp + 0x20], rax
call fcn.14001f968
mov ebx, eax
test eax, eax
jne 0x14001f4e4
mov rax, qword [rbp - 0x48]
neg edi
mov rcx, qword [rsp + 0x38]
mov rdx, rax
mov dword [rax], edi
call fcn.14001f920
mov rcx, qword [rbp - 0x70]
xor ebx, ebx
mov dword [rsp + 0x40], ebx
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
cmp bx, word [rcx + 6]
jae 0x14001f12c
mov ecx, 0x3fd8
lea r9, [rsp + 0x38]
cmp r13d, ecx
mov eax, ecx
cmovb eax, r13d
mov dword [rsp + 0x78], eax
mov rax, qword [rsi + 0x10]
mov ecx, dword [rax + 0x14]
dec ecx
shl ecx, 0xc
add ecx, dword [rax + 0x18]
cmp ecx, 2
mov rcx, rsi
sbb eax, eax
xor r8d, r8d
and eax, 8
lea edi, [rax + 7]
add eax, 0x3fe3
not edi
and edi, eax
lea rax, [rbp - 0x20]
mov edx, edi
mov qword [rsp + 0x20], rax
call fcn.14001f968
mov ebx, eax
test eax, eax
jne 0x14001f4e4
mov r11, qword [rbp - 0x20]
mov rcx, qword [rsp + 0x38]
mov rdx, r11
call fcn.14001f920
mov ecx, dword [rsp + 0x40]
neg edi
mov rdx, qword [rbp - 0x48]
mov dword [rdx + rcx*4 + 4], eax
lea rcx, [r11 + 4]
mov rdx, qword [rsp + 0x70]
mov dword [r11], edi
mov edi, dword [rsp + 0x78]
mov r8d, edi
call sub.msvcrt.dll_memcpy
mov ecx, dword [rsp + 0x40]
sub r13d, edi
mov rax, qword [rbp - 0x70]
inc ecx
add qword [rsp + 0x70], rdi
mov dword [rsp + 0x40], ecx
movzx eax, word [rax + 6]
cmp ecx, eax
jb 0x14001f072
mov rax, qword [rsp + 0x30]
xor ebx, ebx
mov rdx, rax
mov rcx, rsi
call fcn.14001f720
jmp 0x14001f280
cmp r13d, 0x80000000
jae 0x14001f285
mov rbx, qword [r12 + 0x20]
test rbx, rbx
je 0x14001f1ed
mov rcx, r13
mov edx, 0x10
call qword [sym.imp.msvcrt.dll__aligned_malloc]
xor ecx, ecx
mov qword [rsp + 0x30], rax
mov rdi, rax
test rax, rax
je 0x14001f4a9
mov rax, qword [rbx]
cmp cx, word [rax + 2]
jae 0x14001f1e8
mov r15d, r13d
mov esi, ecx
mov r13d, 0x3fd8
mov r14, rdi
mov rax, qword [r12 + 0x20]
cmp r15d, r13d
mov ecx, esi
mov edi, r15d
cmova edi, r13d
mov r8d, edi
mov ebx, edi
mov rdx, qword [rax + rcx*8 + 8]
mov rcx, r14
mov qword [rbp - 0x78], rdx
add rdx, 4
call sub.msvcrt.dll_memcpy
mov rax, qword [r12 + 0x20]
add r14, rbx
sub r15d, edi
inc esi
mov rcx, qword [rax]
movzx eax, word [rcx + 2]
cmp esi, eax
jb 0x14001f18f
mov rsi, qword [rbp + 0x50]
mov r14, qword [rbp - 0x58]
mov r15, qword [rbp - 0x40]
mov r13d, dword [rsp + 0x70]
mov rdi, qword [rsp + 0x30]
mov qword [r12 + 0x28], rdi
mov rax, qword [rsi + 0x10]
lea r9, [rsp + 0x38]
mov r8, qword [r14 + 0x78]
mov ecx, dword [rax + 0x14]
dec ecx
shl ecx, 0xc
add ecx, dword [rax + 0x18]
cmp ecx, 2
mov rcx, rsi
sbb eax, eax
and eax, 8
lea edi, [rax + 7]
add eax, 0xb
add eax, r13d
not edi
and edi, eax
lea rax, [rbp - 0x78]
mov edx, edi
mov qword [rsp + 0x20], rax
call fcn.14001f968
mov ebx, eax
test eax, eax
jne 0x14001f4e4
mov rbx, qword [rbp - 0x78]
neg edi
mov r8d, r13d
mov dword [rbx], edi
lea rcx, [rbx + 4]
mov rdx, qword [r12 + 0x28]
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
call fcn.14001f920
mov rcx, qword [rbp - 0x28]
xor ebx, ebx
mov r8, qword [rsp + 0x30]
mov dword [rcx + 8], eax
test r8, r8
je 0x14001f285
mov rdx, r8
mov rcx, rsi
call fcn.14001f720
mov qword [r12 + 0x28], rbx
mov qword [rsp + 0x30], rbx
mov rax, qword [r12 + 0x18]
test byte [rax + 0x10], 1
movzx edx, word [rax + 2]
mov ecx, dword [rax + 4]
je 0x14001f299
add edx, edx
mov eax, dword [rsp + 0x6c]
cmp edx, eax
cmova eax, edx
mov dword [rsp + 0x6c], eax
cmp ecx, 0x80000000
jb 0x14001f2b4
add ecx, 0x80000000
mov eax, dword [rsp + 0x68]
cmp ecx, eax
mov r13d, dword [rbp - 0x80]
mov r12, qword [r12]
cmova eax, ecx
inc r13d
mov dword [rsp + 0x68], eax
mov rax, qword [rbp - 0x50]
mov dword [rbp - 0x80], r13d
cmp r13d, dword [rax + 0x24]
jb 0x14001ed43
xor r12d, r12d
mov eax, dword [rsp + 0x68]
mov r13d, 1
mov dword [r15 + 0x40], eax
mov eax, dword [rsp + 0x6c]
mov dword [r15 + 0x3c], eax
mov dword [rsp + 0x6c], r12d
mov dword [rsp + 0x68], r12d
cmp qword [r14 + 0x60], r12
je 0x14001f381
mov rax, qword [rsi + 0x10]
lea r9, [rsp + 0x38]
mov r8, qword [r14 + 0x78]
mov ecx, dword [rax + 0x14]
sub ecx, r13d
shl ecx, 0xc
add ecx, dword [rax + 0x18]
movzx eax, word [r15 + 0x4a]
cmp ecx, 2
sbb ecx, ecx
and ecx, 8
lea edi, [rcx + 0xb]
add edi, eax
lea eax, [rcx + 7]
not eax
mov rcx, rsi
and edi, eax
lea rax, [rbp - 0x68]
mov edx, edi
mov qword [rsp + 0x20], rax
call fcn.14001f968
mov ebx, eax
test eax, eax
jne 0x14001f4e4
mov rbx, qword [rbp - 0x68]
neg edi
mov dword [rbx], edi
lea rcx, [rbx + 4]
movzx r8d, word [r15 + 0x4a]
mov rdx, qword [r14 + 0x60]
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
call fcn.14001f920
mov dword [r15 + 0x30], eax
mov r8d, dword [r15 + 0x14]
test r8d, r8d
je 0x14001f45a
mov rdx, r14
mov rcx, rsi
cmp r8d, 0x1fb
jbe 0x14001f3b2
call fcn.1400218e8
mov ebx, eax
test eax, eax
je 0x14001f3c1
mov rdi, qword [rsp + 0x30]
jmp 0x14001f4dd
call fcn.140021b04
mov ebx, eax
test eax, eax
jne 0x14001f4e4
mov rdx, qword [r14 + 0x40]
mov r8, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rdx + 8], r8
mov qword [rdx], rax
lea rax, [rsp + 0x58]
cmp qword [r8], rax
jne 0x14001f4b0
mov qword [r8], rdx
mov r8, rdx
mov qword [rsp + 0x60], rdx
mov r9, qword [rdx + 0x28]
test byte [r9 + 2], 0x20
je 0x14001f417
movzx r10d, word [r9 + 0x48]
mov eax, dword [rbp + 0x68]
mov ecx, r10d
add rcx, rcx
cmp rax, rcx
jae 0x14001f426
mov ecx, r10d
add ecx, ecx
mov dword [rbp + 0x68], ecx
jmp 0x14001f429
movzx eax, word [r9 + 0x48]
mov ecx, dword [rbp + 0x68]
cmp ecx, eax
cmovb ecx, eax
jmp 0x14001f412
mov ecx, dword [rbp + 0x68]
movzx eax, word [r9 + 0x4a]
mov r9d, dword [rsp + 0x7c]
cmp r9d, eax
mov rdx, qword [rdx + 0x30]
cmovb r9d, eax
mov dword [rsp + 0x7c], r9d
test rdx, rdx
jne 0x14001f3ca
mov dword [r15 + 0x38], r9d
mov word [r15 + 0x34], cx
mov dword [rbp + 0x68], r12d
mov dword [rsp + 0x7c], r12d
mov rax, qword [rsp + 0x58]
lea rdx, [rsp + 0x58]
mov rcx, qword [rax]
cmp qword [rax + 8], rdx
jne 0x14001f4d1
cmp qword [rcx + 8], rax
jne 0x14001f4d1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x58], rcx
mov qword [rcx + 8], rax
lea rax, [rsp + 0x58]
mov r14, qword [rsp + 0x58]
mov qword [rbp - 0x58], r14
cmp r14, rax
je 0x14001f4b7
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rbp - 0x38]
jmp 0x14001e9a4
mov ebx, 8
jmp 0x14001f4e9
mov ebx, 8
jmp 0x14001f4dd
mov ecx, 3
int 0x29
cmp byte [rbp + 0x58], r12b
jne 0x14001f4cd
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001f4cd
call qword [sym.imp.msvcrt.dll__aligned_free]
xor eax, eax
jmp 0x14001f527
mov ecx, 3
int 0x29
mov ebx, 0x1f
mov r12, qword [rsp + 0x50]
jmp 0x14001f4ee
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x30]
lea rdx, [rsi + 0x50]
mov rcx, rsi
call fcn.14001f544
xor esi, esi
cmp byte [rbp + 0x58], sil
jne 0x14001f510
test r12, r12
je 0x14001f510
mov rcx, r12
call qword [sym.imp.msvcrt.dll__aligned_free]
test rdi, rdi
je 0x14001f51e
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__aligned_free]
mov eax, ebx
jmp 0x14001f527
mov eax, 0x57
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret