Function at 0x1400317e0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x140031808
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x140031906
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [rdi + 0x40], 1
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
lea rdx, str.CancelSynchronousIo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400318b8
mov rcx, qword [rdi + 8]
call rbx
test eax, eax
jne 0x140031890
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140031890
xor edx, edx
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140031890
mov edx, 0x3e8
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140031858
mov edx, 0xffffffff
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x1400318eb
mov edx, 0x3e8
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14003189f
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
lea rcx, [rdi + 0x18]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [rcx - 0x2d8ae030], edx
mov ecx, 0x31fd1487
invalid
mov r14b, 0xfa
lodsd eax, dword [rsi]
adc dl, bl
rcl dword [rax - 1], cl
invalid
mov bh, 0xf1
call 0xdb1d86aa
wait
adc edi, edi
jbe 0x140133404
xchg edi, eax
jge 0x14013347f
jl 0x140133411
call 0x13ea3e1ca
out dx, eax
invalid
sahf
jle 0x1401334a1
out dx, eax
xor edi, dword [rdx - 0x71]
jp 0x1401333ee
jg 0x140133428
mov dword [rsi + 0xc], edi
invalid
sub dword [rdi - 0x75], ebx
mov ebp, dword [rdi - 0x1d]
cdq
xchg rdi, rax
jl 0x1401334cc
loop 0x140133471
xchg edx, eax
loopne 0x14013345d
xchg edi, eax
inc dword [0x12e906a2c]
jge 0x14013346e
jge 0x14013346e
out dx, al
in al, 0x96
std
jno 0x1401334c0
or ebp, dword [rdx + 0x77]
outsb dx, byte [rsi]
and rax, 0xfffffffff00ba65e
invalid
sbb eax, 0x7c521ef4
invalid
xchg esp, eax
cmp dword [rax + 0x3e], 0x71
invalid
invalid
cmpsd dword [rsi], dword [rdi]
jb 0x140133512
neg byte [rdx]
mov edx, 0x57195bf8
pop rcx
out dx, eax
pop rsi
jne 0x140133516
cdq
fild qword [rax]
mov esp, 0x69974c7f
jle 0x1401334c2
test al, 0x56
cmp eax, 0xcde3d86b
push rsi
jno 0x140133528
pop r12
ficomp word [rdx + 0x74c2faa9]
ja 0x1401334d2
jge 0x1401334fe
invalid
sub byte [rax], cl
jle 0x14013350f
jge 0x1401334b9
mov edx, 0xed12e90d
or esi, edi
cmp dh, al
jnp 0x1401334f9
or eax, 0x9ed12e9
invalid
sti
jp 0x14013351e
shl dword [rsi - 0x40], cl
invalid
cli
push rax
ret 0x9db2
popfq
mov cl, 0x38
in al, dx
sub ch, byte [rsi + 0x6b74ddf2]
je 0x14013358b
invalid
xor bh, byte [rdi - 5]
pop rsp
test dword [rbx + rdi], 0xc1aae439
test byte [rbp - 0xf05c012], ah
jp 0x140133539
jg 0x1401335a3
and bh, byte [rsi]
sub ebp, edx
cdq
movabs byte [0x58232104cb279199], al
cmp r13b, byte [r11 + 0x1ba4813d]
and byte [0x1ba10a972], bh
sbb dword [rbx - 0x4c1d0e7b], eax
cli
call 0x10dbf8e9d
mov ch, 0xc0
int1
mov ebx, 0xe5b3bc2c
pop rbx
sbb ebx, dword [0x11e364565]
add esp, dword [rsi]
scasb al, byte [rdi]
invalid
invalid
xchg esi, eax
invalid