Function at 0x1401f5330
Capabilities:
Manipulate console buffer

Disassembly:
sub rsp, 0x158
mov eax, dword [0x140274b90]
mov dword [rsp + 0x54], eax
mov byte [rsp + 0x40], 0xaa
lea rax, [rsp + 0x54]
mov qword [rsp + 0x68], rax
movzx eax, byte [rsp + 0x40]
cmp eax, 0xac
jge 0x1401f53a9
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x84], al
cmp byte [rsp + 0x84], 0xaa
je 0x1401f537e
cmp byte [rsp + 0x84], 0xc7
je 0x1401f539b
jmp 0x1401f53a7
mov eax, 0xbb4
mov word [rsp + 0x48], ax
mov byte [rsp + 0x41], 0x57
movzx eax, word [0x140273278]
mov word [rsp + 0x44], ax
jmp 0x1401f53a7
movzx eax, byte [rsp + 0x40]
add eax, 0x47
mov byte [rsp + 0x40], al
jmp 0x1401f541a
movsx eax, word [rsp + 0x44]
imul eax, eax, 0x3e9
movsx ecx, word [0x140273278]
cmp eax, ecx
jl 0x1401f5400
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [rsp + 0x94], eax
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x54]
mov eax, dword [rax]
and eax, ecx
mov rcx, qword [rsp + 0x68]
mov dword [rcx], eax
movsx eax, word [0x140273278]
or eax, 0x363
mov word [rsp + 0x44], ax
jmp 0x1401f541a
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetThreadPriorityBoost]
mov dword [rsp + 0x80], eax
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x42], al
movabs rax, 0x7596ae14bb3f4c
mov qword [rsp + 0x98], rax
movsx eax, word [rsp + 0x44]
mov dword [rsp + 0xb4], eax
cmp dword [rsp + 0xb4], 0x7ef
je 0x1401f5453
jmp 0x1401f5534
movzx eax, byte [rsp + 0x42]
mov byte [rsp + 0x88], al
cmp byte [rsp + 0x88], 0x4d
je 0x1401f547c
cmp byte [rsp + 0x88], 0xea
je 0x1401f551d
jmp 0x1401f5532
movzx eax, word [rsp + 0x48]
shl eax, 0xc
mov word [rsp + 0x48], ax
movzx eax, byte [rsp + 0x40]
sar eax, 0xc9
movzx ecx, byte [rsp + 0x42]
cmp eax, ecx
jne 0x1401f54f5
call fcn.1401f5330
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x54]
mov eax, dword [rax]
xor eax, ecx
mov rcx, qword [rsp + 0x68]
mov dword [rcx], eax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, 0xf3
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov dword [rsp + 0x104], eax
movsx eax, word [0x140273278]
add eax, 0x73d
mov word [rsp + 0x44], ax
mov eax, dword [0x140274b90]
mov ecx, dword [rsp + 0x54]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x68]
mov dword [rcx], eax
jmp 0x1401f5532
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov ecx, dword [0x140274b90]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x54], eax
jmp 0x1401f5558
lea rax, [rsp + 0x41]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x4c], 0x978d
movabs rax, 0x795bf0634dd53c
mov qword [rsp + 0xa8], rax
movzx eax, word [rsp + 0x48]
mov word [rsp + 0x58], ax
movsx eax, byte [rsp + 0x41]
imul eax, eax, 0x48
mov rcx, qword [rsp + 0x70]
movsx ecx, byte [rcx]
cmp eax, ecx
jle 0x1401f559f
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0xa0], rax
jmp 0x1401f5685
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov qword [rsp + 0xd0], rax
movabs rax, 0x711bb65c8604ec
cmp qword [rsp + 0xd0], rax
je 0x1401f55df
movabs rax, 0x7551bbd06edcb2
cmp qword [rsp + 0xd0], rax
je 0x1401f5649
jmp 0x1401f5685
movzx eax, byte [rsp + 0x40]
add eax, 0x3c
movzx ecx, byte [rsp + 0x42]
cmp eax, ecx
jg 0x1401f5647
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
add eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
mov r8d, 0x82
mov edx, 0xb0
lea rcx, [fcn.1401f4ec0]
call qword [sym.imp.KERNEL32.dll_EnumUILanguagesA]
mov dword [rsp + 0x80], eax
movzx eax, word [rsp + 0x48]
sub eax, 0x697
mov word [rsp + 0x58], ax
mov rax, qword [rsp + 0x78]
movsx eax, word [rax]
movsx ecx, word [rsp + 0x44]
or eax, ecx
mov rcx, qword [rsp + 0x78]
mov word [rcx], ax
jmp 0x1401f5685
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax]
sar eax, 4
mov byte [rsp + 0x41], al
call fcn.1401f5330
lea r9, [rsp + 0x98]
mov r8d, 0x59
mov edx, 0x94
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov dword [rsp + 0x100], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov ecx, dword [rsp + 0x54]
xor ecx, eax
mov eax, ecx
cmp eax, dword [0x140274b90]
jge 0x1401f5a76
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov dword [rsp + 0xbc], eax
mov rax, qword [rsp + 0x78]
movsx eax, word [rax]
movsx ecx, word [rsp + 0x44]
sub eax, ecx
movsx ecx, word [0x140273278]
cmp eax, ecx
jl 0x1401f576a
movsx eax, word [rsp + 0x44]
mov dword [rsp + 0x8c], eax
cmp dword [rsp + 0x8c], 0x411
je 0x1401f56f4
cmp dword [rsp + 0x8c], 0x441
je 0x1401f5755
jmp 0x1401f576a
movzx eax, byte [rsp + 0x42]
sub eax, 5
movzx ecx, byte [rsp + 0x40]
cmp eax, ecx
jl 0x1401f5753
mov r8d, 0xc0
mov edx, 1
lea rcx, str.C:FealtyPetticoat
call qword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
add eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax]
and eax, 0x3e
mov byte [rsp + 0x41], al
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax]
call fcn.1401f5b00
nop
jmp 0x1401f576a
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_FindNextChangeNotification]
mov dword [rsp + 0x94], eax
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
mov word [rsp + 0x50], ax
lea rax, [rsp + 0x42]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0x3c4
je 0x1401f57b5
cmp dword [rsp + 0x90], 0xf2a
je 0x1401f584e
jmp 0x1401f5965
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax]
mov byte [rsp + 0xb8], al
cmp byte [rsp + 0xb8], 0xaa
je 0x1401f57d3
jmp 0x1401f5802
lea rax, [rsp + 0x54]
mov qword [rsp + 0x128], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xe8], rax
jmp 0x1401f5849
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
sub eax, 0x7beb
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x70]
movzx r9d, byte [rax]
mov rax, qword [rsp + 0x60]
mov r8d, dword [rax]
mov rax, qword [rsp + 0x78]
movzx edx, word [rax]
movzx ecx, word [rsp + 0x58]
call fcn.1401f4ec0
movsx eax, word [rsp + 0x44]
movsx ecx, word [rsp + 0x50]
add eax, ecx
mov rcx, qword [rsp + 0x78]
mov word [rcx], ax
jmp 0x1401f5965
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x108]
mov r8d, 0xc9
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax]
mov byte [rsp + 0xb0], al
cmp byte [rsp + 0xb0], 0x2d
je 0x1401f589e
jmp 0x1401f58e2
movzx eax, byte [rsp + 0x40]
mov rcx, qword [rsp + 0xc8]
movzx ecx, byte [rcx]
add eax, ecx
mov byte [rsp + 0x42], al
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax]
movsx ecx, byte [rsp + 0x41]
sub eax, ecx
mov rcx, qword [rsp + 0x70]
mov byte [rcx], al
movsx eax, word [rsp + 0x50]
movsx ecx, word [0x140273278]
xor eax, ecx
mov word [rsp + 0x44], ax
jmp 0x1401f5965
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0x118], rcx
movzx ecx, al
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
sar rax, cl
mov rcx, qword [rsp + 0xd8]
mov qword [rcx], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xf1
mov r9d, 1
mov r8d, 0xdb
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_ReadDirectoryChangesW]
mov dword [rsp + 0x80], eax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x78]
movsx eax, word [rax]
movsx ecx, word [rsp + 0x44]
shl eax, cl
movsx ecx, word [rsp + 0x50]
movsx edx, word [0x140273278]
or ecx, edx
cmp eax, ecx
je 0x1401f5995
jmp 0x1401f59c3
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x4c]
imul ecx, dword [rax]
mov eax, ecx
mov rcx, qword [rsp + 0x120]
cmp eax, dword [rcx]
jae 0x1401f59c3
mov rax, qword [rsp + 0x78]
movsx eax, word [rax]
movsx ecx, word [rsp + 0x50]
and eax, ecx
mov word [rsp + 0x44], ax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
mov rax, qword [rax]
and rax, rcx
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax]
sub eax, 0x38
movsx ecx, byte [rsp + 0x41]
cmp eax, ecx
jge 0x1401f5a0b
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax]
movsx ecx, byte [rsp + 0x41]
add eax, ecx
mov rcx, qword [rsp + 0x70]
mov byte [rcx], al
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0xbc]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x128]
mov dword [rcx], eax
movzx eax, byte [rsp + 0x40]
mov rcx, qword [rsp + 0xc8]
movzx ecx, byte [rcx]
add eax, ecx
mov byte [rsp + 0x42], al
mov rdx, qword [rsp + 0xe8]
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax]
call fcn.1401f5d50
mov r9d, 0x9d
lea r8, [rsp + 0xc0]
mov edx, 0xee
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0xc0], eax
mov eax, dword [rsp + 0x4c]
shl eax, 4
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
mov rax, qword [rsp + 0xa0]
movabs rcx, 0x7bd204dce3329b
mov rax, qword [rax]
and rax, rcx
mov qword [rsp + 0xa8], rax
lea r9, [rsp + 0x98]
mov r8d, 0xb0
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov dword [rsp + 0x94], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
add eax, 0x27d3
mov dword [rsp + 0x4c], eax
mov eax, dword [0x140274b90]
add rsp, 0x158
ret