Function at 0x140054c00
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, [0x1400d2014]
call fcn.1400574b0
mov dword [rbp + 4], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1400a3d38], eax
je 0x140054c5c
mov eax, 0x10dd
jmp 0x140054e80
cmp dword [0x1400a3d3c], 0
je 0x140054c70
mov eax, dword [0x1400a3d3c]
jmp 0x140054e80
cmp qword [rbp + 0x1e8], 0
jne 0x140054c84
mov eax, 0x57
jmp 0x140054e80
cmp qword [rbp + 0x1e0], 0
jne 0x140054c98
mov eax, 6
jmp 0x140054e80
mov rax, qword [rbp + 0x1e0]
cmp qword [rax], 0
jne 0x140054ccb
mov dword [rbp + 4], 6
mov eax, dword [rbp + 4]
mov dword [0x1400a3d3c], eax
mov rax, qword [rbp + 0x1e0]
mov qword [0x1400a3d40], rax
mov eax, dword [rbp + 4]
jmp 0x140054e80
mov ecx, 0x30
call fcn.140056c98
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140054d3f
mov dword [rbp + 4], 8
mov eax, dword [rbp + 4]
mov dword [0x1400a3d3c], eax
cmp qword [rbp + 0x28], 0
je 0x140054d29
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x1a8], rax
mov edx, 0x30
mov rcx, qword [rbp + 0x1a8]
call fcn.140056c90
mov qword [rbp + 0x28], 0
mov rax, qword [rbp + 0x1e0]
mov qword [0x1400a3d40], rax
mov eax, dword [rbp + 4]
jmp 0x140054e80
xor edx, edx
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rax]
call fcn.140054bb0
mov qword [rbp + 0x48], rax
xor edx, edx
mov rcx, qword [rbp + 0x1e8]
call fcn.140054bb0
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 0x140054d9d
movsxd rax, dword [rbp + 0x64]
cmp rax, 0x1e
jbe 0x140054db9
mov dword [rbp + 4], 9
cmp dword [0x1400a3d30], 0
je 0x140054db4
jmp 0x140054cfe
jmp 0x140054cf5
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x1e8]
cmp qword [rax + 0x50], rcx
je 0x140054de6
mov dword [rbp + 4], 9
cmp dword [0x1400a3d30], 0
je 0x140054de1
jmp 0x140054cfe
jmp 0x140054cf5
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 0x140054e23
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x140054cf5
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 [0x1400a3d50]
mov qword [rax], rcx
mov rax, qword [rbp + 0x28]
mov qword [0x1400a3d50], rax
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.d2d1.dll_Ordinal_1
call fcn.14005743c
mov rax, rdi
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret