Function at 0x1400eca68
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov r12d, edx
mov rdi, rcx
mov qword [rsp + 0x80], rcx
mov dword [rsp + 0x58], edx
mov qword [rsp + 0x78], r8
mov r13, qword [rcx + 0x38]
mov qword [rsp + 0x68], r13
mov r15d, edx
mov r8d, 0x20006
and r15d, r8d
mov eax, dword [rcx + 8]
sub eax, 2
mov r14d, 1
xor ebx, ebx
cmp eax, r14d
ja 0x1400ecae4
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400ecae4
cmp word [rax], bx
je 0x1400ecae4
mov rsi, rax
mov qword [rsp + 0x60], rax
jmp 0x1400ecb16
xor edx, edx
mov rcx, qword [0x14021c5d8]
call fcn.140011854
mov rsi, rax
mov qword [rsp + 0x60], rax
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400ece23
cmp word [rax], bx
je 0x1400ece23
mov r8d, 0x20006
test r13, r13
je 0x1400ecb25
cmp dword [rdi + 0x4c], r12d
je 0x1400ece2e
mov eax, r15d
sub eax, r8d
neg eax
sbb ecx, ecx
add ecx, 4
mov edx, 0xc0000000
mov eax, 0x80000000
cmp r15d, r8d
cmovne edx, eax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ecx
xor r9d, r9d
lea r8d, [r9 + 3]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400ece23
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
mov dword [rsp + 0xe0], eax
lea rdx, [rsp + 0xb0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400ecc24
mov ecx, dword [rsp + 0xd4]
cmp dword [rsp + 0xd0], ebx
jne 0x1400ecbbf
test ecx, ecx
mov al, r14b
je 0x1400ecbc1
mov al, bl
mov byte [rdi + 0x4a], al
test al, al
jne 0x1400ecc24
cmp dword [rsp + 0xd0], ebx
jne 0x1400ecc24
cmp ecx, 3
jne 0x1400ecc24
xor eax, eax
mov word [rsp + 0x50], ax
mov byte [rsp + 0x52], al
mov dword [rsp + 0x54], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x54]
mov r8d, ecx
lea rdx, [rsp + 0x50]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400ecc24
cmp dword [rsp + 0x54], 3
jne 0x1400ecc24
cmp byte [rsp + 0x50], 0xef
jne 0x1400ecc24
cmp byte [rsp + 0x51], 0xbb
jne 0x1400ecc24
cmp byte [rsp + 0x52], 0xbf
jne 0x1400ecc24
mov byte [rdi + 0x4a], r14b
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rdi + 0x4a], bl
je 0x1400eccaa
cmp r15d, 0x20006
jne 0x1400eccaa
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400ece23
lea rcx, str.__xml_version_1.0__encoding_utf_8____r_n_key_name_Software___r_n_t_key_name_ConEmu___r_n_t__key__r_n__key__r_n
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [rsp + 0x54], eax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x54]
mov r8d, eax
lea rdx, str.__xml_version_1.0__encoding_utf_8____r_n_key_name_Software___r_n_t_key_name_ConEmu___r_n_t__key__r_n__key__r_n
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400eccb5
cmp qword [rsp + 0x68], rbx
jne 0x1400ece2e
cmp byte [rdi + 0x4a], bl
je 0x1400eccc7
cmp r15d, 0x20006
jne 0x1400ece23
mov rcx, rdi
call fcn.1400eb564
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x54], ebx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rdi + 0x28]
or edx, 0xffffffff
mov rcx, rsi
call fcn.140131ef4
test eax, eax
js 0x1400ece23
mov ecx, 0x10088
call fcn.14011ff78
mov r8, rax
test rax, rax
je 0x1400ecd54
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbx
mov dword [rax + 0x28], ebx
mov qword [rax + 0x30], rbx
mov qword [rax + 0x40], rbx
lea rdx, [rax + 0x10078]
mov qword [rdx], rbx
mov qword [rax + 0x10080], rbx
lea rcx, [rax + 0x78]
mov qword [rax + 0x60], rcx
mov rax, rcx
neg rax
and eax, 7
add rax, rcx
mov qword [r8 + 0x68], rax
mov qword [r8 + 0x70], rdx
jmp 0x1400ecd57
mov r8, rbx
mov qword [rdi + 0x38], r8
lea rcx, [rdi + 0x28]
call fcn.140058574
mov rdx, rax
mov rcx, qword [rdi + 0x38]
call fcn.1400e87e4
mov rcx, qword [rdi + 0x38]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1400ecd87
cmp dword [rax + 0x28], 5
je 0x1400ece13
add rcx, 0x60
mov edx, 0x60
call fcn.1400eda24
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbx
mov dword [rax + 0x28], 5
mov qword [rax + 0x30], rbx
mov qword [rax + 0x40], rbx
lea r9, [0x1401a9d88]
lea r8, [0x1401a9d90]
mov rdx, rax
mov rcx, rdi
call fcn.1400ed524
lea r9, [0x1401a9d98]
lea r8, str.encoding
mov rdx, rsi
mov rcx, rdi
call fcn.1400ed524
mov rcx, qword [rdi + 0x38]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1400ecdff
mov qword [rsi + 0x58], rax
mov rax, qword [rcx + 0x30]
mov qword [rax + 0x50], rsi
jmp 0x1400ece07
mov qword [rsi + 0x58], rbx
mov qword [rcx + 0x38], rsi
mov qword [rcx + 0x30], rsi
mov qword [rsi + 0x20], rcx
mov qword [rsi + 0x50], rbx
mov dword [rdi + 0x4c], r12d
jmp 0x1400ece2e
mov rcx, rdi
call fcn.1400eb564
mov r14b, bl
mov al, r14b
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140139b10
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret