Function at 0x140007700
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x3b0
mov rax, qword [0x140248c60]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
cmp dword [rcx + 8], 0xffffffff
mov rsi, r8
mov ebp, edx
mov rdi, rcx
je 0x140007733
mov rcx, qword [rcx]
call fcn.140006dc0
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebp, dword [rcx + 8]
jl 0x14000774c
mov eax, 0x10000
jmp 0x140007a30
mov qword [rsp + 0x3e8], r12
cmp ebp, dword [rcx + 0x14]
jge 0x14000775e
call fcn.140006500
mov rax, qword [rdi]
xor r12d, r12d
mov qword [rsp + 0x3d8], rbx
cmp dword [rax + 0x14], ebp
jge 0x1400077c7
mov rbx, qword [rdi]
test rbx, rbx
je 0x1400077bf
cmp dword [rbx + 0x1c], r12d
je 0x1400077bf
mov edx, dword [rbx + 0x14]
inc edx
cmp edx, dword [rbx + 8]
je 0x1400077bf
mov ecx, dword [rbx + 0x54]
mov eax, dword [rbx + 0x4c]
mov dword [rbx + 0x14], edx
add ecx, dword [rbx + 0x50]
lea r8, [rbx + 0x7c]
lea rdx, [rbx + 0x2c]
lea ecx, [rcx + rax + 0x2e]
xor r9d, r9d
mov dword [rsp + 0x20], r12d
add dword [rbx + 0x18], ecx
mov rcx, rbx
call fcn.140006090
mov ecx, r12d
test eax, eax
sete cl
mov dword [rbx + 0x1c], ecx
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebp
jl 0x140007771
cmp ebp, 0xffffffff
jl 0x1400077db
lea r8, [rsp + 0x50]
mov edx, ebp
mov rcx, rdi
call fcn.140006fd0
test byte [rsp + 0x158], 0x10
movzx eax, byte [rsi]
je 0x140007821
cmp al, 0x2f
je 0x140007810
cmp al, 0x5c
je 0x140007810
test al, al
je 0x1400077fa
cmp byte [rsi + 1], 0x3a
je 0x140007810
lea rcx, [rdi + 0x150]
mov rdx, rsi
call fcn.1400075c0
xor eax, eax
jmp 0x140007a20
xor ecx, ecx
mov rdx, rsi
call fcn.1400075c0
xor eax, eax
jmp 0x140007a20
mov r9, rsi
mov rcx, rsi
test al, al
je 0x140007847
nop dword [rax + rax]
cmp al, 0x2f
je 0x140007838
cmp al, 0x5c
jne 0x14000783c
lea r9, [rcx + 1]
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140007830
lea rdx, [rsp + 0x180]
mov rcx, rsi
sub rdx, rsi
nop word [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rcx + rdx - 1], al
test al, al
jne 0x140007860
cmp r9, rsi
jne 0x14000787d
mov byte [rsp + 0x180], r12b
jmp 0x1400078a9
mov rax, r9
sub rax, rsi
mov byte [rsp + rax + 0x180], r12b
movzx eax, byte [rsp + 0x180]
cmp al, 0x2f
je 0x1400078db
cmp al, 0x5c
je 0x1400078db
test al, al
je 0x1400078a9
cmp byte [rsp + 0x181], 0x3a
je 0x1400078db
mov qword [rsp + 0x20], r9
lea r8, [rdi + 0x150]
lea rdx, str._s_s_s
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x290]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rdi + 0x150]
jmp 0x1400078fa
lea r8, [rsp + 0x180]
lea rdx, str._s_s
lea rcx, [rsp + 0x290]
call qword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
lea rdx, [rsp + 0x180]
call fcn.1400075c0
mov eax, dword [rsp + 0x158]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x290]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000794b
mov eax, 0x200
jmp 0x140007a20
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.140006820
cmp qword [rdi + 0x148], r12
jne 0x140007980
mov ecx, 0x4000
call fcn.140007fa4
mov qword [rdi + 0x148], rax
nop word [rax + rax]
mov rdx, qword [rdi + 0x148]
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, 0x4000
call fcn.140006a40
mov ebx, eax
cmp eax, 0xffffff96
je 0x140007a06
test eax, eax
js 0x1400079d3
jle 0x1400079c8
mov rdx, qword [rdi + 0x148]
lea r9, [rsp + 0x44]
mov r8d, eax
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400079db
cmp byte [rsp + 0x40], r12b
jne 0x1400079e3
test ebx, ebx
jne 0x140007980
mov r12d, 0x5000000
jmp 0x140007a0c
mov r12d, 0x400
jmp 0x140007a0c
lea r9, [rsp + 0x16c]
lea r8, [rsp + 0x15c]
lea rdx, [rsp + 0x164]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x140007a0c
mov r12d, 0x1000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.140006dc0
mov eax, r12d
mov rbx, qword [rsp + 0x3d8]
mov r12, qword [rsp + 0x3e8]
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.140147f90
add rsp, 0x3b0
pop rdi
pop rsi
pop rbp
ret