Function at 0x140017850
Capabilities:
Resume thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9a8]
sub rsp, 0xaa8
mov rax, qword [0x14030d6e8]
xor rax, rsp
mov qword [rbp + 0x990], rax
mov qword [rbp + 0x18], r9
mov rdi, r8
mov qword [rbp + 0x10], r8
mov rbx, rdx
mov r15, rcx
mov qword [rsp + 0x50], rcx
mov r12, qword [rbp + 0xa10]
mov qword [rbp + 0x40], r12
xor r14d, r14d
xor edx, edx
mov r8d, 0x2cc
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x670
lea rcx, [rbp + 0x320]
call sub.VCRUNTIME140.dll_memset
cmp qword [r15 + 0x40], r14
jne 0x1400178d6
mov eax, 0xc0000225
jmp 0x14001823c
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.140019180
test eax, eax
js 0x14001823c
mov rcx, qword [r15 + 0x40]
test rcx, rcx
je 0x1400178fb
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [r12]
call fcn.14002d4e0
test al, al
jne 0x14001791c
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x14001823c
mov qword [rbp + 0x38], r14
mov rax, qword [r15]
mov rcx, qword [rax + 0x10]
mov edx, r14d
cmp byte [rcx + 0x15], dl
sete dl
lea rcx, [rbp + 0x38]
call fcn.140002fb0
nop
mov rax, qword [r15]
mov rcx, qword [rax + 0x10]
mov rbx, qword [rbp + 0x38]
cmp byte [rcx + 0x15], 0
jne 0x140017d8d
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14030fb38], eax
jg 0x14001825f
mov rdx, qword [r12]
mov dword [rbp + 0x350], 0x100001
mov rax, qword [rdx]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x320]
mov rdx, qword [rdx + 0x10]
call qword [rax + 0x58]
mov edi, eax
test eax, eax
js 0x140017db3
lea rsi, [rbx + 0xa8]
movabs rax, 0xffffffff00000004
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 0x78
mov rax, qword [rsi]
lea rdi, sym.loader.exe_struct_asmjit::Operand_const_asmjit::noOperand
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x20]
lea r8, [0x1402e8220]
mov edx, 0x261
mov rcx, rsi
call qword [rax + Ordinal_50]
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
mov r8, rdi
mov edx, 0x1f5
mov rcx, rsi
call qword [rax + Ordinal_50]
mov r12d, r14d
lea r13, [0x14030fb40]
mov ebx, 0xffffffff
movabs r15, 0x400000003
nop dword [rax]
lea ecx, [r12*8]
mov qword [rbp + 0x20], r15
shl rcx, 0x20
add rcx, rbx
mov qword [rbp + 0x28], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, r13
lea r8, [rbp + 0x20]
mov edx, 0x123
mov rcx, rsi
call qword [rax + Ordinal_50]
inc r12d
add r13, 0x10
cmp r12d, 0xf
jl 0x140017a20
mov rbx, qword [rbp + 0x38]
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x20], rax
mov r15, qword [rsp + 0x50]
movsxd rax, dword [r15 + 0x9c]
add rax, rax
mov rcx, qword [r15 + rax*8 + 0x78]
test rcx, rcx
je 0x140017a90
mov rax, qword [rcx]
jmp 0x140017a93
mov rax, r14
mov qword [rbp - 0x40], 0xffffffffffff0001
mov qword [rbp - 0x38], 0xff
movabs r12, 0xffffffff00000003
mov qword [rbp - 0x30], r12
mov r13d, 0xffffffff
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x18], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
mov qword [rbp], r14
mov dword [rbp - 0x50], 2
mov qword [rbp - 0x48], 8
mov qword [rbp - 0x20], rax
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
lea rax, [rbp + 8]
mov qword [rbp + 0x30], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
lea r9, [rbp + 0x30]
lea r8, [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.14000aff0
nop
movsxd rax, dword [r15 + 0x9c]
add rax, rax
mov rax, qword [r15 + rax*8 + 0x58]
test rax, rax
je 0x140017b2c
mov rax, qword [rax]
jmp 0x140017b2f
mov rax, r14
mov qword [rsp + 0x68], 0xffffffffffff0001
mov qword [rsp + 0x70], 0xff
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x70], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r14
mov dword [rsp + 0x58], 2
mov qword [rsp + 0x60], 8
mov qword [rbp - 0x78], rax
mov r9d, 1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [rbp + reloc.WLDAP32.dll_Ordinal_32]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140017bcf
mov rdx, qword [rbp - 0x58]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017bbe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017bbe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140110974
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r14
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140017c41
mov rdx, qword [rsp + 0x38]
call fcn.14000b160
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rax, rcx
sar rax, 3
movabs rdx, 0x2e8ba2e8ba2e8ba3
imul rax, rdx
imul rdx, rax, 0x58
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017c2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017c2e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140110974
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
lea r9, [fcn.140002f50]
mov edx, 0x58
lea r8d, [rdx - 0x57]
lea rcx, [rbp - 0x50]
call fcn.140110d08
mov dword [rsp + 0x20], r14d
mov r8d, 1
mov rdx, rbx
mov rcx, r15
call fcn.140019400
mov r12d, r14d
lea rbx, [0x14030fb40]
movabs r15, 0x400000003
nop dword [rax]
nop dword [rax + rax]
lea ecx, [r12*8]
mov qword [rbp + 0x20], r15
shl rcx, 0x20
add rcx, r13
mov qword [rbp + 0x28], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x20]
mov r8, rbx
mov edx, 0x123
mov rcx, rsi
call qword [rax + Ordinal_50]
inc r12d
add rbx, 0x10
cmp r12d, 0xf
jl 0x140017c90
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
mov r8, rdi
mov edx, 0x1c9
mov rcx, rsi
call qword [rax + Ordinal_50]
movabs rax, 0xffffffff00000004
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 0x78
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x20]
lea r8, [0x1402e8220]
mov edx, 2
mov rcx, rsi
call qword [rax + Ordinal_50]
mov eax, 0x25ff
mov word [rbp + 0x30], ax
mov rax, qword [rsi]
mov r8d, 2
lea rdx, [rbp + 0x30]
mov rcx, rsi
call qword [rax + Ordinal_26]
mov dword [rbp + 0x30], r14d
mov rax, qword [rsi]
mov r8d, 4
lea rdx, [rbp + 0x30]
mov rcx, rsi
call qword [rax + Ordinal_26]
mov rax, qword [rbp + 0x418]
mov qword [rbp + 0x20], rax
mov rax, qword [rsi]
mov r8d, 8
lea rdx, [rbp + 0x20]
mov rcx, rsi
call qword [rax + Ordinal_26]
mov rbx, qword [rbp + 0x38]
mov r15, qword [rsp + 0x50]
mov r12, qword [rbp + 0x40]
jmp 0x1400180dd
mov rdx, qword [r12]
mov dword [rbp + 0x50], 0x100001
mov rax, qword [rdx]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x50]
mov rdx, qword [rdx + 0x10]
call qword [rax + 0x50]
mov edi, eax
test eax, eax
jns 0x140017dc1
mov rcx, qword [r12]
call fcn.14002d6c0
jmp 0x140018227
mov rax, qword [rbx + 0xa8]
lea rdi, sym.loader.exe_struct_asmjit::Operand_const_asmjit::noOperand
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
mov r8, rdi
mov edx, 0x1f4
lea rcx, [rbx + 0xa8]
call qword [rax + Ordinal_50]
mov rax, qword [rbx + 0xa8]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
mov r8, rdi
mov edx, 0x1f5
lea rcx, [rbx + 0xa8]
call qword [rax + Ordinal_50]
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
movsxd rax, dword [r15 + 0x9c]
add rax, rax
mov rax, qword [r15 + rax*8 + 0x78]
test rax, rax
je 0x140017e39
mov rax, qword [rax]
jmp 0x140017e3c
mov rax, r14
mov qword [rbp - 0x40], 0xffffffffffff0001
mov qword [rbp - 0x38], 0xff
movabs rsi, 0xffffffff00000003
mov qword [rbp - 0x30], rsi
mov r13d, 0xffffffff
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x18], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
mov qword [rbp], r14
mov dword [rbp - 0x50], 2
mov qword [rbp - 0x48], 8
mov qword [rbp - 0x20], rax
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
lea rax, [rbp + 8]
mov qword [rbp + 0x40], rax
lea rax, [rbp - 0x50]
mov qword [rbp + 0x20], rax
lea r9, [rbp + 0x40]
lea r8, [rbp + 0x20]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.14000aff0
nop
movsxd rax, dword [r15 + 0x9c]
add rax, rax
mov rax, qword [r15 + rax*8 + 0x58]
test rax, rax
je 0x140017ed3
mov rax, qword [rax]
jmp 0x140017ed6
mov rax, r14
mov qword [rsp + 0x68], 0xffffffffffff0001
mov qword [rsp + 0x70], 0xff
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x70], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r14
mov dword [rsp + 0x58], 2
mov qword [rsp + 0x60], 8
mov qword [rbp - 0x78], rax
mov r9d, 1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [rsp + 0x48]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140017f77
mov rdx, qword [rbp - 0x58]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017f66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017f66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140110974
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r14
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140017fe9
mov rdx, qword [rsp + 0x38]
call fcn.14000b160
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rax, rcx
sar rax, 3
movabs rdx, 0x2e8ba2e8ba2e8ba3
imul rax, rdx
imul rdx, rax, 0x58
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017fd6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017fd6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140110974
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
lea r9, [fcn.140002f50]
mov edx, 0x58
lea r8d, [rdx - 0x57]
lea rcx, [rbp - 0x50]
call fcn.140110d08
movabs r13, 0xffffffff00000004
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x48], 4
lea rsi, [rbx + 0xa8]
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x40]
lea r8, [0x1402e8120]
mov edx, 2
mov rcx, rsi
call qword [rax + Ordinal_50]
mov dword [rsp + 0x20], r14d
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call fcn.140019400
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
mov r8, rdi
mov edx, 0x1c9
mov rcx, rsi
call qword [rax + Ordinal_50]
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
mov r8, rdi
mov edx, 0x1c7
mov rcx, rsi
call qword [rax + Ordinal_50]
mov qword [rbp + 0x40], r13
movsxd rax, dword [rbp + 0x108]
mov qword [rbp + 0x48], rax
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
lea r8, [rbp + 0x40]
mov edx, 0x1f3
mov rcx, rsi
call qword [rax + Ordinal_50]
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
mov r8, rdi
mov edx, 0x21c
mov rcx, rsi
call qword [rax + Ordinal_50]
movsxd rsi, dword [r15 + 0x9c]
add rsi, rsi
mov rax, qword [rbx + 0xa8]
lea rcx, [rbx + 0xa8]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r8, rax
mov r9d, dword [rbx + 0x108]
sub r9, qword [rbx + 0xf0]
add r9, qword [rbx + 0x100]
mov rax, qword [r15 + rsi*8 + 0x58]
test rax, rax
jne 0x140018124
mov edi, 0xc00000a0
jmp 0x1400181c5
mov rcx, qword [rax + 0x18]
mov rdx, qword [rax]
mov rsi, qword [rbp + 0x10]
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 + reloc.WLDAP32.dll_Ordinal_32]
mov edi, eax
test eax, eax
js 0x1400181c5
mov rax, qword [r15]
mov rcx, qword [rax + 0x10]
movsxd rax, dword [r15 + 0x9c]
add rax, rax
cmp byte [rcx + 0x15], 0
mov rcx, qword [r15 + rax*8 + 0x58]
je 0x140018194
test rcx, rcx
je 0x14001816f
mov r14, qword [rcx]
lea eax, [r14 + rsi]
mov dword [rbp + 0x108], eax
mov rdx, qword [r12]
mov rax, qword [rdx]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x50]
mov rdx, qword [rdx + 0x10]
call qword [rax + 0x60]
jmp 0x1400181c3
test rcx, rcx
je 0x14001819c
mov r14, qword [rcx]
lea rax, [rsi + r14]
mov qword [rbp + 0x418], rax
mov rdx, qword [r12]
mov rax, qword [rdx]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x320]
mov rdx, qword [rdx + 0x10]
call qword [rax + 0x68]
mov edi, eax
mov rsi, qword [r12]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsi + 8], eax
je 0x1400181de
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test edi, edi
js 0x140018214
mov edx, 0x4e20
mov rcx, qword [r15 + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movsxd rcx, dword [r15 + 0x9c]
shl rcx, 4
add rcx, 0x78
add rcx, r15
mov r9, qword [rbp + 0x18]
xor edx, edx
lea r8d, [rdx + 8]
call fcn.140016a70
mov edi, eax
mov ecx, 1
sub ecx, dword [r15 + 0x9c]
mov dword [r15 + 0x9c], ecx
test rbx, rbx
je 0x14001823a
mov r8, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r8]
mov eax, edi
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.140110ce0
add rsp, 0xaa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x14030fb38]
call fcn.140110f60
cmp dword [0x14030fb38], 0xffffffff
jne 0x14001796f
movaps xmm0, xmmword [0x1402e81e0]
movaps xmmword [0x14030fb40], xmm0
movaps xmm1, xmmword [0x1402e8210]
movaps xmmword [0x14030fb50], xmm1
movaps xmm0, xmmword [0x1402e81f0]
movaps xmmword [0x14030fb60], xmm0
movaps xmm1, xmmword [0x1402e8200]
movaps xmmword [0x14030fb70], xmm1
movaps xmm0, xmmword [0x1402e8240]
movaps xmmword [0x14030fb80], xmm0
movaps xmm1, xmmword [0x1402e8250]
movaps xmmword [0x14030fb90], xmm1
movaps xmm0, xmmword [0x1402e8260]
movaps xmmword [0x14030fba0], xmm0
movaps xmm1, xmmword [0x1402e8270]
movaps xmmword [0x14030fbb0], xmm1
movaps xmm0, xmmword [0x1402e8280]
movaps xmmword [0x14030fbc0], xmm0
movaps xmm1, xmmword [0x1402e8290]
movaps xmmword [0x14030fbd0], xmm1
movaps xmm0, xmmword [0x1402e82a0]
movaps xmmword [0x14030fbe0], xmm0
movaps xmm1, xmmword [0x1402e82b0]
movaps xmmword [0x14030fbf0], xmm1
movaps xmm0, xmmword [0x1402e82c0]
movaps xmmword [0x14030fc00], xmm0
movaps xmm1, xmmword [0x1402e82d0]
movaps xmmword [0x14030fc10], xmm1
movaps xmm0, xmmword [0x1402e8230]
movaps xmmword [0x14030fc20], xmm0
lea rcx, [0x14030fb38]
call fcn.140110f00
jmp 0x14001796f