Function at 0x180050470
Capabilities:
Resume thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9b8]
sub rsp, 0xab8
mov rax, qword [0x18036d060]
xor rax, rsp
mov qword [rbp + 0x9a0], rax
mov qword [rbp + 8], r9
mov rdi, r8
mov qword [rbp], r8
mov rbx, rdx
mov r12, rcx
mov qword [rsp + 0x38], rcx
mov r15, qword [rbp + 0xa20]
mov qword [rsp + 0x30], r15
xor edx, edx
mov r8d, 0x2cc
lea rcx, [rbp + 0x60]
call fcn.180211600
xor edx, edx
mov r8d, 0x670
lea rcx, [rbp + 0x330]
call fcn.180211600
cmp qword [r12 + 0x40], 0
jne 0x1800504f6
mov eax, 0xc0000225
jmp 0x180050e04
mov r8, rdi
mov rdx, rbx
mov rcx, r12
call fcn.180051b80
test eax, eax
js 0x180050e04
mov rcx, qword [r12 + 0x40]
test rcx, rcx
je 0x18005051c
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [r15]
call fcn.18006eb20
test al, al
jne 0x18005053c
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x180050e04
xor r14d, r14d
mov qword [rbp + 0x50], r14
mov rax, qword [r12]
mov rcx, qword [rax + 0x10]
mov edx, r14d
cmp byte [rcx + 0x15], dl
sete dl
lea rcx, [rbp + 0x50]
call fcn.1800407d0
nop
mov rax, qword [r12]
mov rcx, qword [rax + 0x10]
mov rbx, qword [rbp + 0x50]
cmp byte [rcx + 0x15], r14b
jne 0x180050a0e
mov ecx, dword [0x18038583c]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x18038ca48], ecx
jle 0x180050692
lea rcx, [0x18038ca48]
call fcn.18007b370
cmp dword [0x18038ca48], 0xffffffff
jne 0x180050692
movaps xmm0, xmmword [0x18030d9d0]
movaps xmmword [0x18038ca50], xmm0
movaps xmm1, xmmword [0x18030da00]
movaps xmmword [0x18038ca60], xmm1
movaps xmm0, xmmword [0x18030d9e0]
movaps xmmword [0x18038ca70], xmm0
movaps xmm1, xmmword [0x18030d9f0]
movaps xmmword [0x18038ca80], xmm1
movaps xmm0, xmmword [0x18030da30]
movaps xmmword [0x18038ca90], xmm0
movaps xmm1, xmmword [0x18030da40]
movaps xmmword [0x18038caa0], xmm1
movaps xmm0, xmmword [0x18030da50]
movaps xmmword [0x18038cab0], xmm0
movaps xmm1, xmmword [0x18030da60]
movaps xmmword [0x18038cac0], xmm1
movaps xmm0, xmmword [0x18030da70]
movaps xmmword [0x18038cad0], xmm0
movaps xmm1, xmmword [0x18030da80]
movaps xmmword [0x18038cae0], xmm1
movaps xmm0, xmmword [0x18030da90]
movaps xmmword [0x18038caf0], xmm0
movaps xmm1, xmmword [0x18030daa0]
movaps xmmword [0x18038cb00], xmm1
movaps xmm0, xmmword [0x18030dab0]
movaps xmmword [0x18038cb10], xmm0
movaps xmm1, xmmword [0x18030dac0]
movaps xmmword [0x18038cb20], xmm1
movaps xmm0, xmmword [0x18030da20]
movaps xmmword [0x18038cb30], xmm0
lea rcx, [0x18038ca48]
call fcn.18007b310
mov rdx, qword [r15]
mov dword [rbp + 0x360], 0x100001
mov rax, qword [rdx]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x330]
mov rdx, qword [rdx + 0x10]
call qword [rax + 0x58]
mov edi, eax
test eax, eax
js 0x180050a44
lea rdi, [rbx + 0xa8]
movabs rax, 0xffffffff00000004
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], 0x78
mov rax, qword [rdi]
lea rsi, sym.LoaderKernel.dll_struct_asmjit::Operand_const_asmjit::noOperand
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x40]
lea r8, [0x18030da10]
mov edx, 0x261
mov rcx, rdi
call qword [rax + 0x30]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
mov r8, rsi
mov edx, 0x1f5
mov rcx, rdi
call qword [rax + 0x30]
mov r15d, r14d
lea rbx, [0x18038ca50]
movabs r12, 0x400000003
mov r13d, 0xffffffff
lea ecx, [r15*8]
mov qword [rbp + 0x40], r12
shl rcx, 0x20
add rcx, r13
mov qword [rbp + 0x48], rcx
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rbx
lea r8, [rbp + 0x40]
mov edx, 0x123
mov rcx, rdi
call qword [rax + 0x30]
inc r15d
add rbx, 0x10
cmp r15d, 0xf
jl 0x180050740
mov rbx, qword [rbp + 0x50]
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x40], rax
mov r12, qword [rsp + 0x38]
mov rax, qword [r12 + 0x68]
test rax, rax
je 0x1800507a6
mov rcx, qword [rax]
jmp 0x1800507a9
mov rcx, r14
mov qword [rbp - 0x50], 0xffffffffffff0001
mov qword [rbp - 0x48], 0xff
movabs r15, 0xffffffff00000003
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x28], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
mov dword [rbp - 0x60], 2
mov qword [rbp - 0x58], 8
mov qword [rbp - 0x30], rcx
lea rax, [rbp - 0x60]
mov qword [rbp + 0x30], rax
lea rax, [rbp - 8]
mov qword [rbp + 0x38], rax
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x10]
call fcn.1800163d0
nop
mov rax, qword [r12 + 0x58]
test rax, rax
je 0x18005081b
mov rax, qword [rax]
jmp 0x18005081e
mov rax, r14
mov qword [rsp + 0x50], 0xffffffffffff0001
mov qword [rsp + 0x58], 0xff
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x78], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r14
mov dword [rsp + 0x40], 2
mov qword [rsp + 0x48], 8
mov qword [rsp + 0x70], rax
mov r9d, 1
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [rbp + 0x40]
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1800508bd
mov rdx, qword [rbp - 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800508ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180050e2d
call fcn.18007b164
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r14
lea rcx, [rbp + 0x10]
call fcn.1800167e0
nop
lea r9, [0x18000fc50]
mov edx, 0x58
lea r8d, [rdx - 0x57]
lea rcx, [rbp - 0x60]
call fcn.18007bab8
mov dword [rsp + 0x20], 8
mov r8d, 2
mov rdx, rbx
mov rcx, r12
call fcn.180051dd0
mov r15d, r14d
lea rbx, [0x18038ca50]
movabs r12, 0x400000003
nop dword [rax]
lea ecx, [r15*8]
mov qword [rbp + 0x30], r12
shl rcx, 0x20
add rcx, r13
mov qword [rbp + 0x38], rcx
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x30]
mov r8, rbx
mov edx, 0x123
mov rcx, rdi
call qword [rax + 0x30]
inc r15d
add rbx, 0x10
cmp r15d, 0xf
jl 0x180050910
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
mov r8, rsi
mov edx, 0x1c9
mov rcx, rdi
call qword [rax + 0x30]
movabs rax, 0xffffffff00000004
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 0x78
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x30]
lea r8, [0x18030da10]
mov edx, 2
mov rcx, rdi
call qword [rax + 0x30]
mov eax, 0x25ff
mov word [rbp + 0x40], ax
mov rax, qword [rdi]
mov r8d, 2
lea rdx, [rbp + 0x40]
mov rcx, rdi
call qword [rax + 0x18]
mov dword [rbp + 0x40], r14d
mov rax, qword [rdi]
mov r8d, 4
lea rdx, [rbp + 0x40]
mov rcx, rdi
call qword [rax + 0x18]
mov rax, qword [rbp + 0x428]
mov qword [rbp + 0x40], rax
mov rax, qword [rdi]
mov r8d, 8
lea rdx, [rbp + 0x40]
mov rcx, rdi
call qword [rax + 0x18]
mov rbx, qword [rbp + 0x50]
mov r12, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
jmp 0x180050ce9
mov rdi, qword [r15]
xor edx, edx
mov r8d, 0x2c8
lea rcx, [rbp + 0x64]
call fcn.180211600
mov dword [rbp + 0x60], 0x100001
mov rax, qword [rdi]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x60]
mov rdx, qword [rdi + 0x10]
call qword [rax + 0x50]
mov edi, eax
test eax, eax
jns 0x180050a65
mov rsi, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsi + 8], eax
je 0x180050def
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x180050def
lea rdi, [rbx + 0xa8]
mov rax, qword [rdi]
lea rsi, sym.LoaderKernel.dll_struct_asmjit::Operand_const_asmjit::noOperand
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
mov r8, rsi
mov edx, 0x1f4
mov rcx, rdi
call qword [rax + 0x30]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
mov r8, rsi
mov edx, 0x1f5
mov rcx, rdi
call qword [rax + 0x30]
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
mov rcx, qword [r12 + 0x68]
test rcx, rcx
je 0x180050aca
mov rcx, qword [rcx]
jmp 0x180050acd
mov rcx, r14
mov qword [rbp - 0x50], 0xffffffffffff0001
mov qword [rbp - 0x48], 0xff
movabs rax, 0xffffffff00000003
mov qword [rbp - 0x40], rax
mov r13d, 0xffffffff
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x28], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
mov dword [rbp - 0x60], 2
mov qword [rbp - 0x58], 8
mov qword [rbp - 0x30], rcx
lea rax, [rbp - 0x60]
mov qword [rbp + 0x30], rax
lea rax, [rbp - 8]
mov qword [rbp + 0x38], rax
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x10]
call fcn.1800163d0
nop
mov rcx, qword [r12 + 0x58]
test rcx, rcx
je 0x180050b45
mov rcx, qword [rcx]
jmp 0x180050b48
mov rcx, r14
mov qword [rsp + 0x50], 0xffffffffffff0001
mov qword [rsp + 0x58], 0xff
movabs rax, 0xffffffff00000003
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x78], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r14
mov dword [rsp + 0x40], 2
mov qword [rsp + 0x48], 8
mov qword [rsp + 0x70], rcx
mov r9d, 1
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [rsp + 0x30]
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x180050bf2
mov rdx, qword [rbp - 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180050be1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180050e27
call fcn.18007b164
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r14
lea rcx, [rbp + 0x10]
call fcn.1800167e0
nop
lea r9, [0x18000fc50]
mov edx, 0x58
lea r8d, [rdx - 0x57]
lea rcx, [rbp - 0x60]
call fcn.18007bab8
movabs r13, 0xffffffff00000004
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], 4
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x30]
lea r8, [0x18030d910]
mov edx, 2
mov rcx, rdi
call qword [rax + 0x30]
mov dword [rsp + 0x20], r14d
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call fcn.180051dd0
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
mov r8, rsi
mov edx, 0x1c9
mov rcx, rdi
call qword [rax + 0x30]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
mov r8, rsi
mov edx, 0x1c7
mov rcx, rdi
call qword [rax + 0x30]
mov qword [rbp + 0x30], r13
movsxd rax, dword [rbp + 0x118]
mov qword [rbp + 0x38], rax
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
lea r8, [rbp + 0x30]
mov edx, 0x1f3
mov rcx, rdi
call qword [rax + 0x30]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
mov r8, rsi
mov edx, 0x21c
mov rcx, rdi
call qword [rax + 0x30]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + ioctlsocket]
mov r8, rax
mov r9d, dword [rdi + 0x60]
sub r9, qword [rdi + 0x48]
add r9, qword [rdi + 0x58]
mov rax, qword [r12 + 0x58]
test rax, rax
jne 0x180050d15
mov edi, 0xc00000a0
jmp 0x180050dab
mov rcx, qword [rax + 0x18]
mov rdx, qword [rax]
mov rsi, qword [rbp]
add rdx, rsi
mov rax, qword [rcx + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r14
call qword [rax + 0x20]
mov edi, eax
test eax, eax
js 0x180050dab
mov rax, qword [r12]
mov rcx, qword [rax + 0x10]
mov rax, qword [r12 + 0x58]
cmp byte [rcx + 0x15], 0
je 0x180050d7b
test rax, rax
je 0x180050d57
mov r14, qword [rax]
lea eax, [r14 + rsi]
mov dword [rbp + 0x118], eax
mov rdx, qword [r15]
mov rax, qword [rdx]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x60]
mov rdx, qword [rdx + 0x10]
call qword [rax + 0x60]
jmp 0x180050da9
test rax, rax
je 0x180050d83
mov r14, qword [rax]
lea rax, [r14 + rsi]
mov qword [rbp + 0x428], rax
mov rdx, qword [r15]
mov rax, qword [rdx]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x330]
mov rdx, qword [rdx + 0x10]
call qword [rax + 0x68]
mov edi, eax
mov rsi, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsi + 8], eax
je 0x180050dc3
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test edi, edi
js 0x180050def
mov edx, 0x4e20
mov rcx, qword [r12 + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9, qword [rbp + 8]
mov edx, 8
mov r8d, edx
lea rcx, [r12 + 0x68]
call fcn.180058890
mov edi, eax
test rbx, rbx
je 0x180050e02
mov r8, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r8]
mov eax, edi
mov rcx, qword [rbp + 0x9a0]
xor rcx, rsp
call fcn.18007b140
add rsp, 0xab8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18021e9c0
nop
call fcn.18021e9c0
int3