Function at 0x140007fc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
sub rsp, 0x6d0
mov rax, qword [0x140033018]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
cmp dword [rcx + 8], 0xffffffff
mov r14, r8
mov ebp, edx
mov rdi, rcx
je 0x140007ff8
mov rcx, qword [rcx]
call fcn.140007620
mov rbx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebp, dword [rbx + 8]
jl 0x140008011
mov eax, 0x10000
jmp 0x1400080fe
mov qword [rsp + 0x6f8], rsi
xor esi, esi
cmp ebp, dword [rbx + 0x14]
jge 0x14000804f
test rbx, rbx
je 0x14000804f
mov eax, dword [rbx + 0x28]
lea r8, [rbx + 0x7c]
lea rdx, [rbx + 0x2c]
mov dword [rbx + 0x18], eax
xor r9d, r9d
mov dword [rbx + 0x14], esi
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.140006970
mov ecx, esi
test eax, eax
sete cl
mov dword [rbx + 0x1c], ecx
mov rbx, qword [rdi]
cmp dword [rbx + 0x14], ebp
jge 0x1400080a8
test rbx, rbx
je 0x1400080a0
cmp dword [rbx + 0x1c], esi
je 0x1400080a0
mov edx, dword [rbx + 0x14]
inc edx
cmp edx, dword [rbx + 8]
je 0x1400080a0
mov ecx, dword [rbx + 0x54]
lea r8, [rbx + 0x7c]
add ecx, dword [rbx + 0x50]
xor r9d, r9d
mov eax, dword [rbx + 0x4c]
add eax, 0x2e
mov dword [rbx + 0x14], edx
add ecx, eax
mov dword [rsp + 0x20], esi
add dword [rbx + 0x18], ecx
lea rdx, [rbx + 0x2c]
mov rcx, rbx
call fcn.140006970
mov ecx, esi
test eax, eax
sete cl
mov dword [rbx + 0x1c], ecx
mov rbx, qword [rdi]
cmp dword [rbx + 0x14], ebp
jl 0x140008057
lea r8, [rsp + 0x60]
mov edx, ebp
mov rcx, rdi
call fcn.1400076c0
mov eax, dword [rsp + 0x26c]
shr eax, 4
test al, 1
movzx eax, word [r14]
je 0x140008122
cmp ax, 0x2f
je 0x1400080e9
cmp ax, 0x5c
je 0x1400080e9
test ax, ax
je 0x1400080e2
cmp word [r14 + 2], 0x3a
je 0x1400080e9
lea rsi, [rdi + 0x250]
mov rdx, r14
mov rcx, rsi
call fcn.140007de0
xor eax, eax
mov rsi, qword [rsp + 0x6f8]
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.1400086b0
mov rbx, qword [rsp + 0x708]
add rsp, 0x6d0
pop r14
pop rdi
pop rbp
ret
mov word [rsp + 0x4b0], si
mov rbx, r14
mov rcx, r14
test ax, ax
je 0x140008156
cmp ax, 0x2f
je 0x140008147
cmp ax, 0x5c
je 0x140008147
add rcx, 2
jmp 0x14000814e
lea rbx, [rcx + 2]
mov rcx, rbx
movzx eax, word [rcx]
test ax, ax
jne 0x140008135
mov r8d, 0x104
lea rcx, [rsp + 0x2a0]
mov rdx, r14
call fcn.1400142f8
cmp rbx, r14
jne 0x14000817b
mov word [rsp + 0x2a0], si
jmp 0x1400081bf
mov rax, rbx
sub rax, r14
sar rax, 1
add rax, rax
cmp rax, 0x208
jae 0x140008348
mov word [rsp + rax + 0x2a0], si
movzx eax, word [rsp + 0x2a0]
cmp ax, 0x2f
je 0x1400081ec
cmp ax, 0x5c
je 0x1400081ec
test ax, ax
je 0x1400081bf
cmp word [rsp + 0x2a2], 0x3a
je 0x1400081ec
lea rbp, [rdi + 0x250]
mov qword [rsp + 0x20], rbx
mov r8, rbp
lea r9, [rsp + 0x2a0]
lea rdx, str._s_s_s
lea rcx, [rsp + 0x4b0]
call fcn.140003ac0
jmp 0x14000820e
mov r9, rbx
lea r8, [rsp + 0x2a0]
lea rdx, str._s_s
lea rcx, [rsp + 0x4b0]
call fcn.140003ac0
mov rbp, rsi
lea rdx, [rsp + 0x2a0]
mov rcx, rbp
call fcn.140007de0
mov eax, dword [rsp + 0x26c]
lea rcx, [rsp + 0x4b0]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140008262
mov eax, 0x200
jmp 0x1400080f6
mov rdx, qword [rdi + 0x240]
mov rcx, qword [rdi]
call fcn.140007080
cmp qword [rdi + 0x248], rsi
jne 0x140008290
mov ecx, 0x4000
call fcn.1400089b0
mov qword [rdi + 0x248], rax
nop dword [rax + rax]
mov rdx, qword [rdi + 0x248]
lea r9, [rsp + 0x50]
mov rcx, qword [rdi]
mov r8d, 0x4000
call fcn.1400072a0
mov ebx, eax
cmp eax, 0xffffff96
je 0x14000832b
test eax, eax
js 0x1400082e6
jle 0x1400082db
mov rdx, qword [rdi + 0x248]
lea r9, [rsp + 0x290]
mov r8d, eax
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400082ed
cmp byte [rsp + 0x50], sil
jne 0x1400082f4
test ebx, ebx
jne 0x140008290
mov ebx, 0x5000000
jmp 0x140008330
mov ebx, 0x400
jmp 0x140008330
mov rcx, qword [rdi]
call fcn.140007620
lea r9, [rsp + 0x280]
mov rcx, rbp
lea r8, [rsp + 0x270]
lea rdx, [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400080f4
mov ebx, 0x1000
mov rcx, qword [rdi]
call fcn.140007620
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1400080f6
call fcn.14000881c
int3