Function at 0x1400e1e6c
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 [0x1401f5698]
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
xor ebx, ebx
mov r13, qword [rcx + 0x30]
mov r15d, edx
mov r8d, 0x20006
and r15d, r8d
mov eax, dword [rcx + 8]
sub eax, 2
cmp eax, 1
ja 0x1400e1edd
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400e1edd
cmp word [rax], bx
je 0x1400e1edd
mov rsi, rax
mov qword [rsp + 0x70], rax
jmp 0x1400e1f0f
xor edx, edx
mov rcx, qword [0x14022a9e0]
call fcn.1400109e0
mov rsi, rax
mov qword [rsp + 0x70], rax
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400e222c
cmp word [rax], bx
je 0x1400e222c
mov r8d, 0x20006
test r13, r13
je 0x1400e1f1e
cmp dword [rdi + 0x44], r12d
je 0x1400e2228
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 r14, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400e222c
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, r14
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400e201c
mov ecx, dword [rsp + 0xd4]
cmp dword [rsp + 0xd0], ebx
jne 0x1400e1fb7
test ecx, ecx
mov al, 1
je 0x1400e1fb9
mov al, bl
mov byte [rdi + 0x42], al
test al, al
jne 0x1400e201c
cmp dword [rsp + 0xd0], ebx
jne 0x1400e201c
cmp ecx, 3
jne 0x1400e201c
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, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e201c
cmp dword [rsp + 0x54], 3
jne 0x1400e201c
cmp byte [rsp + 0x50], 0xef
jne 0x1400e201c
cmp byte [rsp + 0x51], 0xbb
jne 0x1400e201c
cmp byte [rsp + 0x52], 0xbf
jne 0x1400e201c
mov byte [rdi + 0x42], 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rdi + 0x42], bl
je 0x1400e20a2
cmp r15d, 0x20006
jne 0x1400e20a2
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 r14, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400e222c
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 + 0x68], eax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x68]
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, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400e20ab
test r13, r13
jne 0x1400e2228
cmp byte [rdi + 0x42], bl
je 0x1400e20bd
cmp r15d, 0x20006
jne 0x1400e222c
mov rcx, rdi
call fcn.1400e0a2c
mov dword [rsp + 0x64], ebx
mov dword [rsp + 0x60], ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
lea r8, [rdi + 0x28]
or edx, 0xffffffff
mov rcx, rsi
call fcn.140123b30
test eax, eax
js 0x1400e222c
mov ecx, 0x10088
call fcn.140113d08
mov r8, rax
lfence
test rax, rax
je 0x1400e214d
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 0x1400e2150
mov r8, rbx
mov qword [rdi + 0x30], r8
mov rdx, qword [rdi + 0x28]
mov rcx, r8
call fcn.1400ddcdc
lfence
mov rax, qword [rdi + 0x30]
mov rcx, qword [rax + 0x30]
test rcx, rcx
je 0x1400e217a
cmp dword [rcx + 0x28], 5
je 0x1400e2215
lfence
mov rcx, qword [rdi + 0x30]
mov edx, 0x60
add rcx, rdx
call fcn.1400e2dfc
mov rsi, rax
lfence
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, [0x1401b7658]
lea r8, [0x1401b7660]
mov rdx, rax
mov rcx, rdi
call fcn.1400e28fc
lfence
lea r9, [0x1401b7668]
lea r8, str.encoding
mov rdx, rsi
mov rcx, rdi
call fcn.1400e28fc
lfence
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1400e2201
mov qword [rsi + 0x58], rax
mov rax, qword [rcx + 0x30]
mov qword [rax + 0x50], rsi
jmp 0x1400e2209
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
jmp 0x1400e2224
mov dword [rdi + 0x44], r12d
mov bl, 1
jmp 0x1400e2234
mov rcx, rdi
call fcn.1400e0a2c
mov al, bl
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret