Function at 0x14004e600
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov rax, qword [0x140098010]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov qword [rbp - 0x78], r9
mov r12d, r8d
mov dword [rsp + 0x40], r8d
mov qword [rbp - 0x70], rdx
mov rsi, rcx
mov r13, qword [rbp + 0x1d0]
mov qword [rbp - 0x68], r13
xor edi, edi
mov r15d, edi
mov dword [rbp - 0x80], edi
lea rax, [0x14009bfa0]
mov qword [rbp + 0x10], rax
lea rcx, [0x14009bff0]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14004f767
movzx ebx, byte [0x14009bfa0]
test bl, bl
sete byte [rbp + 0x18]
test bl, bl
jne 0x14004e689
inc dword [0x14009c040]
lea rcx, [0x14009bff0]
call sub.MSVCP140.dll__Mtx_unlock
nop
mov r14, qword [0x14009c198]
mov qword [rbp + 0x20], rdi
lea rax, [0x14007e750]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], rdi
mov rax, qword [r14]
cmp dword [rax], 0
je 0x14004e708
mov qword [rbp + 0x88], rdi
lea rcx, [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x20], rax
lea rcx, [0x140080ba3]
mov qword [rsp + 0x28], rcx
lea rax, str._DLLPROTECT__::_GenericLoadLibrary_Hook___
mov qword [rsp + 0x20], rax
lea r9, [0x14007d580]
mov r8, rcx
xor edx, edx
mov rcx, r14
call fcn.140057bd0
nop
test bl, bl
je 0x14004e71f
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, rdi
jmp 0x14004f6f7
lea rcx, [rsp + 0x48]
call fcn.140050fe0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp - 0x20], xmm1
mov rax, qword [rax]
cmp dword [rax], 0
je 0x14004e756
lea r8, str.GenericLoadLibrary_Hook_called_with:
lea rdx, [0x14007e800]
xor ecx, ecx
call fcn.140057d60
lea rcx, [rsp + 0x48]
call fcn.140050fe0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp - 0x20], xmm1
mov rax, qword [rax]
cmp dword [rax], 0
je 0x14004e790
mov r9, rsi
lea r8, str.Filename:__s
lea rdx, [0x14007e800]
xor ecx, ecx
call fcn.140057d60
lea rcx, [rsp + 0x48]
call fcn.140050fe0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp - 0x20], xmm1
mov rax, qword [rax]
mov rbx, qword [rbp - 0x70]
cmp dword [rax], 0
je 0x14004e7ce
mov r9, rbx
lea r8, str.hFile:__x
lea rdx, [0x14007e800]
xor ecx, ecx
call fcn.140057d60
lea rcx, [rsp + 0x48]
call fcn.140050fe0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp - 0x20], xmm1
mov rax, qword [rax]
cmp dword [rax], 0
je 0x14004e808
mov r9d, r12d
lea r8, str.Flags:_0x_x
lea rdx, [0x14007e800]
xor ecx, ecx
call fcn.140057d60
lea rcx, [rbp + 0xf0]
call fcn.140050fe0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp - 0x20], xmm1
mov rax, qword [rax]
cmp dword [rax], 0
je 0x14004e8b3
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x60], rax
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp + 0x140], xmm0
mov qword [rbp - 0x60], 0xc
lea rax, [rbp + 0x140]
mov qword [rbp - 0x58], rax
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp], xmm0
lea rax, str.FuncName:_
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 0xc
lea r8, [rbp]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x48]
call fcn.14006f900
nop
mov r15d, 5
mov dword [rbp - 0x80], r15d
lea r9, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae r9, qword [rsp + 0x48]
xor r8d, r8d
lea rdx, str._DLLPROTECT__::_GenericLoadLibrary_Hook____
xor ecx, ecx
call fcn.140057a40
nop
test r15b, 1
je 0x14004e8fd
and r15d, 0xfffffffe
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14004e8fd
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004e8f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004e8f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003edd0
lea rcx, [rsp + 0x48]
call fcn.140050fe0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp - 0x20], xmm1
mov rax, qword [rax]
cmp dword [rax], 0
je 0x14004e937
mov r9, r13
lea r8, str.CallerAddr:_0x_x
lea rdx, [0x14007e800]
xor ecx, ecx
call fcn.140057d60
lea rcx, [rsp + 0x48]
call fcn.140050fe0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp - 0x20], xmm1
mov rax, qword [rax]
cmp dword [rax], 0
je 0x14004eb2f
mov qword [rbp + 0xb0], rdi
mov qword [rbp + 0xc0], rdi
mov qword [rbp + 0xc8], 7
mov word [rbp + 0xb0], di
mov r8d, 7
lea rdx, str.UNKNOWN
lea rcx, [rbp + 0xb0]
call fcn.140002a90
nop
mov qword [rbp + 0xf0], rdi
mov qword [rbp + 0x100], rdi
mov qword [rbp + 0x108], 7
mov word [rbp + 0xf0], di
mov r8d, 7
lea rdx, str.UNKNOWN
lea rcx, [rbp + 0xf0]
call fcn.140002a90
nop
lea r8, [rbp + 0xf0]
lea rdx, [rbp + 0xb0]
mov rcx, r13
call fcn.1400562a0
lea rcx, [rsp + 0x48]
call fcn.140050fe0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp - 0x20], xmm1
mov rax, qword [rax]
cmp dword [rax], 0
je 0x14004ea35
lea r9, [rbp + 0xf0]
cmp qword [rbp + 0x108], 8
cmovae r9, qword [rbp + 0xf0]
lea r8, str.CallerOffset:__s
lea rdx, [0x14007e800]
xor ecx, ecx
call fcn.140057d60
lea rcx, [rsp + 0x48]
call fcn.140050fe0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp - 0x20], xmm1
mov rax, qword [rax]
cmp dword [rax], 0
je 0x14004ea84
lea r9, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae r9, qword [rbp + 0xb0]
lea r8, str.CallerName:__s
lea rdx, [0x14007e800]
xor ecx, ecx
call fcn.140057d60
nop
mov rdx, qword [rbp + 0x108]
cmp rdx, 8
jb 0x14004eacd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004eac8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004eac8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003edd0
mov qword [rbp + 0x100], rdi
mov qword [rbp + 0x108], 7
mov word [rbp + 0xf0], di
mov rdx, qword [rbp + 0xc8]
cmp rdx, 8
jb 0x14004eb2f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004eb2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004eb2a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003edd0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004eb5a
mov rax, qword [0x14009c048]
mov r8d, r12d
mov rdx, rbx
mov rcx, rsi
call rax
mov rdi, rax
mov rbx, rax
jmp 0x14004f6f7
mov qword [rbp + 0xd0], rdi
mov qword [rbp + 0xe0], rdi
mov qword [rbp + 0xe8], 7
mov word [rbp + 0xd0], di
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rsi + r8*2], 0
jne 0x14004eb84
mov rdx, rsi
lea rcx, [rbp + 0xd0]
call fcn.140002a90
nop
call fcn.14005ada0
mov r14, rax
mov qword [rbp - 0x80], rax
lea r8, [rbp + 0xd0]
mov r12, qword [rbp + 0xd0]
mov r13, qword [rbp + 0xe8]
cmp r13, 8
cmovae r8, r12
movabs rdx, 0xcbf29ce484222325
mov r11, qword [rbp + 0xe0]
lea r9, [r11 + r11]
mov rcx, rdi
test r9, r9
je 0x14004ec04
movabs r10, 0x100000001b3
nop
movzx eax, byte [rcx + r8]
xor rdx, rax
imul rdx, r10
inc rcx
cmp rcx, r9
jb 0x14004ebf0
mov rcx, qword [r14 + 0x30]
and rcx, rdx
add rcx, rcx
mov rax, qword [r14 + 0x18]
mov r10, qword [rax + rcx*8 + 8]
cmp r10, qword [r14 + 8]
je 0x14004ed96
mov r14, qword [rax + rcx*8]
nop word [rax + rax]
lea rax, [r10 + 0x10]
mov rcx, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14004ec42
mov rax, qword [rax]
lea r9, [rbp + 0xd0]
cmp r13, 8
cmovae r9, r12
cmp r11, rcx
jne 0x14004ec8c
mov r8, r11
test r11, r11
je 0x14004ec9b
movzx ecx, word [r9]
movzx edx, word [rax]
cmp cx, dx
jb 0x14004ec8c
sub r9, rax
cmp cx, dx
ja 0x14004ec8c
cmp r8, 1
je 0x14004ec9b
dec r8
add rax, 2
movzx ecx, word [r9 + rax]
movzx edx, word [rax]
cmp cx, dx
jae 0x14004ec70
cmp r10, r14
je 0x14004ed92
mov r10, qword [r10 + 8]
jmp 0x14004ec30
mov r14, qword [rbp - 0x80]
test r10, r10
je 0x14004ed96
cmp r10, qword [r14 + 8]
je 0x14004ed96
lea rax, [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 0xf
xor r8d, r8d
lea rdx, [0x140080ba3]
lea rcx, [rsp + 0x48]
call fcn.140020b40
nop
lea rax, [rbp - 0x40]
mov qword [rbp + 0x88], rax
mov rdx, r14
lea rcx, [rbp - 0x40]
call fcn.140048de0
mov r14, rax
mov qword [rbp + 0xf0], rdi
mov qword [rbp + 0x100], rdi
mov qword [rbp + 0x108], 7
nop word [rax + rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x14004ed20
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0xf0]
call fcn.140002a90
nop
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], r14
mov r9, qword [rbp - 0x78]
mov r8d, dword [rsp + 0x40]
lea rdx, [rbp + 0xf0]
mov rcx, rsi
call fcn.140053e50
mov rax, qword [0x14009c048]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rbp - 0x70]
mov rcx, rsi
call rax
mov rbx, rax
jmp 0x14004f695
mov r14, qword [rbp - 0x80]
lea r8, [rbp + 0xd0]
lea rdx, [rbp + 0xb0]
mov rcx, r14
call fcn.140043600
mov qword [rbp + 0xf0], r14
lea rax, [rbp + 0xd0]
mov qword [rbp + 0xf8], rax
mov byte [rbp + 0x100], 1
cmp byte [0x14009c272], 0
je 0x14004eeef
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x14004ede0
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140002a90
or r15d, 0x18
lea rcx, [rsp + 0x48]
call fcn.14005c2f0
test al, al
je 0x14004eeef
lea rax, [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 0xf
xor r8d, r8d
lea rdx, [0x140080ba3]
lea rcx, [rsp + 0x48]
call fcn.140020b40
nop
lea rax, [rbp - 0x40]
mov qword [rbp + 0x88], rax
lea rcx, [rbp - 0x40]
call fcn.140048e80
mov r14, rax
mov qword [rbp + 0xb0], rdi
mov qword [rbp + 0xc0], rdi
mov qword [rbp + 0xc8], 7
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x14004ee83
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0xb0]
call fcn.140002a90
nop
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], r14
mov r9, qword [rbp - 0x78]
mov r8d, dword [rsp + 0x40]
lea rdx, [rbp + 0xb0]
mov rcx, rsi
call fcn.140053e50
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, rdi
mov rsi, qword [rbp - 0x80]
jmp 0x14004f685
cmp byte [0x14009c279], 0
jne 0x14004ef42
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x14004ef00
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140002a90
or r15d, 0x62
lea rcx, [rsp + 0x48]
call fcn.14005cdc0
test al, al
je 0x14004ef42
mov r14b, 1
jmp 0x14004ef45
xor r14b, r14b
test r15b, 2
je 0x14004ef55
lea rcx, [rsp + 0x48]
call fcn.140005340
test r14b, r14b
je 0x14004ef7b
mov rax, qword [0x14009c048]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rbp - 0x70]
mov rcx, rsi
call rax
mov rbx, rax
mov rsi, qword [rbp - 0x80]
jmp 0x14004f685
mov qword [rbp + 0x90], rdi
mov qword [rbp + 0xa0], rdi
mov qword [rbp + 0xa8], 7
mov word [rbp + 0x90], di
mov qword [rbp + 0x120], rdi
mov qword [rbp + 0x130], rdi
mov qword [rbp + 0x138], 0xf
mov byte [rbp + 0x120], 0
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x120]
lea r8, [rbp + 0x90]
mov r13d, dword [rsp + 0x40]
mov edx, r13d
mov rcx, rsi
call fcn.140052760
mov r14d, eax
lea rax, [rbp + 0x80]
mov qword [rbp + 0xb0], rax
mov byte [rbp + 0xb8], 1
cmp r14d, 0xa
jne 0x14004f11d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 0xf
xor r8d, r8d
lea rdx, [0x140080ba3]
lea rcx, [rsp + 0x48]
call fcn.140020b40
nop
lea rax, [rbp - 0x40]
mov qword [rbp + 0x88], rax
lea rcx, [rbp - 0x40]
call fcn.140048e80
mov r12, rax
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rdi
mov r15, qword [rbp + 0xa0]
lea r14, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae r14, qword [rbp + 0x90]
cmp r15, 8
jae 0x14004f08f
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x60], xmm0
mov ebx, 7
jmp 0x14004f0cb
mov rbx, r15
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x60]
call fcn.140002c10
mov qword [rbp - 0x60], rax
lea r8, [r15*2 + 2]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], rbx
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], r12
mov r9, qword [rbp - 0x78]
mov r8d, r13d
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.140053e50
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, rdi
mov rsi, qword [rbp - 0x80]
jmp 0x14004f5b2
test r14d, r14d
je 0x14004f447
test byte [0x14009c274], 0x10
je 0x14004f217
lea rax, [rbp - 0x40]
mov qword [rbp], rax
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x40]
call fcn.14001f250
mov qword [rbp + 0x88], rax
lea rax, [rbp + 0x40]
mov qword [rbp + 0x140], rax
lea rcx, [rbp + 0x40]
call fcn.140048e80
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov r13, qword [rbp + 0xa0]
lea r12, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae r12, qword [rbp + 0x90]
cmp r13, 8
jae 0x14004f1b0
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x48], xmm0
mov r15d, 7
jmp 0x14004f1ee
mov r15, r13
or r15, 7
movabs rax, 0x7ffffffffffffffe
cmp r15, rax
cmova r15, rax
lea rdx, [r15 + 1]
lea rcx, [rsp + 0x48]
call fcn.140002c10
mov qword [rsp + 0x48], rax
lea r8, [r13*2 + 2]
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r15
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x78]
jmp 0x14004f3ec
test byte [0x14009c274], 0x20
je 0x14004f447
cmp byte [0x14009c273], 0
je 0x14004f40f
lea rax, [rbp - 0x40]
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x60], rax
call fcn.14001f250
cmp r14d, 5
jne 0x14004f325
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0x40]
mov qword [rbp + 0x140], rax
lea rcx, [rbp + 0x40]
call fcn.140048e80
mov qword [rbp + 0x88], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov r13, qword [rbp + 0xa0]
lea r12, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae r12, qword [rbp + 0x90]
cmp r13, 8
jae 0x14004f2b6
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x48], xmm0
lea r15d, [r14 + 2]
jmp 0x14004f2f4
mov r15, r13
or r15, 7
movabs rax, 0x7ffffffffffffffe
cmp r15, rax
cmova r15, rax
lea rdx, [r15 + 1]
lea rcx, [rsp + 0x48]
call fcn.140002c10
mov qword [rsp + 0x48], rax
lea r8, [r13*2 + 2]
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r15
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xa
mov rax, qword [rbp + 0x88]
jmp 0x14004f3f1
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0x40]
mov qword [rbp + 0x140], rax
lea rcx, [rbp + 0x40]
call fcn.140048e80
mov qword [rbp + 0x88], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov r13, qword [rbp + 0xa0]
lea r12, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae r12, qword [rbp + 0x90]
cmp r13, 8
jae 0x14004f38a
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x48], xmm0
mov r15d, 7
jmp 0x14004f3c8
mov r15, r13
or r15, 7
movabs rax, 0x7ffffffffffffffe
cmp r15, rax
cmova r15, rax
lea rdx, [r15 + 1]
lea rcx, [rsp + 0x48]
call fcn.140002c10
mov qword [rsp + 0x48], rax
lea r8, [r13*2 + 2]
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r15
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x88]
mov dword [rsp + 0x28], r14d
mov r13d, dword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.140053e50
test byte [0x14009c274], 0x20
je 0x14004f447
cmp r14d, 5
je 0x14004f424
cmp r14d, 2
jne 0x14004f447
mov edx, 0x7e
cmp r14d, 2
mov ecx, 5
cmove ecx, edx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, rdi
mov rsi, qword [rbp - 0x80]
jmp 0x14004f5b2
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae rdx, qword [rbp + 0x90]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x14004f476
mov r8, rbx
lea rcx, [rsp + 0x48]
call fcn.140002a90
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x60]
mov rsi, qword [rbp - 0x80]
mov rcx, rsi
call fcn.1400437e0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14004f4e9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f4e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f4e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003edd0
mov qword [rbp - 0x60], rsi
lea rax, [rbp + 0x90]
mov qword [rbp - 0x58], rax
mov byte [rbp - 0x50], 1
lea rcx, [rsp + 0x48]
call fcn.140050fe0
mov rax, qword [rax]
cmp dword [rax], 0
je 0x14004f53a
lea r9, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae r9, qword [rbp + 0x90]
lea r8, str.calling_TrueLoadLibraryExW_with__s
lea rdx, [0x14007e800]
xor ecx, ecx
call fcn.140057d60
mov rax, qword [0x14009c048]
lea rcx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae rcx, qword [rbp + 0x90]
mov r8d, r13d
mov rdx, qword [rbp - 0x70]
call rax
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.140050fe0
mov rax, qword [rax]
cmp dword [rax], 0
je 0x14004f5a8
lea r9, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae r9, qword [rbp + 0x90]
mov qword [rsp + 0x20], rbx
lea r8, str.calling_TrueLoadLibraryExW_with__s___dll_p
lea rdx, [0x14007e800]
xor ecx, ecx
call fcn.140057d60
nop
lea rcx, [rbp - 0x60]
call fcn.14004a360
nop
mov rcx, qword [rbp + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x14004f5c6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x14004f60a
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f605
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f605
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003edd0
mov qword [rbp + 0x130], rdi
mov qword [rbp + 0x138], 0xf
mov byte [rbp + 0x120], 0
mov rdx, qword [rbp + 0xa8]
cmp rdx, 8
jb 0x14004f66c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f667
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f667
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003edd0
mov qword [rbp + 0xa0], rdi
mov qword [rbp + 0xa8], 7
mov word [rbp + 0x90], di
lea rdx, [rbp + 0xd0]
mov rcx, rsi
call fcn.140059b80
nop
mov rdx, qword [rbp + 0xe8]
cmp rdx, 8
jb 0x14004f6de
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f6d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f6d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003edd0
mov qword [rbp + 0xe0], rdi
mov qword [rbp + 0xe8], 7
mov word [rbp + 0xd0], di
lea rcx, [rbp + 0x20]
call fcn.14004adb0
nop
cmp byte [rbp + 0x18], 0
je 0x14004f739
lea rcx, [0x14009bff0]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14004f75f
sub dword [0x14009c040], 1
jne 0x14004f72c
lea rcx, [0x14009bfa8]
call sub.MSVCP140.dll__Cnd_broadcast
lea rcx, [0x14009bff0]
call sub.MSVCP140.dll__Mtx_unlock
nop
mov rax, rbx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14003edb0
add rsp, 0x268
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
nop
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3