Function at 0x1400089d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0x40], 0
call qword [sym.imp.msvcrt.dll__kbhit]
test eax, eax
je 0x140008ef8
call qword [sym.imp.msvcrt.dll__getch]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 4
jne 0x140008a37
mov rax, qword [rsp + 0x100]
movzx eax, byte [rax + 0x51]
not eax
mov rcx, qword [rsp + 0x100]
mov byte [rcx + 0x51], al
mov rax, qword [rsp + 0x100]
movzx eax, byte [rax + 0x51]
mov edx, eax
lea rcx, [0x140002690]
call fcn.140005070
cmp dword [rsp + 0x38], 0xc
jne 0x140008ddd
lea rcx, [0x1400026d0]
call qword [sym.imp.msvcrt.dll_printf]
mov rax, qword [rsp + 0x100]
mov eax, dword [rax + 0x3260]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xc8
jb 0x140008a7a
mov eax, dword [rsp + 0x34]
sub eax, 0xc8
mov dword [rsp + 0x30], eax
jmp 0x140008a82
mov dword [rsp + 0x30], 0
jmp 0x140008a8e
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x100]
mov eax, dword [rax + 0x3260]
cmp dword [rsp + 0x30], eax
jae 0x140008ddd
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x100]
mov eax, dword [rcx + rax + 0x6c]
and eax, 0x80000000
test eax, eax
je 0x140008c3f
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x100]
mov eax, dword [rcx + rax + 0x6c]
btr eax, 0x1f
mov dword [rsp + 0xa0], eax
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov qword [rsp + 0xa8], rax
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x100]
movzx eax, word [rcx + rax + 0x62]
mov dword [rsp + 0xb0], eax
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x100]
movzx eax, word [rcx + rax + 0x60]
mov ecx, dword [rsp + 0xa0]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0xa8]
mov r9d, dword [rcx + rdx + 0x64]
mov ecx, dword [rsp + 0xb0]
mov r8d, ecx
mov edx, eax
lea rcx, [0x1400026e8]
call qword [sym.imp.msvcrt.dll_printf]
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x100]
movzx eax, word [rcx + rax + 0x62]
add rax, 0x10
cmp rax, 0x30
jbe 0x140008bdb
mov qword [rsp + 0xb8], 0x30
jmp 0x140008c09
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x100]
movzx eax, word [rcx + rax + 0x62]
add rax, 0x10
mov qword [rsp + 0xb8], rax
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x100]
lea rax, [rcx + rax + 0x70]
mov edx, dword [rsp + 0xb8]
mov rcx, rax
call fcn.140004c70
jmp 0x140008dd8
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov qword [rsp + 0xc0], rax
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov qword [rsp + 0xc8], rax
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov qword [rsp + 0xd0], rax
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x100]
movzx eax, word [rcx + rax + 0x62]
mov dword [rsp + 0xd8], eax
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x100]
movzx eax, word [rcx + rax + 0x60]
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0xc0]
mov ecx, dword [rcx + rdx + 0x6c]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0xc8]
mov ecx, dword [rcx + rdx + 0x68]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0xd0]
mov r9d, dword [rcx + rdx + 0x64]
mov ecx, dword [rsp + 0xd8]
mov r8d, ecx
mov edx, eax
lea rcx, [0x140002730]
call qword [sym.imp.msvcrt.dll_printf]
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x100]
movzx eax, word [rcx + rax + 0x62]
add rax, 0x10
cmp rax, 0x30
jbe 0x140008d79
mov qword [rsp + 0xe0], 0x30
jmp 0x140008da7
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x100]
movzx eax, word [rcx + rax + 0x62]
add rax, 0x10
mov qword [rsp + 0xe0], rax
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 0xc8
div ecx
mov eax, edx
mov eax, eax
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x100]
lea rax, [rcx + rax + 0x70]
mov edx, dword [rsp + 0xe0]
mov rcx, rax
call fcn.140004c70
jmp 0x140008a84
cmp dword [rsp + 0x38], 0x10
jne 0x140008ef8
lea rcx, [rsp + 0x68]
call fcn.14000b060
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x20]
mov rcx, qword [rsp + 0x100]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rax]
call qword [rax + 0x38]
mov rdx, rax
lea rcx, [0x140002778]
call qword [sym.imp.msvcrt.dll_printf]
lea rcx, [0x140002798]
call qword [sym.imp.msvcrt.dll_printf]
mov rax, qword [rsp + 0x100]
add rax, 8
lea rdx, [rsp + 0x78]
mov rcx, rax
call fcn.14000abf0
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x100]
add rax, 8
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.14000ac30
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14000b100
movzx eax, al
test eax, eax
je 0x140008ef8
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140008ea3
lea rax, [0x1400025d0]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x68]
call fcn.14000b090
mov qword [rsp + 0xe8], rax
lea rcx, [rsp + 0x68]
call fcn.14000b090
mov rcx, qword [rsp + 0xe8]
mov r9d, dword [rcx]
mov r8, qword [rsp + 0x60]
mov edx, dword [rax]
lea rcx, [0x1400027b0]
call qword [sym.imp.msvcrt.dll_printf]
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x68]
call fcn.14000b0b0
jmp 0x140008e4e
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0x3e8
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x4c]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
test eax, eax
je 0x140008f41
mov dword [rsp + 0x48], 0
jmp 0x140008f7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
cmp qword [rsp + 0x58], 0
jne 0x140008f7e
mov eax, dword [rsp + 0x48]
cmp eax, 0x102
jne 0x140008f63
jmp 0x1400089e5
lea rdx, [0x140002800]
mov ecx, dword [rsp + 0x48]
call fcn.140004f80
mov ecx, 1
call qword [sym.imp.msvcrt.dll_exit]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x20], 0
je 0x140008fbc
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rax]
mov r9d, dword [rsp + 0x4c]
mov r8, qword [rsp + 0x40]
mov edx, dword [rsp + 0x48]
call qword [rax + 8]
jmp 0x140008fd6
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll_free
mov rax, qword [rsp + 0x100]
cmp qword [rax], 0
je 0x14000904c
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
add rax, 0x44
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov edx, dword [rax]
lea rcx, [0x140002850]
call fcn.140005070
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x100]
call fcn.140007d80
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call sub.msvcrt.dll_free
mov rax, qword [rsp + 0x100]
mov qword [rax], 0
jmp 0x1400089e5