Function at 0x140015080
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4000]
mov eax, 0x4100
call fcn.1401b4b30
sub rsp, rax
mov rax, qword [0x1402dd5c8]
xor rax, rsp
mov qword [rbp + 0x3ff0], rax
mov r13, rcx
mov qword [rbp - 0x40], rdx
xor ecx, ecx
mov dword [rsp + 0x4c], r8d
mov edi, ecx
mov dword [rsp + 0x34], ecx
lea r12, [rbp - 0x10]
mov edx, 0xffffffff
movzx eax, byte [r13 + 0x11c]
mov rsi, r9
mov ebx, dword [r13 + 0x118]
movzx r14d, byte [r13 + 0x11d]
movzx r15d, byte [r13 + 0x11e]
mov dword [r9], ecx
mov rcx, qword [0x1402f1308]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x38], ebx
mov byte [rsp + 0x31], r14b
mov byte [rsp + 0x30], r15b
mov qword [rsp + 0x40], r12
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x140016730
xor r8d, r8d
mov r11d, 0x2000
mov dword [rsp + 0x58], r8d
cmp dword [rsp + 0x4c], edi
jbe 0x140016647
mov edx, dword [rsp + 0x4c]
mov eax, r8d
mov qword [rsp + 0x60], rax
nop dword [rax + rax]
mov rcx, qword [rbp - 0x40]
add rax, rax
cmp dword [reloc.WS2_32.dll_accept], 0
movups xmm0, xmmword [rcx + rax*8]
movups xmmword [rsp + 0x68], xmm0
mov eax, dword [rsp + 0x68]
jne 0x1400152dd
test eax, eax
je 0x1400152dd
mov rbx, qword [rsp + 0x70]
mov r9d, eax
mov dword [rsp + 0x28], r8d
xor edx, edx
mov qword [rsp + 0x20], r8
mov ecx, 0xfde9
mov r8, rbx
call qword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov edi, eax
test eax, eax
je 0x14001663f
lea r12d, [rax*2 + 2]
xor edx, edx
mov eax, edx
mov dword [rsp + 0x3c], r12d
mov r14d, 0x2000
cmp r12d, r14d
seta al
mov dword [rsp + 0x34], eax
jbe 0x1400151e7
mov ecx, r12d
test r12d, r12d
je 0x1400151dd
call qword [fcn.1401da214]
mov qword [rsp + 0x40], rax
jmp 0x1400151ec
mov rax, rdx
mov qword [rsp + 0x40], rdx
jmp 0x1400151ec
mov rax, qword [rsp + 0x40]
mov r9d, dword [rsp + 0x68]
mov r8, rbx
mov dword [rsp + 0x28], edi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x140016617
mov r12, qword [rsp + 0x40]
xor r15d, r15d
mov r14d, r15d
mov r11d, 0x2000
nop dword [rax]
nop word [rax + rax]
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], r15d
jne 0x140015273
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x4c]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x14001526d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x140015230
movzx r15d, byte [rsp + 0x30]
cmp dword [rsp + 0x3c], r11d
jbe 0x1400152c8
call fcn.1401e1e4c
mov rcx, r12
mov ebx, dword [rax]
call qword [fcn.1401db01c]
call fcn.1401e1e4c
movzx r14d, byte [rsp + 0x31]
xor r8d, r8d
mov dword [rsp + 0x34], r8d
mov r11d, 0x2000
mov edi, r8d
mov dword [rax], ebx
lea rax, [rbp - 0x10]
mov ebx, dword [rsp + 0x38]
mov qword [rsp + 0x40], rax
jmp 0x1400165ee
mov ebx, dword [rsp + 0x38]
xor r8d, r8d
movzx r14d, byte [rsp + 0x31]
mov edi, r8d
jmp 0x1400165ee
mov ecx, r8d
mov dword [rsp + 0x3c], ecx
test eax, eax
je 0x1400165f2
nop dword [rax]
mov rdx, qword [rsp + 0x70]
mov r10d, dword [rsp + 0x48]
mov eax, ecx
movzx edx, byte [rax + rdx]
movzx eax, dl
test r10b, r10b
jne 0x14001534a
not al
movzx eax, al
bsr r8d, eax
je 0x140015388
cmp r8d, 7
jne 0x14001531f
movzx r9d, dl
jmp 0x14001538e
cmp r8d, 5
ja 0x140015388
mov ecx, 8
movzx eax, dl
sub ecx, r8d
mov r9d, 0xff
sar r9d, cl
mov r10d, 6
and r9d, eax
sub r10b, r8b
xor r8d, r8d
jmp 0x140015364
and al, 0xc0
cmp al, 0x80
jne 0x14001537d
movzx r9d, dl
mov eax, ebx
and r9d, 0x3f
shl eax, 6
add r10b, 0xff
or r9d, eax
mov ecx, dword [rsp + 0x3c]
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x48], r10d
test r10b, r10b
jne 0x1400165d4
jmp 0x140015393
dec ecx
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x3c], ecx
mov r9d, 0xfffd
mov dword [rsp + 0x38], r9d
test r15b, r15b
jne 0x1400153c3
cmp r9d, 0x1b
je 0x1400153bb
cmp r9d, 0x9b
jne 0x140015740
mov r15b, 4
mov byte [r13 + 0x11f], 0
jmp 0x1400165cc
mov r15b, 2
jmp 0x1400165cc
cmp r15b, 2
jne 0x1400159e4
lea eax, [r9 - 0x1b]
cmp eax, 0x48
ja case.0x1400153f3.28
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x16754]
mov ecx, dword [rdx + rax*4 + 0x16738]
add rcx, rdx
jmp rcx
mov r15b, 4
mov byte [r13 + 0x11f], 0
mov byte [rsp + 0x30], r15b
mov ecx, dword [rsp + 0x3c]
jmp 0x1400165d1
mov ecx, dword [rsp + 0x3c]
mov r15b, 8
jmp 0x1400165cc
xor r15d, r15d
mov r14d, r15d
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], r15d
jne 0x140015463
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x48]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x14001545d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x140015420
cmp dword [rsp + 0x34], r15d
je 0x140015497
call fcn.1401e1e4c
mov rcx, r12
mov ebx, dword [rax]
call qword [fcn.1401db01c]
call fcn.1401e1e4c
lea r12, [rbp - 0x10]
mov dword [rsp + 0x34], r15d
mov qword [rsp + 0x40], r12
mov dword [rax], ebx
mov edi, r15d
movzx r14d, word [reloc.WS2_32.dll_getsockopt]
mov dword [rsp + 0x50], r15d
cmp dword [rsi], r15d
jne 0x140015562
mov rcx, qword [r13 + 0x110]
movzx edx, r14w
call qword [sym.imp.KERNEL32.DLL_SetConsoleTextAttribute]
test eax, eax
je 0x14001555a
mov rcx, qword [r13 + 0x110]
mov ebx, r15d
mov edx, ebx
call qword [sym.imp.KERNEL32.DLL_SetConsoleCursorPosition]
test eax, eax
je 0x14001555a
mov rcx, qword [r13 + 0x110]
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14001555a
movsx eax, word [rbp - 0x30]
mov edx, 0x20
movsx r8d, word [rbp - 0x2e]
mov r9d, ebx
mov rcx, qword [r13 + 0x110]
imul r8d, eax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_FillConsoleOutputCharacterW]
test eax, eax
je 0x14001554f
mov r8d, dword [rsp + 0x54]
lea rax, [rsp + 0x54]
mov rcx, qword [r13 + 0x110]
mov r9d, ebx
movzx edx, r14w
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_FillConsoleOutputAttribute]
test eax, eax
jne 0x140015571
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
je 0x1400154e3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
movzx r14d, byte [rsp + 0x31]
mov ecx, dword [rsp + 0x3c]
jmp 0x1400165cc
movsx eax, word [rbp - 0x30]
mov ecx, r15d
movsx edx, word [rbp - 0x20]
mov dword [0x1402de8d8], eax
movsx eax, word [rbp - 0x24]
sub edx, eax
mov dword [0x1402de8c4], r15d
movsx eax, word [rbp - 0x2a]
inc edx
sub eax, edx
mov dword [0x1402de8c8], edx
inc eax
test eax, eax
jle 0x1400155ab
mov dword [0x1402de8c4], eax
mov ecx, eax
movsx r8d, word [rbp - 0x2e]
lea eax, [rdx + rcx]
cmp eax, r8d
jle 0x1400155c3
mov ecx, r8d
sub ecx, edx
mov dword [0x1402de8c4], ecx
test ecx, ecx
jns 0x140015562
movzx r14d, byte [rsp + 0x31]
mov ecx, dword [rsp + 0x3c]
mov dword [0x1402de8c4], r15d
jmp 0x1400165cc
xor r15d, r15d
mov r14d, r15d
nop dword [rax]
nop word [rax + rax]
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], r15d
jne 0x140015633
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x44]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x14001562d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x1400155f0
cmp dword [rsp + 0x34], r15d
je 0x140015667
call fcn.1401e1e4c
mov rcx, r12
mov ebx, dword [rax]
call qword [fcn.1401db01c]
call fcn.1401e1e4c
lea r12, [rbp - 0x10]
mov dword [rsp + 0x34], r15d
mov qword [rsp + 0x40], r12
mov dword [rax], ebx
mov r8, rsi
mov dl, 1
mov rcx, r13
mov edi, r15d
call fcn.140014df0
mov ecx, dword [rsp + 0x3c]
movzx r14d, byte [rsp + 0x31]
jmp 0x1400165cc
xor r15d, r15d
mov r14d, r15d
nop dword [rax]
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], r15d
jne 0x1400156d3
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x38]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x1400156cd
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x140015690
cmp dword [rsp + 0x34], r15d
je 0x140015707
call fcn.1401e1e4c
mov rcx, r12
mov ebx, dword [rax]
call qword [fcn.1401db01c]
call fcn.1401e1e4c
lea r12, [rbp - 0x10]
mov dword [rsp + 0x34], r15d
mov qword [rsp + 0x40], r12
mov dword [rax], ebx
mov r8, rsi
mov dl, 1
mov rcx, r13
mov edi, r15d
call fcn.140014f20
mov ecx, dword [rsp + 0x3c]
movzx r14d, byte [rsp + 0x31]
jmp 0x1400165cc
xor r15b, r15b
lea eax, [r9 - 0x40]
mov byte [rsp + 0x30], r15b
cmp eax, 0x1f
ja 0x140015740
mov ecx, dword [rsp + 0x3c]
jmp 0x1400165d1
cmp r9d, 0xffff
jbe 0x140015754
mov eax, 0xfffd
mov dword [rsp + 0x38], eax
jmp 0x140015775
cmp r9d, 0xa
je 0x140015903
cmp r9d, 0xd
je 0x140015834
cmp r9d, 0xffff
ja case.0x1400153f3.27
mov eax, edi
mov rcx, r11
sub rcx, rax
cmp rcx, 1
jae 0x140015813
xor r15d, r15d
mov r14d, r15d
nop dword [rax]
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], r15d
jne 0x1400157d4
mov rcx, qword [r13 + 0x110]
lea r9, [rsp + 0x78]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x1400157ce
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x140015790
cmp dword [rsp + 0x34], r15d
movzx r15d, byte [rsp + 0x30]
je 0x140015811
call fcn.1401e1e4c
mov rcx, r12
mov ebx, dword [rax]
call qword [fcn.1401db01c]
call fcn.1401e1e4c
lea r12, [rbp - 0x10]
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x40], r12
mov dword [rax], ebx
xor edi, edi
mov ebx, dword [rsp + 0x38]
xor r14b, r14b
mov ecx, dword [rsp + 0x3c]
mov eax, edi
inc edi
mov byte [rsp + 0x31], r14b
xor r8d, r8d
mov word [rbp + rax*2 - 0x10], bx
jmp 0x1400165d8
cmp r14b, 0xa
je 0x1400158f1
mov eax, edi
mov rcx, r11
sub rcx, rax
cmp rcx, 1
jae 0x1400158e7
xor r15d, r15d
mov r14d, r15d
nop word [rax + rax]
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], r15d
jne 0x1400158a3
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x80]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x14001589d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x140015860
cmp dword [rsp + 0x34], r15d
movzx r15d, byte [rsp + 0x30]
je 0x1400158e0
call fcn.1401e1e4c
mov rcx, r12
mov ebx, dword [rax]
call qword [fcn.1401db01c]
call fcn.1401e1e4c
lea r12, [rbp - 0x10]
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x40], r12
mov dword [rax], ebx
mov r9d, dword [rsp + 0x38]
xor edi, edi
mov eax, edi
inc edi
mov word [rbp + rax*2 - 0x10], r9w
mov ecx, dword [rsp + 0x3c]
movzx r14d, r9b
mov byte [rsp + 0x31], r9b
jmp 0x1400165d1
cmp r14b, 0xd
je 0x14001583e
mov eax, edi
mov rcx, r11
sub rcx, rax
cmp rcx, 2
jae 0x1400159b8
xor r15d, r15d
mov r14d, r15d
nop word [rax + rax]
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], r15d
jne 0x140015974
mov rcx, qword [r13 + 0x110]
lea r9, [rsp + 0x7c]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x14001596e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x140015930
cmp dword [rsp + 0x34], r15d
movzx r15d, byte [rsp + 0x30]
je 0x1400159b1
call fcn.1401e1e4c
mov rcx, r12
mov ebx, dword [rax]
call qword [fcn.1401db01c]
call fcn.1401e1e4c
lea r12, [rbp - 0x10]
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x40], r12
mov dword [rax], ebx
mov r9d, dword [rsp + 0x38]
xor edi, edi
mov eax, edi
mov ecx, reloc.WS2_32.dll_listen
inc edi
mov byte [rsp + 0x31], r9b
movzx r14d, r9b
mov word [rbp + rax*2 - 0x10], cx
mov ecx, 0xa
mov word [rbp + rdi*2 - 0x10], cx
inc edi
mov ecx, dword [rsp + 0x3c]
jmp 0x1400165d1
test r15b, 4
je 0x140016552
test r15b, 0x10
jne 0x140016531
lea eax, [r9 - 0x30]
cmp eax, 9
ja 0x140015aad
movzx eax, byte [r13 + 0x11f]
mov ebx, dword [rsp + 0x38]
test r15b, 0x20
jne 0x140015a5a
cmp al, 4
jb 0x140015a2c
or r15b, 0x10
mov byte [rsp + 0x30], r15b
xor r8d, r8d
jmp 0x1400165d8
inc al
or r15b, 0x20
movzx ecx, al
xor r8d, r8d
mov byte [r13 + 0x11f], cl
lea eax, [r9 - 0x30]
mov byte [rsp + 0x30], r15b
mov word [r13 + rcx*2 + 0x11e], ax
mov ecx, dword [rsp + 0x3c]
jmp 0x1400165d8
movzx eax, al
lea rdx, [rax*2]
movzx eax, word [rdx + r13 + 0x11e]
lea ecx, [rax + rax*4]
add ecx, ecx
cmp ecx, 0xffff
jbe 0x140015a90
mov ecx, dword [rsp + 0x3c]
or r15b, 0x10
mov byte [rsp + 0x30], r15b
xor r8d, r8d
jmp 0x1400165d8
sub cx, 0x30
add cx, r9w
mov word [rdx + r13 + 0x11e], cx
xor r8d, r8d
mov ecx, dword [rsp + 0x3c]
jmp 0x1400165d8
cmp r9d, 0x3b
jne 0x140015b00
test r15b, 0x20
je 0x140015ac2
and r15b, 0xdf
jmp 0x1400165cc
movzx eax, byte [r13 + 0x11f]
mov ebx, dword [rsp + 0x38]
cmp al, 4
jb 0x140015ae3
or r15b, 0x10
mov byte [rsp + 0x30], r15b
xor r8d, r8d
jmp 0x1400165d8
inc al
movzx eax, al
xor r8d, r8d
mov byte [r13 + 0x11f], al
mov word [r13 + rax*2 + 0x11e], r8w
jmp 0x1400165d8
cmp r9d, 0x3f
jne 0x140015b23
test r15b, 0x20
jne 0x140015b1a
cmp byte [r13 + 0x11f], 0
je 0x1400165d1
or r15b, 0x10
jmp 0x1400165cc
lea eax, [r9 - 0x40]
cmp eax, 0x3e
ja 0x140015b1a
movzx edx, byte [r13 + 0x11f]
test dl, dl
jne 0x140015b3e
cmp r9d, 0x5b
je 0x140015b1a
lea eax, [r9 - 0x41]
cmp eax, 0x34
ja case.0x140015b66.73
lea r8, [0x140000000]
movzx eax, byte [r8 + rax + 0x167e0]
mov ecx, dword [r8 + rax*4 + 0x167a0]
add rcx, r8
jmp rcx
xor ecx, ecx
mov r14d, ecx
nop dword [rax]
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], 0
jne 0x140015bb5
mov eax, r14d
lea r9, [rbp - 0x7c]
mov qword [rsp + 0x20], rcx
mov r8d, ebx
mov rcx, qword [r13 + 0x110]
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x140015bad
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
xor ecx, ecx
add r14d, ebx
cmp r14d, edi
jb 0x140015b70
cmp dword [rsp + 0x34], 0
je 0x140015bd5
mov rcx, r12
call fcn.1400109d0
lea r12, [rbp - 0x10]
mov qword [rsp + 0x40], r12
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x34], ebx
cmp byte [r13 + 0x11f], bl
je 0x140015bf0
movzx r9d, word [r13 + 0x120]
jmp 0x140015bf6
mov r9d, 1
neg r9d
mov r8b, 1
xor edx, edx
mov qword [rsp + 0x28], rsi
mov byte [rsp + 0x20], 1
mov rcx, r13
call fcn.140014640
movzx r14d, byte [rsp + 0x31]
mov ecx, dword [rsp + 0x3c]
xor r8d, r8d
xor r15b, r15b
mov byte [rsp + 0x30], r15b
jmp 0x1400165d4
xor r15d, r15d
mov r14d, r15d
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], r15d
jne 0x140015c73
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x78]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x140015c6d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x140015c30
cmp dword [rsp + 0x34], r15d
je 0x140015c93
mov rcx, r12
call fcn.1400109d0
lea r12, [rbp - 0x10]
mov qword [rsp + 0x40], r12
mov edi, r15d
mov dword [rsp + 0x34], r15d
cmp byte [r13 + 0x11f], r15b
je 0x140015cb1
movzx r9d, word [r13 + 0x120]
jmp 0x140015bf9
mov r9d, 1
jmp 0x140015bf9
xor r15d, r15d
mov r14d, r15d
nop dword [rax]
nop word [rax + rax]
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], r15d
jne 0x140015d13
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x74]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x140015d0d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x140015cd0
cmp dword [rsp + 0x34], r15d
je 0x140015d33
mov rcx, r12
call fcn.1400109d0
lea r12, [rbp - 0x10]
mov qword [rsp + 0x40], r12
mov edi, r15d
mov dword [rsp + 0x34], r15d
cmp byte [r13 + 0x11f], r15b
je 0x140015d57
movzx edx, word [r13 + 0x120]
xor r9d, r9d
mov r8b, 1
jmp 0x140015bfe
mov edx, 1
xor r9d, r9d
movzx r8d, dl
jmp 0x140015bfe
xor r15d, r15d
mov r14d, r15d
nop
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], r15d
jne 0x140015db3
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x70]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x140015dad
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x140015d70
cmp dword [rsp + 0x34], r15d
je 0x140015dd3
mov rcx, r12
call fcn.1400109d0
lea r12, [rbp - 0x10]
mov qword [rsp + 0x40], r12
mov edi, r15d
mov dword [rsp + 0x34], r15d
cmp byte [r13 + 0x11f], r15b
je 0x140015df9
movzx edx, word [r13 + 0x120]
mov r8b, 1
neg edx
xor r9d, r9d
jmp 0x140015bfe
mov edx, 1
mov r8b, 1
neg edx
xor r9d, r9d
jmp 0x140015bfe
xor r15d, r15d
mov r14d, r15d
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], r15d
jne 0x140015e54
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x6c]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x140015e4e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x140015e11
cmp dword [rsp + 0x34], r15d
je 0x140015e74
mov rcx, r12
call fcn.1400109d0
lea r12, [rbp - 0x10]
mov qword [rsp + 0x40], r12
mov edi, r15d
mov dword [rsp + 0x34], r15d
cmp byte [r13 + 0x11f], r15b
je 0x140015e95
movzx r9d, word [r13 + 0x120]
xor r8d, r8d
jmp 0x140015bfc
mov r9d, 1
xor r8d, r8d
jmp 0x140015bfc
xor r15d, r15d
mov r14d, r15d
nop dword [rax]
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], r15d
jne 0x140015ef3
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x68]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x140015eed
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x140015eb0
cmp dword [rsp + 0x34], r15d
je 0x140015f13
mov rcx, r12
call fcn.1400109d0
lea r12, [rbp - 0x10]
mov qword [rsp + 0x40], r12
mov edi, r15d
mov dword [rsp + 0x34], r15d
cmp byte [r13 + 0x11f], r15b
je 0x140015f37
movzx r9d, word [r13 + 0x120]
neg r9d
xor r8d, r8d
jmp 0x140015bfc
mov r9d, 1
neg r9d
xor r8d, r8d
jmp 0x140015bfc
xor ecx, ecx
mov r14d, ecx
nop dword [rax]
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], 0
jne 0x140015f95
mov eax, r14d
lea r9, [rbp - 0x64]
mov qword [rsp + 0x20], rcx
mov r8d, ebx
mov rcx, qword [r13 + 0x110]
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x140015f8d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
xor ecx, ecx
add r14d, ebx
cmp r14d, edi
jb 0x140015f50
cmp dword [rsp + 0x34], 0
je 0x140015fb5
mov rcx, r12
call fcn.1400109d0
lea r12, [rbp - 0x10]
mov qword [rsp + 0x40], r12
xor ebx, ebx
cmp byte [r13 + 0x11f], 1
mov edi, ebx
mov dword [rsp + 0x34], ebx
jb 0x140015fe4
movzx eax, word [r13 + 0x120]
test ax, ax
je 0x140015fe4
movzx edx, ax
xor r9d, r9d
dec edx
xor r8d, r8d
jmp 0x140015bfe
xor r9d, r9d
mov edx, ebx
xor r8d, r8d
jmp 0x140015bfe
xor ecx, ecx
mov r14d, ecx
nop word [rax + rax]
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], 0
jne 0x140016045
mov eax, r14d
lea r9, [rbp - 0x60]
mov qword [rsp + 0x20], rcx
mov r8d, ebx
mov rcx, qword [r13 + 0x110]
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x14001603d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
xor ecx, ecx
add r14d, ebx
cmp r14d, edi
jb 0x140016000
cmp dword [rsp + 0x34], 0
je 0x140016065
mov rcx, r12
call fcn.1400109d0
lea r12, [rbp - 0x10]
mov qword [rsp + 0x40], r12
movzx ecx, byte [r13 + 0x11f]
xor ebx, ebx
mov dword [rsp + 0x34], ebx
mov edi, ebx
cmp cl, 1
jb 0x140016090
movzx eax, word [r13 + 0x120]
test ax, ax
je 0x140016090
movzx r9d, ax
dec r9d
jmp 0x140016093
mov r9d, ebx
cmp cl, 2
jb 0x1400160bb
movzx eax, word [r13 + 0x122]
test ax, ax
je 0x1400160bb
movzx edx, ax
dec edx
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov byte [rsp + 0x20], bl
jmp 0x140015c08
mov qword [rsp + 0x28], rsi
mov edx, ebx
mov byte [rsp + 0x20], bl
xor r8d, r8d
jmp 0x140015c08
xor ecx, ecx
mov r14d, ecx
nop dword [rax]
nop word [rax + rax]
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], 0
jne 0x140016125
mov eax, r14d
lea r9, [rbp - 0x5c]
mov qword [rsp + 0x20], rcx
mov r8d, ebx
mov rcx, qword [r13 + 0x110]
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x14001611d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
xor ecx, ecx
add r14d, ebx
cmp r14d, edi
jb 0x1400160e0
cmp dword [rsp + 0x34], 0
je 0x140016145
mov rcx, r12
call fcn.1400109d0
lea r12, [rbp - 0x10]
mov qword [rsp + 0x40], r12
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x34], ebx
cmp byte [r13 + 0x11f], bl
je 0x14001617a
movzx edx, word [r13 + 0x120]
cmp edx, 2
ja 0x140015c10
mov r9, rsi
mov r8b, 1
mov rcx, r13
call fcn.1400147c0
jmp 0x140015c10
mov edx, ebx
mov r9, rsi
mov r8b, 1
mov rcx, r13
call fcn.1400147c0
jmp 0x140015c10
xor ecx, ecx
mov r14d, ecx
nop dword [rax]
nop dword [rax + rax]
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], 0
jne 0x1400161e5
mov eax, r14d
lea r9, [rbp - 0x58]
mov qword [rsp + 0x20], rcx
mov r8d, ebx
mov rcx, qword [r13 + 0x110]
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x1400161dd
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
xor ecx, ecx
add r14d, ebx
cmp r14d, edi
jb 0x1400161a0
cmp dword [rsp + 0x34], 0
je 0x140016205
mov rcx, r12
call fcn.1400109d0
lea r12, [rbp - 0x10]
mov qword [rsp + 0x40], r12
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x34], ebx
cmp byte [r13 + 0x11f], bl
je 0x14001623a
movzx edx, word [r13 + 0x120]
cmp edx, 2
ja 0x140015c10
mov r9, rsi
xor r8d, r8d
mov rcx, r13
call fcn.1400147c0
jmp 0x140015c10
mov edx, ebx
mov r9, rsi
xor r8d, r8d
mov rcx, r13
call fcn.1400147c0
jmp 0x140015c10
xor r15d, r15d
mov r14d, r15d
nop word [rax + rax]
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], r15d
jne 0x1400162a3
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x54]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x14001629d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x140016260
cmp dword [rsp + 0x34], r15d
je 0x1400162c3
mov rcx, r12
call fcn.1400109d0
lea r12, [rbp - 0x10]
mov qword [rsp + 0x40], r12
mov rdx, rsi
mov rcx, r13
mov edi, r15d
call fcn.140014a80
mov dword [rsp + 0x34], r15d
jmp 0x140015c10
xor r15d, r15d
mov r14d, r15d
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], r15d
jne 0x140016324
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x50]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x14001631e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x1400162e1
cmp dword [rsp + 0x34], r15d
je 0x140016344
mov rcx, r12
call fcn.1400109d0
lea r12, [rbp - 0x10]
mov qword [rsp + 0x40], r12
mov r8, rsi
xor edx, edx
mov rcx, r13
mov edi, r15d
call fcn.140014df0
mov dword [rsp + 0x34], r15d
jmp 0x140015c10
xor r15d, r15d
mov r14d, r15d
nop dword [rax]
nop dword [rax + rax]
mov ebx, edi
sub ebx, r14d
cmp ebx, r11d
cmova ebx, r11d
cmp dword [rsi], r15d
jne 0x1400163b4
mov rcx, qword [r13 + 0x110]
lea r9, [rsp + 0x5c]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x1400163ae
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov r11d, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x140016370
cmp dword [rsp + 0x34], r15d
je 0x1400163d4
mov rcx, r12
call fcn.1400109d0
lea r12, [rbp - 0x10]
mov qword [rsp + 0x40], r12
mov edi, r15d
mov dword [rsp + 0x34], r15d
cmp dword [rsi], r15d
jne 0x140015c10
test dword [r13 + 0x58], 0x4000000
je 0x140015c10
movsx r9d, word [r13 + 0x12a]
xor r8d, r8d
movsx edx, word [r13 + 0x128]
mov qword [rsp + 0x28], rsi
mov byte [rsp + 0x20], dil
jmp 0x140015c08
cmp dl, 1
jne case.0x140015b66.73
cmp word [r13 + 0x120], 0x19
jne case.0x140015b66.73
xor r15d, r15d
mov r14d, r15d
nop dword [rax]
nop word [rax + rax]
mov eax, r14d
mov ebx, edi
sub ebx, r14d
mov r9, rsi
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r12 + rax*2]
mov r8d, ebx
call fcn.1400145f0
add r14d, ebx
mov r11d, 0x2000
cmp r14d, edi
jb 0x140016440
cmp dword [rsp + 0x34], r15d
je 0x140016487
mov rcx, r12
call fcn.1400109d0
lea r12, [rbp - 0x10]
mov qword [rsp + 0x40], r12
xor edx, edx
mov r8, rsi
mov rcx, r13
mov edi, r15d
call fcn.140015000
movzx r14d, byte [rsp + 0x31]
xor r8d, r8d
mov ecx, dword [rsp + 0x3c]
xor r15b, r15b
mov byte [rsp + 0x30], r15b
mov dword [rsp + 0x34], r8d
jmp 0x1400165d4
cmp dl, 1
jne case.0x140015b66.73
cmp word [r13 + 0x120], 0x19
jne case.0x140015b66.73
xor r15d, r15d
mov r14d, r15d
nop dword [rax]
nop dword [rax + rax]
mov eax, r14d
mov ebx, edi
sub ebx, r14d
mov r9, rsi
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r12 + rax*2]
mov r8d, ebx
call fcn.1400145f0
add r14d, ebx
mov r11d, 0x2000
cmp r14d, edi
jb 0x1400164e0
cmp dword [rsp + 0x34], r15d
je 0x140016527
mov rcx, r12
call fcn.1400109d0
lea r12, [rbp - 0x10]
mov qword [rsp + 0x40], r12
mov edx, 1
jmp 0x140016489
mov ebx, dword [rsp + 0x38]
lea eax, [r9 - 0x40]
cmp eax, 0x3e
ja 0x140015a24
xor r15b, r15b
mov byte [rsp + 0x30], r15b
xor r8d, r8d
jmp 0x1400165d8
test r15b, 8
je 0x140016730
test r15b, 0x40
je 0x140016595
test r15b, r15b
js 0x14001658f
cmp r9d, 0x22
jne 0x140016573
and r15b, 0xbf
jmp 0x1400165cc
mov ebx, dword [rsp + 0x38]
cmp r9d, 0x5c
jne 0x140015a24
or r15b, 0x80
mov byte [rsp + 0x30], r15b
xor r8d, r8d
jmp 0x1400165d8
and r15b, 0x7f
jmp 0x1400165cc
cmp r9d, 7
je 0x1400165c9
cmp r9d, 0x5c
jne 0x1400165ad
test r15b, 2
jne 0x1400165c9
and r15b, 0xfd
jmp 0x1400165cc
cmp r9d, 0x1b
jne 0x1400165b9
or r15b, 2
jmp 0x1400165cc
cmp r9d, 0x22
jne 0x1400165a7
and r15b, 0x3d
or r15b, 0x40
jmp 0x1400165cc
xor r15b, r15b
mov byte [rsp + 0x30], r15b
xor r8d, r8d
mov ebx, dword [rsp + 0x38]
inc ecx
mov r11d, 0x2000
mov dword [rsp + 0x3c], ecx
cmp ecx, dword [rsp + 0x68]
jb 0x1400152f0
mov edx, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
inc ecx
mov r12, qword [rsp + 0x40]
inc rax
mov dword [rsp + 0x58], ecx
mov qword [rsp + 0x60], rax
cmp ecx, edx
jae 0x140016647
jmp 0x140015150
cmp r12d, r14d
jbe 0x14001663a
call fcn.1401e1e4c
mov r12, qword [rsp + 0x40]
mov rcx, r12
mov ebx, dword [rax]
call qword [fcn.1401db01c]
call fcn.1401e1e4c
mov dword [rax], ebx
jmp 0x14001663f
mov r12, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
xor r15d, r15d
mov eax, 0x2000
mov r14d, r15d
mov ebx, edi
sub ebx, r14d
cmp ebx, eax
cmova ebx, eax
cmp dword [rsi], r15d
jne 0x140016693
mov rcx, qword [r13 + 0x110]
lea r9, [rsp + 0x5c]
mov eax, r14d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [r12 + rax*2]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
test eax, eax
jne 0x14001668e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
mov eax, 0x2000
add r14d, ebx
cmp r14d, edi
jb 0x140016652
cmp dword [rsp + 0x34], r15d
movzx r15d, byte [rsp + 0x30]
je 0x1400166bf
call fcn.1401e1e4c
mov rcx, r12
mov ebx, dword [rax]
call qword [fcn.1401db01c]
call fcn.1401e1e4c
mov dword [rax], ebx
mov eax, dword [rsp + 0x48]
xor r8d, r8d
mov byte [r13 + 0x11c], al
mov eax, dword [rsp + 0x38]
mov dword [r13 + 0x118], eax
movzx eax, byte [rsp + 0x31]
lea edx, [r8 + 1]
mov byte [r13 + 0x11d], al
mov byte [r13 + 0x11e], r15b
mov rcx, qword [0x1402f1308]
call qword [sym.imp.KERNEL32.DLL_ReleaseSemaphore]
test eax, eax
je 0x140016730
mov eax, dword [rsi]
neg eax
sbb eax, eax
mov rcx, qword [rbp + 0x3ff0]
xor rcx, rsp
call fcn.1401b48e0
mov rbx, qword [rsp + 0x4150]
add rsp, 0x4100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401e9cd4
int3