Function at 0x1401c2750
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 - 0x3fd0]
mov eax, 0x40d0
call fcn.1403e4120
sub rsp, rax
mov rax, qword [0x1405f98c0]
xor rax, rsp
mov qword [rbp + 0x3fc0], rax
mov r13, rcx
mov dword [rsp + 0x4c], r8d
xor ecx, ecx
mov qword [rbp - 0x68], rdx
mov edi, ecx
mov dword [rsp + 0x34], ecx
lea r15, [rbp - 0x40]
mov r12, r9
movzx eax, byte [r13 + 0x11c]
mov ebx, dword [r13 + 0x118]
movzx esi, byte [r13 + 0x11d]
movzx r14d, byte [r13 + 0x11e]
mov dword [r9], ecx
lea rcx, [0x140889630]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x38], ebx
mov byte [rsp + 0x31], sil
mov byte [rsp + 0x30], r14b
mov qword [rsp + 0x40], r15
call fcn.1401bc830
xor r8d, r8d
mov r11d, 0x2000
mov dword [rsp + 0x58], r8d
cmp dword [rsp + 0x4c], edi
jbe 0x1401c3ab2
mov edx, dword [rsp + 0x4c]
mov eax, r8d
mov qword [rsp + 0x60], rax
nop word [rax + rax]
mov rcx, qword [rbp - 0x68]
add rax, rax
cmp dword [0x1405ea074], 0
movups xmm0, xmmword [rcx + rax*8]
movups xmmword [rsp + 0x68], xmm0
mov eax, dword [rsp + 0x68]
jne 0x1401c2967
test eax, eax
je 0x1401c2967
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 0x1401c3b96
lea r15d, [rax*2 + 2]
mov esi, 0x2000
xor eax, eax
mov dword [rsp + 0x3c], r15d
cmp r15d, esi
seta al
mov dword [rsp + 0x34], eax
jbe 0x1401c2894
mov ecx, r15d
call fcn.1401b5af0
mov qword [rsp + 0x40], rax
jmp 0x1401c2899
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 0x1401c3b84
mov r15, qword [rsp + 0x40]
xor r14d, r14d
mov esi, r14d
mov r11d, 0x2000
mov ebx, edi
sub ebx, esi
cmp ebx, r11d
cmova ebx, r11d
cmp dword [r12], r14d
jne 0x1401c2915
mov rcx, qword [r13 + 0x110]
lea r9, [rsp + 0x78]
mov eax, esi
mov r8d, ebx
mov qword [rsp + 0x20], r14
lea rdx, [r15 + rax*2]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1401c290f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov r11d, 0x2000
add esi, ebx
cmp esi, edi
jb 0x1401c28d0
mov r15d, dword [rsp + 0x3c]
movzx r14d, byte [rsp + 0x30]
cmp r15d, r11d
jbe 0x1401c2944
mov rcx, qword [rsp + 0x40]
call fcn.1401b5ac0
lea rax, [rbp - 0x40]
mov r11d, 0x2000
mov qword [rsp + 0x40], rax
mov ebx, dword [rsp + 0x38]
xor r8d, r8d
movzx esi, byte [rsp + 0x31]
cmp r15d, r11d
mov eax, r8d
mov edi, r8d
cmovbe eax, dword [rsp + 0x34]
mov dword [rsp + 0x34], eax
jmp 0x1401c3a8a
mov ecx, r8d
mov dword [rsp + 0x3c], ecx
test eax, eax
je 0x1401c3a8e
nop word [rax + 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 0x1401c29da
not al
movzx eax, al
bsr r8d, eax
je 0x1401c2a18
cmp r8d, 7
jne 0x1401c29af
movzx r9d, dl
jmp 0x1401c2a1e
cmp r8d, 5
ja 0x1401c2a18
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 0x1401c29f4
and al, 0xc0
cmp al, 0x80
jne 0x1401c2a0d
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 0x1401c3a70
jmp 0x1401c2a23
dec ecx
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x3c], ecx
mov r9d, 0xfffd
mov dword [rsp + 0x38], r9d
test r14b, r14b
jne 0x1401c2a53
cmp r9d, 0x1b
je 0x1401c2a4b
cmp r9d, 0x9b
jne 0x1401c2da1
mov r14b, 4
mov byte [r13 + 0x11f], 0
jmp 0x1401c3a68
mov r14b, 2
jmp 0x1401c3a68
cmp r14b, 2
jne 0x1401c3001
lea eax, [r9 - 0x1b]
cmp eax, 0x48
ja case.0x1401c2a83.28
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x1c3bc8]
mov ecx, dword [rdx + rax*4 + 0x1c3bac]
add rcx, rdx
jmp rcx
mov r14b, 4
mov byte [r13 + 0x11f], 0
mov byte [rsp + 0x30], r14b
mov ecx, dword [rsp + 0x3c]
jmp 0x1401c3a6d
mov ecx, dword [rsp + 0x3c]
mov r14b, 8
jmp 0x1401c3a68
xor r14d, r14d
mov esi, r14d
mov ebx, edi
sub ebx, esi
cmp ebx, r11d
cmova ebx, r11d
cmp dword [r12], r14d
jne 0x1401c2af5
mov rcx, qword [r13 + 0x110]
lea r9, [rsp + 0x7c]
mov eax, esi
mov r8d, ebx
mov qword [rsp + 0x20], r14
lea rdx, [r15 + rax*2]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1401c2aef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov r11d, 0x2000
add esi, ebx
cmp esi, edi
jb 0x1401c2ab0
cmp dword [rsp + 0x34], r14d
je 0x1401c2b13
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
mov edi, r14d
movzx esi, word [reloc.WS2_32.dll_getsockopt]
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x50], r14d
cmp dword [r12], r14d
jne 0x1401c2be3
mov rcx, qword [r13 + 0x110]
movzx edx, si
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
je 0x1401c2bd9
mov rcx, qword [r13 + 0x110]
mov ebx, r14d
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
je 0x1401c2bd9
mov rcx, qword [r13 + 0x110]
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1401c2bd9
movsx eax, word [rbp - 0x60]
mov edx, 0x20
movsx r8d, word [rbp - 0x5e]
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 0x1401c2bce
mov r8d, dword [rsp + 0x54]
lea rax, [rsp + 0x54]
mov rcx, qword [r13 + 0x110]
mov r9d, ebx
movzx edx, si
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x1401c2bf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x1401c2b63
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
movzx esi, byte [rsp + 0x31]
mov ecx, dword [rsp + 0x3c]
jmp 0x1401c3a68
movsx eax, word [rbp - 0x60]
mov ecx, r14d
movsx edx, word [rbp - 0x50]
mov dword [0x1405ea050], eax
movsx eax, word [rbp - 0x54]
sub edx, eax
mov dword [0x1405ea048], r14d
movsx eax, word [rbp - 0x5a]
inc edx
sub eax, edx
mov dword [0x1405ea04c], edx
inc eax
test eax, eax
jle 0x1401c2c2b
mov dword [0x1405ea048], eax
mov ecx, eax
movsx r8d, word [rbp - 0x5e]
lea eax, [rdx + rcx]
cmp eax, r8d
jle 0x1401c2c43
mov ecx, r8d
sub ecx, edx
mov dword [0x1405ea048], ecx
test ecx, ecx
jns 0x1401c2be3
movzx esi, byte [rsp + 0x31]
mov ecx, dword [rsp + 0x3c]
mov dword [0x1405ea048], r14d
jmp 0x1401c3a68
xor r14d, r14d
mov esi, r14d
nop dword [rax]
nop word [rax + rax]
mov ebx, edi
sub ebx, esi
cmp ebx, r11d
cmova ebx, r11d
cmp dword [r12], r14d
jne 0x1401c2cb4
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x80]
mov eax, esi
mov r8d, ebx
mov qword [rsp + 0x20], r14
lea rdx, [r15 + rax*2]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1401c2cae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov r11d, 0x2000
add esi, ebx
cmp esi, edi
jb 0x1401c2c70
cmp dword [rsp + 0x34], r14d
je 0x1401c2cd2
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
mov r8, r12
mov dl, 1
mov rcx, r13
mov edi, r14d
call fcn.1401c2140
movzx esi, byte [rsp + 0x31]
xor r8d, r8d
mov ecx, dword [rsp + 0x3c]
mov dword [rsp + 0x34], r8d
mov byte [rsp + 0x30], r14b
jmp 0x1401c3a70
xor r14d, r14d
mov esi, r14d
nop dword [rax]
nop word [rax + rax]
mov ebx, edi
sub ebx, esi
cmp ebx, r11d
cmova ebx, r11d
cmp dword [r12], r14d
jne 0x1401c2d54
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x7c]
mov eax, esi
mov r8d, ebx
mov qword [rsp + 0x20], r14
lea rdx, [r15 + rax*2]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1401c2d4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov r11d, 0x2000
add esi, ebx
cmp esi, edi
jb 0x1401c2d10
cmp dword [rsp + 0x34], r14d
je 0x1401c2d72
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
mov r8, r12
mov dl, 1
mov rcx, r13
mov edi, r14d
call fcn.1401c2060
jmp 0x1401c2ce2
xor r14b, r14b
lea eax, [r9 - 0x40]
mov byte [rsp + 0x30], r14b
cmp eax, 0x1f
ja 0x1401c2da1
mov ecx, dword [rsp + 0x3c]
jmp 0x1401c3a6d
cmp r9d, 0xffff
jbe 0x1401c2db5
mov eax, 0xfffd
mov dword [rsp + 0x38], eax
jmp 0x1401c2dd6
cmp r9d, 0xa
je 0x1401c2f41
cmp r9d, 0xd
je 0x1401c2e86
cmp r9d, 0xffff
ja case.0x1401c2a83.27
mov eax, edi
mov rcx, r11
sub rcx, rax
cmp rcx, 1
jae 0x1401c2e65
xor r14d, r14d
mov esi, r14d
nop
mov ebx, edi
sub ebx, esi
cmp ebx, r11d
cmova ebx, r11d
cmp dword [r12], r14d
jne 0x1401c2e34
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x78]
mov eax, esi
mov r8d, ebx
mov qword [rsp + 0x20], r14
lea rdx, [r15 + rax*2]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1401c2e2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov r11d, 0x2000
add esi, ebx
cmp esi, edi
jb 0x1401c2df0
cmp dword [rsp + 0x34], r14d
movzx r14d, byte [rsp + 0x30]
je 0x1401c2e58
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov edi, r8d
mov dword [rsp + 0x34], r8d
jmp 0x1401c2e68
xor r8d, r8d
mov ebx, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x3c]
mov eax, edi
inc edi
xor sil, sil
mov byte [rsp + 0x31], sil
mov word [rbp + rax*2 - 0x40], bx
jmp 0x1401c3a74
cmp sil, 0xa
je 0x1401c2f2f
mov eax, edi
mov rcx, r11
sub rcx, rax
cmp rcx, 1
jae 0x1401c2f25
xor r14d, r14d
mov esi, r14d
nop dword [rax + rax]
mov ebx, edi
sub ebx, esi
cmp ebx, r11d
cmova ebx, r11d
cmp dword [r12], r14d
jne 0x1401c2ef4
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x70]
mov eax, esi
mov r8d, ebx
mov qword [rsp + 0x20], r14
lea rdx, [r15 + rax*2]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1401c2eee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov r11d, 0x2000
add esi, ebx
cmp esi, edi
jb 0x1401c2eb0
cmp dword [rsp + 0x34], r14d
movzx r14d, byte [rsp + 0x30]
je 0x1401c2f18
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
mov r9d, dword [rsp + 0x38]
xor eax, eax
mov edi, eax
mov dword [rsp + 0x34], eax
mov eax, edi
inc edi
mov word [rbp + rax*2 - 0x40], r9w
mov ecx, dword [rsp + 0x3c]
movzx esi, r9b
mov byte [rsp + 0x31], r9b
jmp 0x1401c3a6d
cmp sil, 0xd
je 0x1401c2e90
mov eax, edi
mov rcx, r11
sub rcx, rax
cmp rcx, 2
jae 0x1401c2fd5
xor r14d, r14d
mov esi, r14d
nop
mov ebx, edi
sub ebx, esi
cmp ebx, r11d
cmova ebx, r11d
cmp dword [r12], r14d
jne 0x1401c2fa4
mov rcx, qword [r13 + 0x110]
lea r9, [rbp - 0x74]
mov eax, esi
mov r8d, ebx
mov qword [rsp + 0x20], r14
lea rdx, [r15 + rax*2]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1401c2f9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov r11d, 0x2000
add esi, ebx
cmp esi, edi
jb 0x1401c2f60
cmp dword [rsp + 0x34], r14d
movzx r14d, byte [rsp + 0x30]
je 0x1401c2fc8
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
mov r9d, dword [rsp + 0x38]
xor eax, eax
mov edi, eax
mov dword [rsp + 0x34], eax
mov eax, edi
mov ecx, reloc.WS2_32.dll_listen
inc edi
mov byte [rsp + 0x31], r9b
movzx esi, r9b
mov word [rbp + rax*2 - 0x40], cx
mov ecx, 0xa
mov word [rbp + rdi*2 - 0x40], cx
inc edi
mov ecx, dword [rsp + 0x3c]
jmp 0x1401c3a6d
test r14b, 4
je 0x1401c39ee
test r14b, 0x10
jne 0x1401c39cd
lea eax, [r9 - 0x30]
cmp eax, 9
ja 0x1401c30ca
movzx eax, byte [r13 + 0x11f]
mov ebx, dword [rsp + 0x38]
test r14b, 0x20
jne 0x1401c3077
cmp al, 4
jb 0x1401c3049
or r14b, 0x10
mov byte [rsp + 0x30], r14b
xor r8d, r8d
jmp 0x1401c3a74
inc al
or r14b, 0x20
movzx ecx, al
xor r8d, r8d
mov byte [r13 + 0x11f], cl
lea eax, [r9 - 0x30]
mov byte [rsp + 0x30], r14b
mov word [r13 + rcx*2 + 0x11e], ax
mov ecx, dword [rsp + 0x3c]
jmp 0x1401c3a74
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 0x1401c30ad
mov ecx, dword [rsp + 0x3c]
or r14b, 0x10
mov byte [rsp + 0x30], r14b
xor r8d, r8d
jmp 0x1401c3a74
sub cx, 0x30
add cx, r9w
mov word [rdx + r13 + 0x11e], cx
xor r8d, r8d
mov ecx, dword [rsp + 0x3c]
jmp 0x1401c3a74
cmp r9d, 0x3b
jne 0x1401c311d
test r14b, 0x20
je 0x1401c30df
and r14b, 0xdf
jmp 0x1401c3a68
movzx eax, byte [r13 + 0x11f]
mov ebx, dword [rsp + 0x38]
cmp al, 4
jb 0x1401c3100
or r14b, 0x10
mov byte [rsp + 0x30], r14b
xor r8d, r8d
jmp 0x1401c3a74
inc al
movzx eax, al
xor r8d, r8d
mov byte [r13 + 0x11f], al
mov word [r13 + rax*2 + 0x11e], r8w
jmp 0x1401c3a74
cmp r9d, 0x3f
jne 0x1401c3140
test r14b, 0x20
jne 0x1401c3137
cmp byte [r13 + 0x11f], 0
je 0x1401c3a6d
or r14b, 0x10
jmp 0x1401c3a68
lea eax, [r9 - 0x40]
cmp eax, 0x3e
ja 0x1401c3137
movzx edx, byte [r13 + 0x11f]
test dl, dl
jne 0x1401c315b
cmp r9d, 0x5b
je 0x1401c3137
lea eax, [r9 - 0x41]
cmp eax, 0x34
ja case.0x1401c3183.73
lea r8, [0x140000000]
movzx eax, byte [r8 + rax + 0x1c3c54]
mov ecx, dword [r8 + rax*4 + 0x1c3c14]
add rcx, r8
jmp rcx
xor eax, eax
mov esi, eax
nop dword [rax]
mov eax, esi
mov ebx, edi
sub ebx, esi
mov r9, r12
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r15 + rax*2]
mov r8d, ebx
call fcn.1401c15f0
add esi, ebx
mov r11d, 0x2000
cmp esi, edi
jb 0x1401c3190
cmp dword [rsp + 0x34], 0
je 0x1401c31d3
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x34], ebx
cmp byte [r13 + 0x11f], bl
je 0x1401c31ee
movzx r9d, word [r13 + 0x120]
jmp 0x1401c31f4
mov r9d, 1
neg r9d
mov r8b, 1
xor edx, edx
mov qword [rsp + 0x28], r12
mov byte [rsp + 0x20], 1
mov rcx, r13
call fcn.1401c1990
movzx esi, byte [rsp + 0x31]
mov ecx, dword [rsp + 0x3c]
xor r8d, r8d
xor r14b, r14b
mov byte [rsp + 0x30], r14b
jmp 0x1401c3a70
xor eax, eax
mov esi, eax
nop dword [rax + rax]
mov eax, esi
mov ebx, edi
sub ebx, esi
mov r9, r12
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r15 + rax*2]
mov r8d, ebx
call fcn.1401c15f0
add esi, ebx
mov r11d, 0x2000
cmp esi, edi
jb 0x1401c3230
cmp dword [rsp + 0x34], 0
je 0x1401c3273
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x34], ebx
cmp byte [r13 + 0x11f], bl
je 0x1401c3291
movzx r9d, word [r13 + 0x120]
jmp 0x1401c31f7
mov r9d, 1
jmp 0x1401c31f7
xor r14d, r14d
mov esi, r14d
mov eax, esi
mov ebx, edi
sub ebx, esi
mov r9, r12
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r15 + rax*2]
mov r8d, ebx
call fcn.1401c15f0
add esi, ebx
mov r11d, 0x2000
cmp esi, edi
jb 0x1401c32a2
cmp dword [rsp + 0x34], r14d
je 0x1401c32e5
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
mov edi, r14d
mov dword [rsp + 0x34], r14d
cmp byte [r13 + 0x11f], r14b
je 0x1401c3309
movzx edx, word [r13 + 0x120]
xor r9d, r9d
mov r8b, 1
jmp 0x1401c31fc
mov edx, 1
xor r9d, r9d
movzx r8d, dl
jmp 0x1401c31fc
xor r14d, r14d
mov esi, r14d
mov eax, esi
mov ebx, edi
sub ebx, esi
mov r9, r12
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r15 + rax*2]
mov r8d, ebx
call fcn.1401c15f0
add esi, ebx
mov r11d, 0x2000
cmp esi, edi
jb 0x1401c3320
cmp dword [rsp + 0x34], r14d
je 0x1401c3363
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
mov edi, r14d
mov dword [rsp + 0x34], r14d
cmp byte [r13 + 0x11f], r14b
je 0x1401c3389
movzx edx, word [r13 + 0x120]
mov r8b, 1
neg edx
xor r9d, r9d
jmp 0x1401c31fc
mov edx, 1
mov r8b, 1
neg edx
xor r9d, r9d
jmp 0x1401c31fc
xor r14d, r14d
mov esi, r14d
mov eax, esi
mov ebx, edi
sub ebx, esi
mov r9, r12
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r15 + rax*2]
mov r8d, ebx
call fcn.1401c15f0
add esi, ebx
mov r11d, 0x2000
cmp esi, edi
jb 0x1401c33a1
cmp dword [rsp + 0x34], r14d
je 0x1401c33e4
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
mov edi, r14d
mov dword [rsp + 0x34], r14d
cmp byte [r13 + 0x11f], r14b
je 0x1401c3405
movzx r9d, word [r13 + 0x120]
xor r8d, r8d
jmp 0x1401c31fa
mov r9d, 1
xor r8d, r8d
jmp 0x1401c31fa
xor r14d, r14d
mov esi, r14d
nop dword [rax]
mov eax, esi
mov ebx, edi
sub ebx, esi
mov r9, r12
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r15 + rax*2]
mov r8d, ebx
call fcn.1401c15f0
add esi, ebx
mov r11d, 0x2000
cmp esi, edi
jb 0x1401c3420
cmp dword [rsp + 0x34], r14d
je 0x1401c3463
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
mov edi, r14d
mov dword [rsp + 0x34], r14d
cmp byte [r13 + 0x11f], r14b
je 0x1401c3487
movzx r9d, word [r13 + 0x120]
neg r9d
xor r8d, r8d
jmp 0x1401c31fa
mov r9d, 1
neg r9d
xor r8d, r8d
jmp 0x1401c31fa
xor eax, eax
mov esi, eax
nop dword [rax]
mov eax, esi
mov ebx, edi
sub ebx, esi
mov r9, r12
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r15 + rax*2]
mov r8d, ebx
call fcn.1401c15f0
add esi, ebx
mov r11d, 0x2000
cmp esi, edi
jb 0x1401c34a0
cmp dword [rsp + 0x34], 0
je 0x1401c34e3
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
xor ebx, ebx
cmp byte [r13 + 0x11f], 1
mov edi, ebx
mov dword [rsp + 0x34], ebx
jb 0x1401c3512
movzx eax, word [r13 + 0x120]
test ax, ax
je 0x1401c3512
movzx edx, ax
xor r9d, r9d
dec edx
xor r8d, r8d
jmp 0x1401c31fc
xor r9d, r9d
mov edx, ebx
xor r8d, r8d
jmp 0x1401c31fc
xor ecx, ecx
mov esi, ecx
nop dword [rax]
nop word [rax + rax]
mov ebx, edi
sub ebx, esi
cmp ebx, r11d
cmova ebx, r11d
cmp dword [r12], 0
jne 0x1401c3578
mov eax, esi
lea r9, [rsp + 0x5c]
mov qword [rsp + 0x20], rcx
mov r8d, ebx
mov rcx, qword [r13 + 0x110]
lea rdx, [r15 + rax*2]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1401c3570
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov r11d, 0x2000
xor ecx, ecx
add esi, ebx
cmp esi, edi
jb 0x1401c3530
cmp dword [rsp + 0x34], 0
je 0x1401c3596
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
movzx ecx, byte [r13 + 0x11f]
xor ebx, ebx
mov dword [rsp + 0x34], ebx
mov edi, ebx
cmp cl, 1
jb 0x1401c35c1
movzx eax, word [r13 + 0x120]
test ax, ax
je 0x1401c35c1
movzx r9d, ax
dec r9d
jmp 0x1401c35c4
mov r9d, ebx
cmp cl, 2
jb 0x1401c35ec
movzx eax, word [r13 + 0x122]
test ax, ax
je 0x1401c35ec
movzx edx, ax
dec edx
mov qword [rsp + 0x28], r12
xor r8d, r8d
mov byte [rsp + 0x20], bl
jmp 0x1401c3206
mov qword [rsp + 0x28], r12
mov edx, ebx
mov byte [rsp + 0x20], bl
xor r8d, r8d
jmp 0x1401c3206
xor eax, eax
mov esi, eax
mov eax, esi
mov ebx, edi
sub ebx, esi
mov r9, r12
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r15 + rax*2]
mov r8d, ebx
call fcn.1401c15f0
add esi, ebx
mov r11d, 0x2000
cmp esi, edi
jb 0x1401c3603
cmp dword [rsp + 0x34], 0
je 0x1401c3646
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x34], ebx
cmp byte [r13 + 0x11f], bl
je 0x1401c367b
movzx edx, word [r13 + 0x120]
cmp edx, 2
ja 0x1401c320e
mov r9, r12
mov r8b, 1
mov rcx, r13
call fcn.1401c1290
jmp 0x1401c320e
mov edx, ebx
mov r9, r12
mov r8b, 1
mov rcx, r13
call fcn.1401c1290
jmp 0x1401c320e
xor eax, eax
mov esi, eax
mov eax, esi
mov ebx, edi
sub ebx, esi
mov r9, r12
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r15 + rax*2]
mov r8d, ebx
call fcn.1401c15f0
add esi, ebx
mov r11d, 0x2000
cmp esi, edi
jb 0x1401c3694
cmp dword [rsp + 0x34], 0
je 0x1401c36d7
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x34], ebx
cmp byte [r13 + 0x11f], bl
je 0x1401c370c
movzx edx, word [r13 + 0x120]
cmp edx, 2
ja 0x1401c320e
mov r9, r12
xor r8d, r8d
mov rcx, r13
call fcn.1401c1290
jmp 0x1401c320e
mov edx, ebx
mov r9, r12
xor r8d, r8d
mov rcx, r13
call fcn.1401c1290
jmp 0x1401c320e
xor r14d, r14d
mov esi, r14d
nop word [rax + rax]
mov eax, esi
mov ebx, edi
sub ebx, esi
mov r9, r12
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r15 + rax*2]
mov r8d, ebx
call fcn.1401c15f0
add esi, ebx
mov r11d, 0x2000
cmp esi, edi
jb 0x1401c3730
cmp dword [rsp + 0x34], r14d
je 0x1401c3773
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
mov rdx, r12
mov rcx, r13
mov edi, r14d
call fcn.1401c22f0
movzx esi, byte [rsp + 0x31]
xor r8d, r8d
mov ecx, dword [rsp + 0x3c]
xor r14b, r14b
mov byte [rsp + 0x30], r14b
mov dword [rsp + 0x34], r8d
jmp 0x1401c3a70
xor r14d, r14d
mov esi, r14d
nop word [rax + rax]
mov eax, esi
mov ebx, edi
sub ebx, esi
mov r9, r12
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r15 + rax*2]
mov r8d, ebx
call fcn.1401c15f0
add esi, ebx
mov r11d, 0x2000
cmp esi, edi
jb 0x1401c37b0
cmp dword [rsp + 0x34], r14d
je 0x1401c37f3
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
mov r8, r12
xor edx, edx
mov rcx, r13
mov edi, r14d
call fcn.1401c2140
movzx esi, byte [rsp + 0x31]
xor r8d, r8d
mov ecx, dword [rsp + 0x3c]
xor r14b, r14b
mov byte [rsp + 0x30], r14b
mov dword [rsp + 0x34], r8d
jmp 0x1401c3a70
xor eax, eax
mov esi, eax
nop word [rax + rax]
mov eax, esi
mov ebx, edi
sub ebx, esi
mov r9, r12
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r15 + rax*2]
mov r8d, ebx
call fcn.1401c15f0
add esi, ebx
mov r11d, 0x2000
cmp esi, edi
jb 0x1401c3830
cmp dword [rsp + 0x34], 0
je 0x1401c3873
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov edi, r8d
mov dword [rsp + 0x34], r8d
cmp dword [r12], r8d
jne 0x1401c38b3
test dword [r13 + 0x58], 0x4000000
je 0x1401c38b3
movsx r9d, word [r13 + 0x12a]
mov rcx, r13
movsx edx, word [r13 + 0x128]
mov qword [rsp + 0x28], r12
mov byte [rsp + 0x20], dil
call fcn.1401c1990
xor r8d, r8d
movzx esi, byte [rsp + 0x31]
xor r14b, r14b
mov ecx, dword [rsp + 0x3c]
mov byte [rsp + 0x30], r14b
jmp 0x1401c3a70
cmp dl, 1
jne case.0x1401c3183.73
cmp word [r13 + 0x120], 0x19
jne case.0x1401c3183.73
xor r14d, r14d
mov esi, r14d
nop word [rax + rax]
mov eax, esi
mov ebx, edi
sub ebx, esi
mov r9, r12
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r15 + rax*2]
mov r8d, ebx
call fcn.1401c15f0
add esi, ebx
mov r11d, 0x2000
cmp esi, edi
jb 0x1401c38f0
cmp dword [rsp + 0x34], r14d
je 0x1401c3933
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
xor edx, edx
mov r8, r12
mov rcx, r13
mov edi, r14d
call fcn.1401c2270
movzx esi, byte [rsp + 0x31]
xor r8d, r8d
mov ecx, dword [rsp + 0x3c]
xor r14b, r14b
mov byte [rsp + 0x30], r14b
mov dword [rsp + 0x34], r8d
jmp 0x1401c3a70
cmp dl, 1
jne case.0x1401c3183.73
cmp word [r13 + 0x120], 0x19
jne case.0x1401c3183.73
xor r14d, r14d
mov esi, r14d
nop
mov eax, esi
mov ebx, edi
sub ebx, esi
mov r9, r12
cmp ebx, r11d
mov rcx, r13
cmova ebx, r11d
lea rdx, [r15 + rax*2]
mov r8d, ebx
call fcn.1401c15f0
add esi, ebx
mov r11d, 0x2000
cmp esi, edi
jb 0x1401c3980
cmp dword [rsp + 0x34], r14d
je 0x1401c39c3
mov rcx, r15
call fcn.1401b5ac0
lea r15, [rbp - 0x40]
mov qword [rsp + 0x40], r15
mov edx, 1
jmp 0x1401c3935
mov ebx, dword [rsp + 0x38]
lea eax, [r9 - 0x40]
cmp eax, 0x3e
ja 0x1401c3041
xor r14b, r14b
mov byte [rsp + 0x30], r14b
xor r8d, r8d
jmp 0x1401c3a74
test r14b, 8
je 0x1401c3ba5
test r14b, 0x40
je 0x1401c3a31
test r14b, r14b
js 0x1401c3a2b
cmp r9d, 0x22
jne 0x1401c3a0f
and r14b, 0xbf
jmp 0x1401c3a68
mov ebx, dword [rsp + 0x38]
cmp r9d, 0x5c
jne 0x1401c3041
or r14b, 0x80
mov byte [rsp + 0x30], r14b
xor r8d, r8d
jmp 0x1401c3a74
and r14b, 0x7f
jmp 0x1401c3a68
cmp r9d, 7
je 0x1401c3a65
cmp r9d, 0x5c
jne 0x1401c3a49
test r14b, 2
jne 0x1401c3a65
and r14b, 0xfd
jmp 0x1401c3a68
cmp r9d, 0x1b
jne 0x1401c3a55
or r14b, 2
jmp 0x1401c3a68
cmp r9d, 0x22
jne 0x1401c3a43
and r14b, 0x3d
or r14b, 0x40
jmp 0x1401c3a68
xor r14b, r14b
mov byte [rsp + 0x30], r14b
xor r8d, r8d
mov ebx, dword [rsp + 0x38]
inc ecx
mov r11d, 0x2000
mov dword [rsp + 0x3c], ecx
cmp ecx, dword [rsp + 0x68]
jb 0x1401c2980
mov edx, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
inc ecx
mov r15, qword [rsp + 0x40]
inc rax
mov dword [rsp + 0x58], ecx
mov qword [rsp + 0x60], rax
cmp ecx, edx
jb 0x1401c2810
xor r14d, r14d
mov eax, 0x2000
mov esi, r14d
nop dword [rax]
mov ebx, edi
sub ebx, esi
cmp ebx, eax
cmova ebx, eax
cmp dword [r12], r14d
jne 0x1401c3b02
mov rcx, qword [r13 + 0x110]
lea r9, [rsp + 0x5c]
mov eax, esi
mov r8d, ebx
mov qword [rsp + 0x20], r14
lea rdx, [r15 + rax*2]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1401c3afd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov eax, 0x2000
add esi, ebx
cmp esi, edi
jb 0x1401c3ac0
cmp dword [rsp + 0x34], r14d
movzx r14d, byte [rsp + 0x30]
je 0x1401c3b1d
mov rcx, r15
call fcn.1401b5ac0
mov eax, dword [rsp + 0x48]
lea rcx, [0x140889630]
mov byte [r13 + 0x11c], al
mov eax, dword [rsp + 0x38]
mov dword [r13 + 0x118], eax
movzx eax, byte [rsp + 0x31]
mov byte [r13 + 0x11d], al
mov byte [r13 + 0x11e], r14b
call fcn.1401bc800
mov eax, dword [r12]
neg eax
sbb eax, eax
mov rcx, qword [rbp + 0x3fc0]
xor rcx, rsp
call fcn.1403e3630
mov rbx, qword [rsp + 0x4120]
add rsp, 0x40d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp r15d, esi
mov r15, qword [rsp + 0x40]
jbe 0x1401c3b96
mov rcx, r15
call fcn.1401b5ac0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
jmp 0x1401c3ab2
call fcn.140405e44
int3