Function at 0x1400b9464
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa60]
sub rsp, 0xb60
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0xa50], rax
mov r14, r8
mov byte [rsp + 0x41], dl
mov rsi, rcx
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x4e0], xmm0
xor r15d, r15d
mov word [rbp + 0x4f0], r15w
mov qword [rbp + 0x4f4], 0xce
mov word [rbp + 0x4fc], r15w
mov edi, 0xfe
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x4fe]
call fcn.14013b230
xorps xmm0, xmm0
movups xmmword [rbp + 0x600], xmm0
movups xmmword [rbp + 0x610], xmm0
movups xmmword [rbp + 0x620], xmm0
mov qword [rbp + 0x630], r15
mov word [rbp + 0x638], r15w
mov ebx, 0x40e
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x63a]
call fcn.14013b230
nop
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
mov word [rbp - 0x80], r15w
mov qword [rbp - 0x7c], 0x56
mov word [rbp - 0x74], r15w
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x72]
call fcn.14013b230
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], r15
mov word [rbp + 0xc8], r15w
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0xca]
call fcn.14013b230
nop
mov ebx, dword [rsi + 0x18]
mov rcx, qword [rbp + 0x4e0]
test rcx, rcx
je 0x1400b95f5
mov rax, qword [rbp + 0x4e8]
test rax, rax
je 0x1400b95af
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbp + 0x4e8], r15
mov rcx, qword [rbp + 0x4e0]
test rcx, rcx
je 0x1400b95ba
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x4e0], r15
mov byte [rbp + 0x4f0], r15b
mov qword [rbp + 0x4e8], r15
mov dword [rbp + 0x4f8], r15d
mov dword [rbp + 0x630], r15d
xorps xmm0, xmm0
movaps xmmword [rbp + 0x600], xmm0
movaps xmmword [rbp + 0x610], xmm0
movaps xmmword [rbp + 0x620], xmm0
mov dword [rsp + 0x20], r15d
mov r9d, ebx
lea r8, str.ConEmuLastOutputMapping._08X
mov r12d, 0x80
mov edx, r12d
lea rcx, [rbp + 0x4fc]
call fcn.140120394
or r9d, 0xffffffff
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x4e0]
call fcn.140014490
test rax, rax
je 0x1400b9985
lea rbx, [rax + 0x4e]
cmp word [rbx], r15w
je 0x1400b9985
movsx edx, word [rax + 0x32]
movsx ecx, word [rax + 0x30]
imul edx, ecx
mov dword [rsp + 0x4c], edx
add rax, 0x46
lea rcx, [rsp + 0x4c]
cmp edx, dword [rax]
cmovae rcx, rax
mov edi, dword [rcx]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400b96c8
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1400b968c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x78], r15
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400b9697
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], r15
mov byte [rbp - 0x80], r15b
mov qword [rsp + 0x78], r15
mov dword [rbp - 0x78], r15d
mov dword [rbp + 0xc0], r15d
xorps xmm0, xmm0
movaps xmmword [rbp + 0x90], xmm0
movaps xmmword [rbp + 0xa0], xmm0
movaps xmmword [rbp + 0xb0], xmm0
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, rbx
mov rdx, r12
lea rcx, [rbp - 0x74]
call fcn.140120394
lea r9d, [rdi*4 + 0x56]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140014490
mov rbx, rax
test rax, rax
jne 0x1400b970a
lea rcx, str.Stored_output_data_mapping_was_not_created_
jmp 0x1400b998c
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rsp + 0x58], xmm0
mov rdx, r14
mov rcx, rsi
call fcn.1400b9a6c
mov rsi, rax
test rax, rax
setne dil
mov byte [rsp + 0x40], dil
cmp dword [rbx + 4], 0xaa
jne 0x1400b9970
cmp dword [rbx], 0x56
jbe 0x1400b9970
movsx r13d, word [rsp + 0x58]
movsx r12d, word [rsp + 0x5a]
mov edx, dword [rbx + 0x46]
mov r8d, r12d
imul r8d, r13d
cmp rdx, r8
cmovb r8d, edx
lea rdi, [rbx + 0x52]
lea rax, [rdi + r8*4]
mov qword [rsp + 0x50], rax
test r13d, r13d
je 0x1400b996b
test r12d, r12d
je 0x1400b996b
cmp dword [rbx + 0x4e], r15d
je 0x1400b996b
mov rbx, r15
lea eax, [r13 + 1]
mov r15d, eax
lea rcx, [rax + rax]
call fcn.140120104
mov r14, rax
xor ecx, ecx
mov word [rax + r13*2], cx
cmp byte [rsp + 0x41], cl
jne 0x1400b97c1
mov ecx, r15d
call fcn.140120104
mov rbx, rax
xor r15d, r15d
mov byte [r13 + rax], r15b
jmp 0x1400b97ea
mov eax, 0xfeff
mov word [rsp + 0x44], ax
xor r15d, r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
lea r8d, [r15 + 2]
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, r13d
mov eax, 1
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x4c], r15d
test r12d, r12d
je 0x1400b9951
mov rdx, qword [rsp + 0x50]
cmp rdi, rdx
jae 0x1400b994e
lea r15, [rdi + rcx*4]
lea rcx, [r15 - 4]
jmp 0x1400b9826
cmp word [rcx], 0x20
jne 0x1400b982b
sub rcx, 4
cmp rcx, rdi
jae 0x1400b981c
sub rcx, rdi
sar rcx, 2
add ecx, 1
jne 0x1400b9844
xor r9d, r9d
test eax, eax
jne 0x1400b9935
jmp 0x1400b9847
xor r9d, r9d
test eax, eax
je 0x1400b98aa
mov dword [rsp + 0x44], r9d
mov rdx, r14
test ecx, ecx
je 0x1400b986e
mov r8d, ecx
movzx eax, word [rdi]
mov word [rdx], ax
lea rdx, [rdx + 2]
lea rdi, [rdi + 4]
sub r8, 1
jne 0x1400b985a
cmp byte [rsp + 0x41], r9b
je 0x1400b98c9
test ecx, ecx
je 0x1400b9896
lea r8d, [rcx + rcx]
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x48]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r9d, r9d
mov qword [rsp + 0x20], r9
mov r8d, 4
lea rdx, [0x140167d54]
jmp 0x1400b991e
test ecx, ecx
jne 0x1400b9850
mov rax, r15
cmp r15, rdx
jae 0x1400b994e
cmp word [rax], 0x20
jne 0x1400b9850
add rax, 4
cmp rax, rdx
jmp 0x1400b98b4
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], r9
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rbx
mov r9d, ecx
mov r8, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor edi, edi
test eax, eax
je 0x1400b990c
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
mov r8d, eax
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [0x1401a2030]
lea r9, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x44]
mov rdi, r15
mov ecx, dword [rsp + 0x4c]
inc ecx
mov dword [rsp + 0x4c], ecx
cmp ecx, r12d
mov ecx, r13d
jb 0x1400b9809
xor r15d, r15d
test rbx, rbx
je 0x1400b995e
mov rcx, rbx
call fcn.14012008c
test r14, r14
je 0x1400b996b
mov rcx, r14
call fcn.14012008c
mov dil, byte [rsp + 0x40]
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400b99a1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400b99a1
lea rcx, str.Stored_output_mapping_was_not_created_
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call fcn.14011f550
mov dil, r15b
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400b9a04
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1400b99c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x78], r15
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400b99d3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], r15
mov byte [rbp - 0x80], r15b
mov qword [rsp + 0x78], r15
mov dword [rbp - 0x78], r15d
mov dword [rbp + 0xc0], r15d
xorps xmm0, xmm0
movaps xmmword [rbp + 0x90], xmm0
movaps xmmword [rbp + 0xa0], xmm0
movaps xmmword [rbp + 0xb0], xmm0
mov rcx, qword [rbp + 0x4e0]
test rcx, rcx
je 0x1400b9a3e
mov rdx, qword [rbp + 0x4e8]
test rdx, rdx
je 0x1400b9a33
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbp + 0x4e8], r15
mov rcx, qword [rbp + 0x4e0]
test rcx, rcx
je 0x1400b9a3e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
mov rcx, qword [rbp + 0xa50]
xor rcx, rsp
call fcn.140139b10
mov rbx, qword [rsp + 0xba8]
add rsp, 0xb60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret