Function at 0x140006c80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x14025e9c0]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
cmp dword [rbp + 0x300], 3
mov esi, r9d
mov r12, r8
mov ebx, edx
mov rdi, rcx
je 0x140006f4e
cmp dword [rbp + 0x300], 2
je 0x140006ce0
cmp dword [rbp + 0x300], 1
je 0x140006ce0
mov eax, 0x10000
jmp 0x140006ff3
cmp dword [rcx + 8], 0xffffffff
je 0x140006cee
mov rcx, qword [rcx]
call fcn.140004abc
mov rcx, qword [rdi]
or dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x140006cd6
cmp ebx, dword [rcx + 0x14]
jge 0x140006d04
call fcn.140004818
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x140006d1d
mov rcx, qword [rdi]
call fcn.140004874
mov r11, qword [rdi]
cmp dword [r11 + 0x14], ebx
jl 0x140006d0c
lea r8, [rsp + 0x50]
mov edx, ebx
mov rcx, rdi
call fcn.140004c30
test byte [rbp + 0x58], 0x10
je 0x140006d75
cmp dword [rbp + 0x300], 1
je 0x140006fd4
cmp byte [r12], 0x2f
je 0x140006d66
cmp byte [r12], 0x5c
je 0x140006d66
xor esi, esi
cmp byte [r12], sil
je 0x140006d5d
cmp byte [r12 + 1], 0x3a
je 0x140006d66
lea rcx, [rdi + 0x150]
jmp 0x140006d68
xor ecx, ecx
mov rdx, r12
call fcn.140005148
jmp 0x140006fd4
xor esi, esi
cmp dword [rbp + 0x300], 1
je 0x140006e76
mov al, byte [r12]
mov r13, r12
mov rcx, r12
jmp 0x140006da1
cmp al, 0x2f
je 0x140006d98
cmp al, 0x5c
jne 0x140006d9c
lea r13, [rcx + 1]
inc rcx
mov al, byte [rcx]
test al, al
jne 0x140006d90
lea rcx, [rbp + 0x80]
mov rdx, r12
call fcn.1401593c0
cmp r13, r12
jne 0x140006dc2
mov byte [rbp + 0x80], sil
jmp 0x140006deb
mov rax, r13
sub rax, r12
mov byte [rbp + rax + 0x80], sil
mov al, byte [rbp + 0x80]
cmp al, 0x2f
je 0x140006e1b
cmp al, 0x5c
je 0x140006e1b
test al, al
je 0x140006deb
cmp byte [rbp + 0x81], 0x3a
je 0x140006e1b
lea r9, [rbp + 0x80]
lea r8, [rdi + 0x150]
lea rdx, [0x1401c437c]
lea rcx, [rbp + 0x190]
mov qword [rsp + 0x20], r13
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rdi + 0x150]
jmp 0x140006e3b
lea r8, [rbp + 0x80]
lea rdx, str._s_s
lea rcx, [rbp + 0x190]
mov r9, r13
call qword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
lea rdx, [rbp + 0x80]
call fcn.140005148
mov eax, dword [rbp + 0x58]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
lea rcx, [rbp + 0x190]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp r12, 0xffffffffffffffff
jne 0x140006e86
mov eax, 0x200
jmp 0x140006ff3
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.140006708
mov r13d, 0x4000
cmp qword [rdi + 0x148], rsi
jne 0x140006eb3
mov ecx, r13d
call fcn.1400072d4
mov qword [rdi + 0x148], rax
mov rdx, qword [rdi + 0x148]
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, r13d
call fcn.140006900
mov ebx, eax
cmp eax, 0xffffff96
je 0x140006f28
test eax, eax
js 0x140006f03
jle 0x140006ef8
mov rdx, qword [rdi + 0x148]
lea r9, [rsp + 0x44]
mov r8d, eax
mov rcx, r12
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140006f0a
cmp byte [rsp + 0x40], sil
jne 0x140006f11
test ebx, ebx
jne 0x140006eb3
mov esi, 0x5000000
jmp 0x140006f2d
mov esi, 0x400
jmp 0x140006f2d
lea r9, [rbp + 0x6c]
lea r8, [rbp + 0x5c]
lea rdx, [rbp + 0x64]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x140006f2d
mov esi, 0x1000
cmp dword [rbp + 0x300], 1
je 0x140006f3f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.140004abc
mov eax, esi
jmp 0x140006ff3
cmp edx, dword [rcx + 8]
je 0x140006fa6
cmp dword [rcx + 8], 0xffffffff
je 0x140006f61
mov rcx, qword [rcx]
call fcn.140004abc
mov rcx, qword [rdi]
or dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x140006cd6
cmp ebx, dword [rcx + 0x14]
jge 0x140006f7b
call fcn.140004818
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x140006f94
mov rcx, qword [rdi]
call fcn.140004874
mov r11, qword [rdi]
cmp dword [r11 + 0x14], ebx
jl 0x140006f83
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.140006708
mov dword [rdi + 8], ebx
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, r12
call fcn.140006900
xor esi, esi
mov ebx, eax
test eax, eax
jg 0x140006fcd
mov rcx, qword [rdi]
call fcn.140004abc
or dword [rdi + 8], 0xffffffff
cmp byte [rsp + 0x40], sil
je 0x140006fd8
xor eax, eax
jmp 0x140006ff3
test ebx, ebx
jle 0x140006fe3
mov eax, 0x600
jmp 0x140006ff3
mov eax, 0x5000000
mov edx, 0x1000
cmp ebx, 0xffffff96
cmove eax, edx
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.140157fc0
mov rbx, qword [rsp + 0x3e8]
add rsp, 0x3b0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret