Function at 0x140006358
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x14024daa8]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
cmp dword [rcx + 8], 0xffffffff
mov rbx, r8
mov edi, edx
mov rsi, rcx
je 0x14000639c
mov rcx, qword [rcx]
call fcn.140005b40
mov rcx, qword [rsi]
or dword [rsi + 8], 0xffffffff
cmp edi, dword [rcx + 8]
jl 0x1400063b2
mov eax, 0x10000
jmp 0x1400065d6
cmp edi, dword [rcx + 0x14]
jge 0x1400063bc
call fcn.14000548c
mov rax, qword [rsi]
cmp dword [rax + 0x14], edi
jge 0x1400063d5
mov rcx, qword [rsi]
call fcn.1400054d8
mov r11, qword [rsi]
cmp dword [r11 + 0x14], edi
jl 0x1400063c4
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rsi
call fcn.140005d7c
test byte [rbp + 0x58], 0x10
je 0x14000641b
cmp byte [rbx], 0x2f
je 0x14000640a
cmp byte [rbx], 0x5c
je 0x14000640a
xor edi, edi
cmp byte [rbx], dil
je 0x140006401
cmp byte [rbx + 1], 0x3a
je 0x14000640a
lea rcx, [rsi + 0x150]
jmp 0x14000640c
xor ecx, ecx
mov rdx, rbx
call fcn.140006254
xor eax, eax
jmp 0x1400065d6
mov al, byte [rbx]
mov r12, rbx
mov rcx, rbx
xor edi, edi
jmp 0x140006438
cmp al, 0x2f
je 0x14000642f
cmp al, 0x5c
jne 0x140006433
lea r12, [rcx + 1]
inc rcx
mov al, byte [rcx]
test al, al
jne 0x140006427
lea rcx, [rbp + 0x80]
mov rdx, rbx
call fcn.14014c2a0
cmp r12, rbx
jne 0x140006459
mov byte [rbp + 0x80], dil
jmp 0x140006482
mov rax, r12
sub rax, rbx
mov byte [rbp + rax + 0x80], dil
mov al, byte [rbp + 0x80]
cmp al, 0x2f
je 0x1400064b2
cmp al, 0x5c
je 0x1400064b2
test al, al
je 0x140006482
cmp byte [rbp + 0x81], 0x3a
je 0x1400064b2
lea r9, [rbp + 0x80]
lea r8, [rsi + 0x150]
lea rdx, str._s_s_s
lea rcx, [rbp + 0x190]
mov qword [rsp + 0x20], r12
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsi + 0x150]
jmp 0x1400064d2
lea r8, [rbp + 0x80]
lea rdx, str._s_s
lea rcx, [rbp + 0x190]
mov r9, r12
call qword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
lea rdx, [rbp + 0x80]
call fcn.140006254
mov eax, dword [rbp + 0x58]
mov qword [rsp + 0x30], rdi
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 rax, 0xffffffffffffffff
jne 0x14000651d
mov eax, 0x200
jmp 0x1400065d6
mov rdx, qword [rsi + 0x140]
mov rcx, qword [rsi]
call fcn.140005710
cmp qword [rsi + 0x148], rdi
jne 0x140006546
mov ecx, 0x4000
call fcn.14000abf8
mov qword [rsi + 0x148], rax
mov rdx, qword [rsi + 0x148]
mov rcx, qword [rsi]
lea r9, [rsp + 0x40]
mov r8d, 0x4000
call fcn.1400058b0
mov ebx, eax
cmp eax, 0xffffff96
je 0x1400065be
test eax, eax
js 0x140006599
jle 0x14000658e
mov rdx, qword [rsi + 0x148]
lea r9, [rsp + 0x44]
mov r8d, eax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400065a0
cmp byte [rsp + 0x40], dil
jne 0x1400065a7
test ebx, ebx
jne 0x140006546
mov edi, 0x5000000
jmp 0x1400065c3
mov edi, 0x400
jmp 0x1400065c3
lea r9, [rbp + 0x6c]
lea r8, [rbp + 0x5c]
lea rdx, [rbp + 0x64]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x1400065c3
mov edi, 0x1000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi]
call fcn.140005b40
mov eax, edi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.14014b3f0
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret