Function at 0x100019d78
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
mov rbx, rdx
mov rdi, rcx
mov dword [rax + 8], r14d
cmp rcx, r14
je 0x10001a088
cmp rdx, r14
je 0x10001a088
call fcn.1000198f8
lea r15d, [r14 + 1]
cmp eax, r15d
jne 0x100019eea
call qword [sym.imp.msvcrt.dll___iob_func]
add rax, 0x30
cmp rdi, rax
jne 0x100019ddb
mov ecx, 0xfffffff5
jmp 0x100019df3
call qword [sym.imp.msvcrt.dll___iob_func]
add rax, 0x60
cmp rdi, rax
jne 0x100019ed1
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rbx
mov dword [rsp + 0x70], r14d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x70]
mov rdx, rbx
mov rcx, r12
mov r8d, eax
mov edi, eax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
cmp eax, r14d
je 0x100019e30
cmp edi, dword [rsp + 0x70]
je 0x100019e8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x100019eb3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, r14d
mov ebp, eax
cmp eax, r14d
jbe 0x100019e8d
mov r13d, 0x400
mov eax, edi
mov esi, ebp
lea r9, [rsp + 0x70]
sub esi, edi
lea rdx, [rbx + rax*2]
mov rcx, r12
cmp esi, r13d
mov qword [rsp + 0x20], r14
cmova esi, r13d
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
cmp eax, r14d
je 0x100019e95
cmp esi, dword [rsp + 0x70]
jne 0x100019e95
add edi, r13d
cmp edi, ebp
jb 0x100019e54
mov eax, r15d
jmp 0x10001a0a0
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, [rax + 0x60]
call fcn.1000189b8
call fcn.100018ab8
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, [rax + 0x60]
call fcn.1000189b8
call fcn.100018ab8
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r14d
jne 0x10001a09e
mov ecx, 0x42b
jmp 0x10001a098
mov edx, r15d
mov rcx, rbx
call fcn.100019670
mov r12, rax
cmp rax, r14
jne 0x100019f02
mov esi, r14d
jmp 0x100019f0d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea rcx, [0x100027760]
xor edx, edx
mov r8d, 0x100
call sub.msvcrt.dll_memset
mov ebp, r14d
cmp esi, r14d
jbe 0x100019e8d
mov eax, 0xff
mov ebx, esi
mov dword [rsp + 0x70], r14d
sub ebx, ebp
cmp ebx, eax
cmova ebx, eax
mov eax, ebp
lea r13, [r12 + rax*2]
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov r9d, ebx
mov r8, r13
xor edx, edx
mov ecx, eax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x70], eax
cmp eax, r14d
je 0x10001a06a
cmp eax, 0xff
jbe 0x100019fd4
add eax, 0xffffff01
cmp eax, 3
jbe 0x100019f94
shr eax, 1
sub ebx, eax
jmp 0x100019f96
dec ebx
mov dword [rsp + 0x70], r14d
cmp ebx, r14d
jne 0x100019f46
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r14d
jne 0x100019fb6
mov ecx, 0x42b
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, [rax + 0x30]
call fcn.1000189b8
call fcn.100018ab8
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, ebx
lea rcx, [0x100027760]
mov r8d, 0x100
cmovb ebx, eax
xor edx, edx
call sub.msvcrt.dll_memset
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov qword [rsp + 0x38], r14
mov ecx, eax
lea rax, [0x100027760]
mov qword [rsp + 0x30], r14
mov r9d, ebx
mov r8, r13
xor edx, edx
mov dword [rsp + 0x28], 0xff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x70], eax
cmp eax, r14d
je 0x10001a04c
lea rdx, [0x100027760]
mov rcx, rdi
add ebp, ebx
call qword [sym.imp.msvcrt.dll_fprintf]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fflush]
cmp esi, ebp
jmp 0x100019f27
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, [rax + 0x30]
call fcn.1000189b8
call fcn.100018ab8
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, [rax + 0x30]
call fcn.1000189b8
call fcn.100018ab8
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r14d
jne 0x10001a09e
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret