Function at 0x18001705c
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf20]
mov eax, 0x1020
call fcn.1801585f0
sub rsp, rax
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1068], rbx
mov r13, rdx
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x48], xmm1
movups xmmword [rsp + 0x58], xmm1
mov r15d, 0x20
mov r8d, r15d
lea rcx, [rsp + 0x68]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
lea rcx, [rbp + 0x600]
call fcn.18000d54c
nop
lea rdx, [rsi + 0x10]
lea rcx, [rbp + 0x600]
call fcn.18000d698
xor ebx, ebx
test al, al
je 0x1800175b6
lea r12d, [r15 + 0x21]
mov r8d, r12d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea r14, [rsi + 0x50]
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x18001710c
mov rdx, qword [r14]
lea r8, [rbp]
lea rcx, [rbp + 0x600]
call fcn.1800bc158
test al, al
je 0x1800175b6
mov dword [rbp + 0xf60], ebx
mov r9d, dword [rbp + 0x160]
mov byte [rsp + 0x28], bl
mov edi, 1
mov dword [rsp + 0x20], edi
lea r8d, [rdi + 3]
lea rdx, [rbp + 0xf60]
lea rcx, [rbp + 0x600]
call fcn.1800be4b8
test al, al
je 0x1800175b6
mov edx, dword [rbp + 0xf60]
lea rcx, [rbp + 0x600]
call fcn.1800bc61c
mov r9, rax
mov byte [rsp + 0x28], bl
mov dword [rsp + 0x20], edi
mov r8, r15
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x600]
call fcn.1800be4b8
test al, al
je 0x1800175b6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dl, dil
call fcn.18001c458
test al, al
je 0x18001726f
lea rcx, [rbp + 0x170]
call fcn.18000d54c
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x170]
call fcn.18000d78c
xor edx, edx
test al, al
jne 0x1800171ef
lea r9, [rsp + 0x30]
xor r8d, r8d
call fcn.18001c458
jmp 0x180017262
mov r8, r12
lea rcx, [rbp - 0x68]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x180017209
mov rdx, qword [r14]
lea r8, [rbp - 0x70]
lea rcx, [rbp + 0x170]
call fcn.1800bc0a0
test al, al
je 0x18001724f
mov ecx, dword [rbp + 0x158]
mov eax, r13d
sub eax, dword [rsi + 8]
cmp ecx, eax
je 0x18001724f
mov rax, qword [rsi + 0x78]
test rax, rax
je 0x180017239
mov byte [rax], dil
mov r8, rcx
add r8, qword [rsi + 8]
mov rdx, r14
lea rcx, [rbp + 0x170]
call fcn.1800c3068
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call fcn.18001c458
test al, al
jne 0x1800172da
lea rcx, [rbp + 0x170]
call fcn.1800bb5bc
nop
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x1800175b6
mov rcx, qword [rsp + 0x40]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
mov r12d, 0x1000
cmp rdx, r12
jb 0x1800175ae
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800175ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rbp + 0x170]
call fcn.1800bb5bc
nop
movabs r15, 0x2aaaaaaaaaaaaaab
mov r12d, 0x1000
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x18001734a
mov rcx, qword [rsp + 0x40]
sub rcx, r8
mov rax, r15
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, r12
jb 0x180017342
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800172d3
mov rcx, r8
call fcn.180157a14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
mov r8, qword [rsi + 8]
mov dl, dil
call fcn.18001c458
test al, al
je 0x18001755c
lea rcx, [rbp + 0xa90]
call fcn.18000d54c
nop
mov byte [rsp + 0x20], dil
xor r9d, r9d
mov r8, qword [rsi + 8]
xor edx, edx
lea rcx, [rbp + 0xa90]
call fcn.1800c0188
xor edx, edx
test al, al
je 0x180017540
lea r8d, [rdx + 0x41]
lea rcx, [rbp + 0x178]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x1800173c0
mov rdx, qword [r14]
lea r8, [rbp + 0x170]
lea rcx, [rbp + 0xa90]
call fcn.1800bc158
test al, al
je 0x18001753e
mov r8d, dword [rbp + 0x158]
cmp r8d, dword [rbp + 0x2c8]
je 0x18001740e
cmp byte [rbp + 0x1bc], bl
jne 0x18001740e
mov rax, qword [rsi + 0x78]
test rax, rax
je 0x1800173ff
mov byte [rax], dil
mov rdx, r14
lea rcx, [rbp + 0xa90]
call fcn.1800c31c8
lea r9, [rsp + 0x30]
mov r8, qword [rsi + 8]
xor edx, edx
call fcn.18001c458
test al, al
je 0x18001754f
lea rcx, [rbp + 0xa90]
call fcn.1800bb5bc
nop
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x18001748a
mov rcx, qword [rsp + 0x40]
sub rcx, r8
mov rax, r15
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, r12
jb 0x180017482
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800175a7
mov rcx, r8
call fcn.180157a14
mov r14d, 0x20
mov r8d, r14d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call qword [sym.imp.VCRUNTIME140.dll_memcmp]
test eax, eax
je 0x180017531
mov rax, qword [rsi + 0x78]
test rax, rax
je 0x1800174b7
mov byte [rax], dil
lea r9, [rbp + 0xf60]
mov r8d, 0x40
mov rdx, r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180017531
mov r8d, dword [rbp + 0x160]
lea r9, [rsp + 0x48]
mov rdx, qword [rsi + 8]
lea rcx, [rbp + 0x600]
call fcn.1800bdee4
test al, al
je 0x18001750d
mov rax, rbx
mov cl, byte [rsp + rax + 0x48]
cmp byte [rsp + rax + 0x68], cl
je 0x180017505
mov byte [rax + r13], cl
add rax, rdi
cmp rax, r14
jb 0x1800174f7
lea r9, [rbp + 0xf70]
mov r8d, dword [rbp + 0xf60]
mov rdx, r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne bl
jmp 0x1800175b6
mov rax, qword [rsi + 0x78]
test rax, rax
je 0x1800175b9
mov byte [rax], bl
jmp 0x1800175b9
xor edx, edx
lea r9, [rsp + 0x30]
mov r8, qword [rsi + 8]
call fcn.18001c458
nop
lea rcx, [rbp + 0xa90]
call fcn.1800bb5bc
nop
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x1800175b6
mov rcx, qword [rsp + 0x40]
sub rcx, r8
mov rax, r15
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, r12
jb 0x1800175ae
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800175ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.180157a14
mov dil, bl
lea rcx, [rbp + 0x600]
call fcn.1800bb5bc
mov al, dil
mov rbx, qword [rsp + 0x1068]
add rsp, 0x1020
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret