Function at 0x140054210
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
lea rcx, [0x1400cd014]
call fcn.140056ac0
mov dword [rbp + 4], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x14009f168], eax
je 0x14005426c
mov eax, 0x10dd
jmp 0x140054490
cmp dword [0x14009f16c], 0
je 0x140054280
mov eax, dword [0x14009f16c]
jmp 0x140054490
cmp qword [rbp + 0x1e8], 0
jne 0x140054294
mov eax, 0x57
jmp 0x140054490
cmp qword [rbp + 0x1e0], 0
jne 0x1400542a8
mov eax, 6
jmp 0x140054490
mov rax, qword [rbp + 0x1e0]
cmp qword [rax], 0
jne 0x1400542db
mov dword [rbp + 4], 6
mov eax, dword [rbp + 4]
mov dword [0x14009f16c], eax
mov rax, qword [rbp + 0x1e0]
mov qword [0x14009f170], rax
mov eax, dword [rbp + 4]
jmp 0x140054490
mov ecx, 0x30
call fcn.1400562a8
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14005434f
mov dword [rbp + 4], 8
mov eax, dword [rbp + 4]
mov dword [0x14009f16c], eax
cmp qword [rbp + 0x28], 0
je 0x140054339
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x1a8], rax
mov edx, 0x30
mov rcx, qword [rbp + 0x1a8]
call fcn.1400562a0
mov qword [rbp + 0x28], 0
mov rax, qword [rbp + 0x1e0]
mov qword [0x14009f170], rax
mov eax, dword [rbp + 4]
jmp 0x140054490
xor edx, edx
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rax]
call fcn.1400541c0
mov qword [rbp + 0x48], rax
xor edx, edx
mov rcx, qword [rbp + 0x1e8]
call fcn.1400541c0
mov qword [rbp + 0x1e8], rax
mov rax, qword [rbp + 0x48]
movzx eax, byte [rax + 0x3e]
mov dword [rbp + 0x64], eax
movsxd rax, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x48]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp dword [rbp + 0x64], 0
je 0x1400543ad
movsxd rax, dword [rbp + 0x64]
cmp rax, 0x1e
jbe 0x1400543c9
mov dword [rbp + 4], 9
cmp dword [0x14009f160], 0
je 0x1400543c4
jmp 0x14005430e
jmp 0x140054305
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x1e8]
cmp qword [rax + 0x50], rcx
je 0x1400543f6
mov dword [rbp + 4], 9
cmp dword [0x14009f160], 0
je 0x1400543f1
jmp 0x14005430e
jmp 0x140054305
mov dword [rbp + 0xa4], 0
movsxd rax, dword [rbp + 0x64]
lea r9, [rbp + 0xa4]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140054433
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x140054305
mov rax, qword [rbp + 0x28]
mov dword [rax + 8], 1
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x1e0]
mov qword [rax + 0x10], rcx
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x48]
mov qword [rax + 0x20], rcx
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x88]
mov qword [rax + 0x18], rcx
mov rax, qword [rbp + 0x28]
mov ecx, dword [rbp + 0xa4]
mov dword [rax + 0x28], ecx
mov rax, qword [rbp + 0x28]
mov rcx, qword [0x14009f180]
mov qword [rax], rcx
mov rax, qword [rbp + 0x28]
mov qword [0x14009f180], rax
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.d2d1.dll_Ordinal_1
call fcn.140056a4c
mov rax, rdi
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret