Function at 0x14000ba20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1401fa010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x10]
lea rdx, [rcx + 4]
cmp rdx, qword [rbx + 8]
jbe 0x14000bacc
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 0x14000ba99
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 0x14000ba99
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 0x14000bca1
mov r8d, 0x1a
lea rdx, str.Could_not_read_string_key_n
jmp 0x14000bc84
mov rax, qword [rbx]
xor edi, edi
mov ecx, dword [rcx + rax]
mov qword [rbx + 0x10], rdx
cmp ecx, 0x53545220
je 0x14000bb25
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 0x14000bb25
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 0x14000bb25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x10]
lea rdx, [rcx + 2]
cmp rdx, qword [rbx + 8]
jbe 0x14000bbad
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 0x14000bb7a
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 0x14000bb7a
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 0x14000bca1
mov r8d, 0x22
lea rdx, str.Could_not_read_string_stringCount_n
jmp 0x14000bc84
mov rax, qword [rbx]
movzx r9d, word [rcx + rax]
mov eax, 0xff
mov qword [rbx + 0x10], rdx
cmp r9w, ax
jbe 0x14000bbf7
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 0x14000bca1
mov r8d, 0x12
lea rdx, str.stringCount___255_n
jmp 0x14000bc84
mov edx, 1
mov word [rsi], r9w
cmp dx, r9w
ja 0x14000bc3b
nop word [rax + rax]
mov r8, qword [rbx + 0x10]
lea rax, [r8 + 2]
cmp rax, qword [rbx + 8]
ja 0x14000bc5a
mov rax, qword [rbx]
movzx ecx, dx
inc dx
movzx eax, word [r8 + rax]
mov word [rsi + rcx*2], ax
add qword [rbx + 0x10], 2
cmp dx, r9w
jbe 0x14000bc10
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140183d70
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 0x14000bca1
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 0x14000bca1
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x14000bc3d