Function at 0x1400f7628
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov bl, r9b
mov r15, r8
mov r13, rdx
mov r12, rcx
mov rcx, qword [0x14016d090]
lea rdi, [0x14016d090]
cmp rcx, rdi
je 0x1400f7686
test byte [rcx + 0x1c], 1
je 0x1400f7686
cmp byte [rcx + 0x19], 4
jb 0x1400f7686
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0x5f
call fcn.140004968
mov rcx, qword [0x14016d090]
or qword [rbp - 0x10], 0xffffffffffffffff
xor r14d, r14d
xor eax, eax
mov qword [rbp + 0x50], r14
mov dword [rbp + 0x48], r14d
mov esi, r14d
mov byte [rbp + 0x40], r14b
mov qword [rbp - 8], rax
test r12, r12
jne 0x1400f76c7
lea r8, str.wszSrcFile
mov edx, 0x926
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.140081b60
mov rcx, qword [0x14016d090]
test r13, r13
jne 0x1400f76eb
lea r8, str.wszDstFile
mov edx, 0x927
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.140081b60
mov rcx, qword [0x14016d090]
cmp rcx, rdi
je 0x1400f7719
test byte [rcx + 0x1c], 1
je 0x1400f7719
cmp byte [rcx + 0x19], 4
jb 0x1400f7719
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0x60
mov qword [rsp + 0x20], r13
mov r9, r12
call fcn.14000593c
test r15, r15
je 0x1400f7725
mov dil, 1
test bl, bl
jne 0x1400f7728
mov dil, r14b
test r15, r15
je 0x1400f7734
test bl, bl
jne 0x1400f7734
mov r14b, 1
test dil, dil
je 0x1400f774d
xor edx, edx
mov rcx, r15
call fcn.1400f4344
mov ebx, eax
test eax, eax
js 0x1400f77db
lea r8, [rbp - 8]
mov rcx, r12
lea rdx, [rbp + 0x50]
call fcn.140129da8
mov ebx, eax
test eax, eax
jns 0x1400f77b1
mov rcx, qword [0x14016d090]
lea r14, [0x14016d090]
cmp rcx, r14
je 0x1400f77ab
test byte [rcx + 0x1c], 1
je 0x1400f77ab
cmp byte [rcx + 0x19], 2
jb 0x1400f77ab
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0x61
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.1400058c8
mov rsi, qword [rbp + 0x50]
mov rcx, qword [0x14016d090]
jmp 0x1400f77e9
mov rsi, qword [rbp + 0x50]
jmp 0x1400f77e9
test dil, dil
je 0x1400f77be
mov rcx, r15
call fcn.1400f44d0
test r14b, r14b
je 0x1400f7852
xor edx, edx
mov rcx, r15
call fcn.1400f4344
mov ebx, eax
test eax, eax
jns 0x1400f7852
mov rsi, qword [rbp + 0x50]
mov rcx, qword [0x14016d090]
lea r14, [0x14016d090]
test r15, r15
je 0x1400f77fd
mov rcx, r15
call fcn.1400f44d0
mov rcx, qword [0x14016d090]
test rsi, rsi
je 0x1400f7812
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x1400f7838
test byte [rcx + 0x1c], 1
je 0x1400f7838
cmp byte [rcx + 0x19], 4
jb 0x1400f7838
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0x67
call fcn.140004968
mov eax, ebx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [rbp - 0x10]
mov r9d, 2
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov byte [rsp + 0x30], sil
mov edx, 0xc0000000
mov rcx, r13
mov dword [rsp + 0x20], 0x80
call fcn.140086590
mov rsi, qword [rbp + 0x50]
xor ecx, ecx
mov ebx, eax
test eax, eax
jns 0x1400f78d9
mov rcx, qword [0x14016d090]
lea rdx, [0x14016d090]
cmp rcx, rdx
je 0x1400f78cc
test byte [rcx + 0x1c], 1
je 0x1400f78cc
cmp byte [rcx + 0x19], 2
jb 0x1400f78cc
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0x62
mov dword [rsp + 0x20], eax
mov r9, r13
call fcn.1400058c8
mov rcx, qword [0x14016d090]
mov rdi, qword [rbp - 0x10]
mov r12b, byte [rbp + 0x40]
jmp 0x1400f7a5f
mov r12b, 1
test r14b, r14b
je 0x1400f78eb
mov rcx, r15
call fcn.1400f44d0
xor ecx, ecx
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], cx
jne 0x1400f78ef
mov rdi, qword [rbp - 0x10]
lea r14d, [rax*2 + 2]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x48]
mov r8d, r14d
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400f7980
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016d090]
lea rdx, [0x14016d090]
cmp rcx, rdx
je 0x1400f7a5f
test byte [rcx + 0x1c], 1
je 0x1400f7a5f
cmp byte [rcx + 0x19], 2
jb 0x1400f7a5f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0x63
mov dword [rsp + 0x20], ebx
mov r9, r13
call fcn.1400058c8
jmp 0x1400f7a58
mov eax, dword [rbp + 0x48]
cmp eax, r14d
je 0x1400f79d9
mov rcx, qword [0x14016d090]
lea rdx, [0x14016d090]
cmp rcx, rdx
je 0x1400f79cf
test byte [rcx + 0x1c], 1
je 0x1400f79cf
cmp byte [rcx + 0x19], 2
jb 0x1400f79cf
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0x64
mov dword [rsp + 0x28], r14d
mov r9, r13
mov dword [rsp + 0x20], eax
call fcn.14000fd50
mov rcx, qword [0x14016d090]
mov ebx, 0x8007045d
jmp 0x1400f7a5f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor r14d, r14d
test eax, eax
jne 0x1400f7a48
call qword [sym.imp.ntdll.dll_RtlGetLastNtStatus]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016d090]
lea rdx, [0x14016d090]
cmp rcx, rdx
je 0x1400f7a5f
test byte [rcx + 0x1c], 1
je 0x1400f7a5f
cmp byte [rcx + 0x19], 2
jb 0x1400f7a5f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0x65
mov dword [rsp + 0x28], r14d
mov r9, r13
mov dword [rsp + 0x20], ebx
call fcn.1400ab848
jmp 0x1400f7a58
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rdi, 0xffffffffffffffff
mov r12b, r14b
mov rcx, qword [0x14016d090]
cmp rdi, 0xffffffffffffffff
je 0x1400f7a75
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14016d090]
test r12b, r12b
je 0x1400f77e2
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.1400868e0
test eax, eax
jns 0x1400f77db
mov rcx, qword [0x14016d090]
lea r14, [0x14016d090]
cmp rcx, r14
je 0x1400f77e9
test byte [rcx + 0x1c], 1
je 0x1400f77e9
cmp byte [rcx + 0x19], 3
jb 0x1400f77e9
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0x66
mov dword [rsp + 0x20], ebx
mov r9, r13
call fcn.1400058c8
jmp 0x1400f77a2