Function at 0x140006b38
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 [0x140248040]
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 0x140006e06
cmp dword [rbp + 0x300], 2
je 0x140006b98
cmp dword [rbp + 0x300], 1
je 0x140006b98
mov eax, 0x10000
jmp 0x140006eab
cmp dword [rcx + 8], 0xffffffff
je 0x140006ba6
mov rcx, qword [rcx]
call fcn.140004930
mov rcx, qword [rdi]
or dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x140006b8e
cmp ebx, dword [rcx + 0x14]
jge 0x140006bbc
call fcn.14000468c
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x140006bd5
mov rcx, qword [rdi]
call fcn.1400046e8
mov r11, qword [rdi]
cmp dword [r11 + 0x14], ebx
jl 0x140006bc4
lea r8, [rsp + 0x50]
mov edx, ebx
mov rcx, rdi
call fcn.140004ad0
test byte [rbp + 0x58], 0x10
je 0x140006c2d
cmp dword [rbp + 0x300], 1
je 0x140006e8c
cmp byte [r12], 0x2f
je 0x140006c1e
cmp byte [r12], 0x5c
je 0x140006c1e
xor esi, esi
cmp byte [r12], sil
je 0x140006c15
cmp byte [r12 + 1], 0x3a
je 0x140006c1e
lea rcx, [rdi + 0x150]
jmp 0x140006c20
xor ecx, ecx
mov rdx, r12
call fcn.140004fa0
jmp 0x140006e8c
xor esi, esi
cmp dword [rbp + 0x300], 1
je 0x140006d2e
mov al, byte [r12]
mov r13, r12
mov rcx, r12
jmp 0x140006c59
cmp al, 0x2f
je 0x140006c50
cmp al, 0x5c
jne 0x140006c54
lea r13, [rcx + 1]
inc rcx
mov al, byte [rcx]
test al, al
jne 0x140006c48
lea rcx, [rbp + 0x80]
mov rdx, r12
call fcn.140148530
cmp r13, r12
jne 0x140006c7a
mov byte [rbp + 0x80], sil
jmp 0x140006ca3
mov rax, r13
sub rax, r12
mov byte [rbp + rax + 0x80], sil
mov al, byte [rbp + 0x80]
cmp al, 0x2f
je 0x140006cd3
cmp al, 0x5c
je 0x140006cd3
test al, al
je 0x140006ca3
cmp byte [rbp + 0x81], 0x3a
je 0x140006cd3
lea r9, [rbp + 0x80]
lea r8, [rdi + 0x150]
lea rdx, [0x1401b444c]
lea rcx, [rbp + 0x190]
mov qword [rsp + 0x20], r13
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rdi + 0x150]
jmp 0x140006cf3
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.140004fa0
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 0x140006d3e
mov eax, 0x200
jmp 0x140006eab
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.140006618
mov r13d, 0x4000
cmp qword [rdi + 0x148], rsi
jne 0x140006d6b
mov ecx, r13d
call fcn.140007404
mov qword [rdi + 0x148], rax
mov rdx, qword [rdi + 0x148]
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, r13d
call fcn.1400067b8
mov ebx, eax
cmp eax, 0xffffff96
je 0x140006de0
test eax, eax
js 0x140006dbb
jle 0x140006db0
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 0x140006dc2
cmp byte [rsp + 0x40], sil
jne 0x140006dc9
test ebx, ebx
jne 0x140006d6b
mov esi, 0x5000000
jmp 0x140006de5
mov esi, 0x400
jmp 0x140006de5
lea r9, [rbp + 0x6c]
lea r8, [rbp + 0x5c]
lea rdx, [rbp + 0x64]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x140006de5
mov esi, 0x1000
cmp dword [rbp + 0x300], 1
je 0x140006df7
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.140004930
mov eax, esi
jmp 0x140006eab
cmp edx, dword [rcx + 8]
je 0x140006e5e
cmp dword [rcx + 8], 0xffffffff
je 0x140006e19
mov rcx, qword [rcx]
call fcn.140004930
mov rcx, qword [rdi]
or dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x140006b8e
cmp ebx, dword [rcx + 0x14]
jge 0x140006e33
call fcn.14000468c
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x140006e4c
mov rcx, qword [rdi]
call fcn.1400046e8
mov r11, qword [rdi]
cmp dword [r11 + 0x14], ebx
jl 0x140006e3b
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.140006618
mov dword [rdi + 8], ebx
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, r12
call fcn.1400067b8
xor esi, esi
mov ebx, eax
test eax, eax
jg 0x140006e85
mov rcx, qword [rdi]
call fcn.140004930
or dword [rdi + 8], 0xffffffff
cmp byte [rsp + 0x40], sil
je 0x140006e90
xor eax, eax
jmp 0x140006eab
test ebx, ebx
jle 0x140006e9b
mov eax, 0x600
jmp 0x140006eab
mov eax, 0x5000000
mov edx, 0x1000
cmp ebx, 0xffffff96
cmove eax, edx
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.140147000
mov rbx, qword [rsp + 0x3e8]
add rsp, 0x3b0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret