Function at 0x140054710
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x958
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x18e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x978]
mov rax, qword [0x140098020]
xor rax, rbp
mov qword [rbp + 0x928], rax
lea rcx, [0x1400cd014]
call fcn.140056ac0
cmp qword [rbp + 0x950], 0
je 0x140054774
mov rax, qword [rbp + 0x950]
mov rcx, qword [0x14009f170]
mov qword [rax], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x14009f168], eax
je 0x14005478c
mov eax, 0x10dd
jmp 0x140054b8c
cmp dword [0x14009f16c], 0
je 0x1400547a5
call fcn.1400544b0
mov eax, dword [0x14009f16c]
jmp 0x140054b8c
mov dword [rbp + 0x44], 0
mov rax, qword [0x14009f180]
mov qword [rbp + 8], rax
jmp 0x1400547c4
mov rax, qword [rbp + 8]
mov rax, qword [rax]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x14005488a
mov rax, qword [rbp + 8]
cmp dword [rax + 8], 0
je 0x140054819
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 0x20]
add rcx, 0x20
mov r8d, eax
mov rdx, rcx
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x18]
call fcn.140057f80
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 0x18]
mov qword [rax], rcx
jmp 0x140054885
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
add rax, 0x50
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 0x20]
add rcx, 0x58
mov rdx, rax
call fcn.140052d90
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
add rax, 0x58
mov rdx, rax
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x18]
call fcn.140052d00
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
mov rdx, qword [rax + 0x48]
mov rcx, qword [rbp + 0x68]
call fcn.140052c90
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 0x10]
mov qword [rcx], rax
jmp 0x1400547b9
mov rax, qword [0x14009f178]
mov qword [rbp + 0x28], rax
jmp 0x1400548a2
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x1400549fa
mov dword [rbp + 0xc0], 0x100001
lea rdx, [rbp + 0x90]
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400549f5
mov rax, qword [0x14009f180]
mov qword [rbp + 8], rax
jmp 0x1400548ec
mov rax, qword [rbp + 8]
mov rax, qword [rax]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x1400549f5
mov rax, qword [rbp + 8]
cmp dword [rax + 8], 0
je 0x140054975
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
cmp qword [rbp + 0x188], rax
jb 0x140054973
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
add rax, 8
cmp qword [rbp + 0x188], rax
jae 0x140054973
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
mov rcx, qword [rbp + 0x188]
sub rcx, rax
mov rax, rcx
movzx edx, al
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x20]
call fcn.140052020
movzx eax, al
mov rcx, qword [rbp + 8]
add rax, qword [rcx + 0x18]
mov qword [rbp + 0x188], rax
lea rdx, [rbp + 0x90]
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x1400549f0
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x18]
cmp qword [rbp + 0x188], rax
jb 0x1400549f0
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
mov rcx, qword [rbp + 8]
add rax, qword [rcx + 0x18]
cmp qword [rbp + 0x188], rax
jae 0x1400549f0
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x18]
mov rcx, qword [rbp + 0x188]
sub rcx, rax
mov rax, rcx
movzx eax, al
mov edx, eax
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x20]
call fcn.140051f90
cdqe
mov rcx, qword [rbp + 8]
add rax, qword [rcx + 0x20]
mov qword [rbp + 0x188], rax
lea rdx, [rbp + 0x90]
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x1400548e1
jmp 0x140054897
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp + 0x578], rax
mov rax, qword [0x14009f180]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140054adb
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rbp + 0x594]
mov rcx, qword [rbp + 8]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
mov r8d, eax
mov rax, qword [rbp + 8]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rbp + 0x578]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rax, qword [rbp + 8]
cmp dword [rax + 8], 0
je 0x140054aa1
mov rax, qword [rbp + 8]
cmp qword [rax + 0x20], 0
je 0x140054aa1
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x20]
call fcn.140052b80
mov rax, qword [rbp + 8]
mov qword [rax + 0x20], 0
mov dword [rbp + 0x44], 1
mov rax, qword [rbp + 8]
mov rax, qword [rax]
mov qword [rbp + 0x5b8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x8f8], rax
mov edx, 0x30
mov rcx, qword [rbp + 0x8f8]
call fcn.1400562a0
mov rax, qword [rbp + 0x5b8]
mov qword [rbp + 8], rax
jmp 0x140054a12
mov qword [0x14009f180], 0
cmp dword [rbp + 0x44], 0
je 0x140054afa
cmp dword [0x14009f164], 0
jne 0x140054afa
call fcn.140052bf0
call fcn.1400537b0
mov rax, qword [0x14009f178]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140054b56
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov qword [rbp + 0x5d8], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x918], rax
mov edx, 0x10
mov rcx, qword [rbp + 0x918]
call fcn.1400562a0
mov rax, qword [rbp + 0x5d8]
mov qword [rbp + 0x28], rax
jmp 0x140054b0a
mov qword [0x14009f178], 0
mov dword [0x14009f168], 0
cmp qword [rbp + 0x950], 0
je 0x140054b86
mov rax, qword [rbp + 0x950]
mov rcx, qword [0x14009f170]
mov qword [rax], rcx
mov eax, dword [0x14009f16c]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.d2d1.dll_Ordinal_2
call fcn.140056a4c
mov rax, rdi
mov rcx, qword [rbp + 0x928]
xor rcx, rbp
call fcn.140056280
lea rsp, [rbp + 0x938]
pop rdi
pop rbp
ret