Function at 0x14000c530
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140213010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x10]
lea r8, [rcx + 4]
cmp r8, qword [rbx + 8]
jbe 0x14000c5dc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor edi, edi
mov dword [rsp + 0x30], edi
cmp rax, 0xffffffffffffffff
je 0x14000c5a9
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 0x21]
mov rcx, rax
lea rdx, str.Buffer_underflow_reading_uint32_t
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000c5a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x30], edi
cmp rax, 0xffffffffffffffff
je 0x14000c7b5
mov r8d, 0x1a
lea rdx, str.Could_not_read_string_key_n
jmp 0x14000c798
mov rax, qword [rbx]
xor edi, edi
mov ecx, dword [rcx + rax]
mov qword [rbx + 0x10], r8
cmp ecx, 0x53545220
je 0x14000c635
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x30], edi
cmp rax, 0xffffffffffffffff
je 0x14000c635
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 0x12]
mov rcx, rax
lea rdx, str.Key_STR__failed_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000c635
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x10]
lea rdx, [rcx + 2]
cmp rdx, qword [rbx + 8]
jbe 0x14000c6bd
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x30], edi
cmp rax, 0xffffffffffffffff
je 0x14000c68a
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
mov r8d, 0x1e
lea rdx, str.Buffer_underflow_reading_int16
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000c68a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x30], edi
cmp rax, 0xffffffffffffffff
je 0x14000c7b5
mov r8d, 0x22
lea rdx, str.Could_not_read_string_stringCount_n
jmp 0x14000c798
mov rax, qword [rbx]
movzx r9d, word [rcx + rax]
mov eax, 0xff
mov qword [rbx + 0x10], rdx
cmp r9w, ax
jbe 0x14000c707
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x30], edi
cmp rax, 0xffffffffffffffff
je 0x14000c7b5
mov r8d, 0x12
lea rdx, str.stringCount___255_n
jmp 0x14000c798
mov r8d, 1
mov word [rsi], r9w
cmp r8w, r9w
ja 0x14000c74f
mov rdx, qword [rbx + 0x10]
nop dword [rax + rax]
lea rax, [rdx + 2]
cmp rax, qword [rbx + 8]
ja 0x14000c76e
mov rax, qword [rbx]
movzx ecx, r8w
inc r8w
movzx eax, word [rdx + rax]
mov word [rsi + rcx*2], ax
mov rdx, qword [rbx + 0x10]
add rdx, 2
mov qword [rbx + 0x10], rdx
cmp r8w, r9w
jbe 0x14000c720
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14019ce50
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x30], edi
cmp rax, 0xffffffffffffffff
je 0x14000c7b5
mov r8d, 0x1e
lea rdx, str.Buffer_underflow_reading_int16
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000c7b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x14000c751