Function at 0x14003fd30
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 [0x140087010]
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, [0x14008ae70]
mov qword [rbp + 0x10], rax
lea rcx, [0x14008aec0]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x140040e97
movzx ebx, byte [0x14008ae70]
test bl, bl
sete byte [rbp + 0x18]
test bl, bl
jne 0x14003fdb9
inc dword [0x14008af10]
lea rcx, [0x14008aec0]
call sub.MSVCP140.dll__Mtx_unlock
nop
mov r14, qword [0x14008b068]
mov qword [rbp + 0x20], rdi
lea rax, [0x14006f380]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], rdi
mov rax, qword [r14]
cmp dword [rax], 0
je 0x14003fe38
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, [0x140070d7f]
mov qword [rsp + 0x28], rcx
lea rax, str._DLLPROTECT__::_GenericLoadLibrary_Hook___
mov qword [rsp + 0x20], rax
lea r9, str._s_s
mov r8, rcx
xor edx, edx
mov rcx, r14
call fcn.140049300
nop
test bl, bl
je 0x14003fe4f
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, rdi
jmp 0x140040e27
lea rcx, [rsp + 0x48]
call fcn.140042710
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 0x14003fe86
lea r8, str.GenericLoadLibrary_Hook_called_with:
lea rdx, [0x14006f430]
xor ecx, ecx
call fcn.140049490
lea rcx, [rsp + 0x48]
call fcn.140042710
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 0x14003fec0
mov r9, rsi
lea r8, str.Filename:__s
lea rdx, [0x14006f430]
xor ecx, ecx
call fcn.140049490
lea rcx, [rsp + 0x48]
call fcn.140042710
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 0x14003fefe
mov r9, rbx
lea r8, str.hFile:__x
lea rdx, [0x14006f430]
xor ecx, ecx
call fcn.140049490
lea rcx, [rsp + 0x48]
call fcn.140042710
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 0x14003ff38
mov r9d, r12d
lea r8, str.Flags:_0x_x
lea rdx, [0x14006f430]
xor ecx, ecx
call fcn.140049490
lea rcx, [rbp + 0xf0]
call fcn.140042710
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 0x14003ffe3
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.140061050
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.140049170
nop
test r15b, 1
je 0x14004002d
and r15d, 0xfffffffe
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14004002d
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040028
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040028
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400302a0
lea rcx, [rsp + 0x48]
call fcn.140042710
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 0x140040067
mov r9, r13
lea r8, str.CallerAddr:_0x_x
lea rdx, [0x14006f430]
xor ecx, ecx
call fcn.140049490
lea rcx, [rsp + 0x48]
call fcn.140042710
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 0x14004025f
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, [0x140072320]
lea rcx, [rbp + 0xb0]
call fcn.14001a610
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, [0x140072320]
lea rcx, [rbp + 0xf0]
call fcn.14001a610
nop
lea r8, [rbp + 0xf0]
lea rdx, [rbp + 0xb0]
mov rcx, r13
call fcn.1400479d0
lea rcx, [rsp + 0x48]
call fcn.140042710
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 0x140040165
lea r9, [rbp + 0xf0]
cmp qword [rbp + 0x108], 8
cmovae r9, qword [rbp + 0xf0]
lea r8, str.CallerOffset:__s
lea rdx, [0x14006f430]
xor ecx, ecx
call fcn.140049490
lea rcx, [rsp + 0x48]
call fcn.140042710
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 0x1400401b4
lea r9, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae r9, qword [rbp + 0xb0]
lea r8, str.CallerName:__s
lea rdx, [0x14006f430]
xor ecx, ecx
call fcn.140049490
nop
mov rdx, qword [rbp + 0x108]
cmp rdx, 8
jb 0x1400401fd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400401f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400401f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400302a0
mov qword [rbp + 0x100], rdi
mov qword [rbp + 0x108], 7
mov word [rbp + 0xf0], di
mov rdx, qword [rbp + 0xc8]
cmp rdx, 8
jb 0x14004025f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004025a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004025a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400302a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004028a
mov rax, qword [0x14008af18]
mov r8d, r12d
mov rdx, rbx
mov rcx, rsi
call rax
mov rdi, rax
mov rbx, rax
jmp 0x140040e27
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 0x1400402b4
mov rdx, rsi
lea rcx, [rbp + 0xd0]
call fcn.14001a610
nop
call fcn.14004c4d0
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 0x140040334
movabs r10, 0x100000001b3
nop
movzx eax, byte [rcx + r8]
xor rdx, rax
imul rdx, r10
inc rcx
cmp rcx, r9
jb 0x140040320
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 0x1400404c6
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 0x140040372
mov rax, qword [rax]
lea r9, [rbp + 0xd0]
cmp r13, 8
cmovae r9, r12
cmp r11, rcx
jne 0x1400403bc
mov r8, r11
test r11, r11
je 0x1400403cb
movzx ecx, word [r9]
movzx edx, word [rax]
cmp cx, dx
jb 0x1400403bc
sub r9, rax
cmp cx, dx
ja 0x1400403bc
cmp r8, 1
je 0x1400403cb
dec r8
add rax, 2
movzx ecx, word [r9 + rax]
movzx edx, word [rax]
cmp cx, dx
jae 0x1400403a0
cmp r10, r14
je 0x1400404c2
mov r10, qword [r10 + 8]
jmp 0x140040360
mov r14, qword [rbp - 0x80]
test r10, r10
je 0x1400404c6
cmp r10, qword [r14 + 8]
je 0x1400404c6
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, [0x140070d7f]
lea rcx, [rsp + 0x48]
call fcn.14001a880
nop
lea rax, [rbp - 0x40]
mov qword [rbp + 0x88], rax
mov rdx, r14
lea rcx, [rbp - 0x40]
call fcn.14003a3a0
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 0x140040450
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0xf0]
call fcn.14001a610
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.140045580
mov rax, qword [0x14008af18]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rbp - 0x70]
mov rcx, rsi
call rax
mov rbx, rax
jmp 0x140040dc5
mov r14, qword [rbp - 0x80]
lea r8, [rbp + 0xd0]
lea rdx, [rbp + 0xb0]
mov rcx, r14
call fcn.140034bc0
mov qword [rbp + 0xf0], r14
lea rax, [rbp + 0xd0]
mov qword [rbp + 0xf8], rax
mov byte [rbp + 0x100], 1
cmp byte [0x14008b142], 0
je 0x14004061f
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x140040510
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.14001a610
or r15d, 0x18
lea rcx, [rsp + 0x48]
call fcn.14004da40
test al, al
je 0x14004061f
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, [0x140070d7f]
lea rcx, [rsp + 0x48]
call fcn.14001a880
nop
lea rax, [rbp - 0x40]
mov qword [rbp + 0x88], rax
lea rcx, [rbp - 0x40]
call fcn.14003a440
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 0x1400405b3
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0xb0]
call fcn.14001a610
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.140045580
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, rdi
mov rsi, qword [rbp - 0x80]
jmp 0x140040db5
cmp byte [0x14008b149], 0
jne 0x140040672
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x140040630
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.14001a610
or r15d, 0x62
lea rcx, [rsp + 0x48]
call fcn.14004e510
test al, al
je 0x140040672
mov r14b, 1
jmp 0x140040675
xor r14b, r14b
test r15b, 2
je 0x140040685
lea rcx, [rsp + 0x48]
call fcn.140002b60
test r14b, r14b
je 0x1400406ab
mov rax, qword [0x14008af18]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rbp - 0x70]
mov rcx, rsi
call rax
mov rbx, rax
mov rsi, qword [rbp - 0x80]
jmp 0x140040db5
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.140043e90
mov r14d, eax
lea rax, [rbp + 0x80]
mov qword [rbp + 0xb0], rax
mov byte [rbp + 0xb8], 1
cmp r14d, 0xa
jne 0x14004084d
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, [0x140070d7f]
lea rcx, [rsp + 0x48]
call fcn.14001a880
nop
lea rax, [rbp - 0x40]
mov qword [rbp + 0x88], rax
lea rcx, [rbp - 0x40]
call fcn.14003a440
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 0x1400407bf
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x60], xmm0
mov ebx, 7
jmp 0x1400407fb
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.14001a7c0
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.140045580
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, rdi
mov rsi, qword [rbp - 0x80]
jmp 0x140040ce2
test r14d, r14d
je 0x140040b77
test byte [0x14008b144], 0x10
je 0x140040947
lea rax, [rbp - 0x40]
mov qword [rbp], rax
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x40]
call fcn.140018e80
mov qword [rbp + 0x88], rax
lea rax, [rbp + 0x40]
mov qword [rbp + 0x140], rax
lea rcx, [rbp + 0x40]
call fcn.14003a440
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 0x1400408e0
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x48], xmm0
mov r15d, 7
jmp 0x14004091e
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.14001a7c0
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 0x140040b1c
test byte [0x14008b144], 0x20
je 0x140040b77
cmp byte [0x14008b143], 0
je 0x140040b3f
lea rax, [rbp - 0x40]
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x60], rax
call fcn.140018e80
cmp r14d, 5
jne 0x140040a55
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0x40]
mov qword [rbp + 0x140], rax
lea rcx, [rbp + 0x40]
call fcn.14003a440
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 0x1400409e6
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x48], xmm0
lea r15d, [r14 + 2]
jmp 0x140040a24
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.14001a7c0
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 0x140040b21
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0x40]
mov qword [rbp + 0x140], rax
lea rcx, [rbp + 0x40]
call fcn.14003a440
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 0x140040aba
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x48], xmm0
mov r15d, 7
jmp 0x140040af8
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.14001a7c0
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.140045580
test byte [0x14008b144], 0x20
je 0x140040b77
cmp r14d, 5
je 0x140040b54
cmp r14d, 2
jne 0x140040b77
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 0x140040ce2
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 0x140040ba6
mov r8, rbx
lea rcx, [rsp + 0x48]
call fcn.14001a610
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x60]
mov rsi, qword [rbp - 0x80]
mov rcx, rsi
call fcn.140034da0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140040c19
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040c14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040c14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400302a0
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.140042710
mov rax, qword [rax]
cmp dword [rax], 0
je 0x140040c6a
lea r9, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae r9, qword [rbp + 0x90]
lea r8, str.calling_TrueLoadLibraryExW_with__s
lea rdx, [0x14006f430]
xor ecx, ecx
call fcn.140049490
mov rax, qword [0x14008af18]
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.140042710
mov rax, qword [rax]
cmp dword [rax], 0
je 0x140040cd8
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, [0x14006f430]
xor ecx, ecx
call fcn.140049490
nop
lea rcx, [rbp - 0x60]
call fcn.14003b950
nop
mov rcx, qword [rbp + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x140040cf6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x140040d3a
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040d35
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040d35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400302a0
mov qword [rbp + 0x130], rdi
mov qword [rbp + 0x138], 0xf
mov byte [rbp + 0x120], 0
mov rdx, qword [rbp + 0xa8]
cmp rdx, 8
jb 0x140040d9c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040d97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040d97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400302a0
mov qword [rbp + 0xa0], rdi
mov qword [rbp + 0xa8], 7
mov word [rbp + 0x90], di
lea rdx, [rbp + 0xd0]
mov rcx, rsi
call fcn.14004b2b0
nop
mov rdx, qword [rbp + 0xe8]
cmp rdx, 8
jb 0x140040e0e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040e09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040e09
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400302a0
mov qword [rbp + 0xe0], rdi
mov qword [rbp + 0xe8], 7
mov word [rbp + 0xd0], di
lea rcx, [rbp + 0x20]
call fcn.14003c3d0
nop
cmp byte [rbp + 0x18], 0
je 0x140040e69
lea rcx, [0x14008aec0]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x140040e8f
sub dword [0x14008af10], 1
jne 0x140040e5c
lea rcx, [0x14008ae78]
call sub.MSVCP140.dll__Cnd_broadcast
lea rcx, [0x14008aec0]
call sub.MSVCP140.dll__Mtx_unlock
nop
mov rax, rbx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140030280
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