Function at 0x14000c920
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x3b0
mov rax, qword [0x14027dea0]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov r12d, dword [rsp + 0x3f0]
mov ebp, r9d
mov rsi, r8
mov ebx, edx
mov rdi, rcx
cmp r12d, 3
je 0x14000cc27
cmp r12d, 2
je 0x14000c97a
cmp r12d, 1
je 0x14000c97a
mov eax, 0x10000
jmp 0x14000ccd1
cmp dword [rcx + 8], 0xffffffff
je 0x14000c988
mov rcx, qword [rcx]
call fcn.14000a3f0
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x14000c970
cmp ebx, dword [rcx + 0x14]
jge 0x14000c9a1
call fcn.14000a120
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x14000c9c1
nop dword [rax]
mov rcx, qword [rdi]
call fcn.14000a180
mov r11, qword [rdi]
cmp dword [r11 + 0x14], ebx
jl 0x14000c9b0
lea r8, [rsp + 0x50]
mov edx, ebx
mov rcx, rdi
call fcn.14000a640
test byte [rsp + 0x158], 0x10
je 0x14000ca1c
cmp r12d, 1
je 0x14000ca15
movzx eax, byte [rsi]
cmp al, 0x2f
je 0x14000ca0b
cmp al, 0x5c
je 0x14000ca0b
test al, al
je 0x14000c9f5
cmp byte [rsi + 1], 0x3a
je 0x14000ca0b
lea rcx, [rdi + 0x150]
mov rdx, rsi
call fcn.14000ab90
xor eax, eax
jmp 0x14000ccd1
xor ecx, ecx
mov rdx, rsi
call fcn.14000ab90
xor eax, eax
jmp 0x14000ccd1
xor ebp, ebp
cmp r12d, 1
je 0x14000cb3b
movzx eax, byte [rsi]
mov r9, rsi
mov rcx, rsi
test al, al
je 0x14000ca4c
cmp al, 0x2f
je 0x14000ca3d
cmp al, 0x5c
jne 0x14000ca41
lea r9, [rcx + 1]
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x14000ca35
lea rdx, [rsp + 0x180]
mov rcx, rsi
sub rdx, rsi
nop word [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rdx + rcx - 1], al
test al, al
jne 0x14000ca60
cmp r9, rsi
jne 0x14000ca7d
mov byte [rsp + 0x180], bpl
jmp 0x14000caa9
mov rax, r9
sub rax, rsi
mov byte [rsp + rax + 0x180], bpl
movzx eax, byte [rsp + 0x180]
cmp al, 0x2f
je 0x14000cadb
cmp al, 0x5c
je 0x14000cadb
test al, al
je 0x14000caa9
cmp byte [rsp + 0x181], 0x3a
je 0x14000cadb
mov qword [rsp + 0x20], r9
lea r8, [rdi + 0x150]
lea rdx, [0x1401dc844]
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x290]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rdi + 0x150]
jmp 0x14000cafa
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.14000ab90
mov eax, dword [rsp + 0x158]
mov qword [rsp + 0x30], rbp
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 rsi, 0xffffffffffffffff
jne 0x14000cb4b
mov eax, 0x200
jmp 0x14000ccd1
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.14000c340
cmp qword [rdi + 0x148], rbp
jne 0x14000cb80
mov ecx, 0x4000
call fcn.14000cfc4
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.14000c520
mov ebx, eax
cmp eax, 0xffffff96
je 0x14000cc04
test eax, eax
js 0x14000cbd3
jle 0x14000cbc8
mov rdx, qword [rdi + 0x148]
lea r9, [rsp + 0x44]
mov r8d, eax
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000cbda
cmp byte [rsp + 0x40], bpl
jne 0x14000cbe1
test ebx, ebx
jne 0x14000cb80
mov ebp, 0x5000000
jmp 0x14000cc09
mov ebp, 0x400
jmp 0x14000cc09
lea r9, [rsp + 0x16c]
lea r8, [rsp + 0x15c]
lea rdx, [rsp + 0x164]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x14000cc09
mov ebp, 0x1000
cmp r12d, 1
je 0x14000cc18
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.14000a3f0
mov eax, ebp
jmp 0x14000ccd1
mov eax, dword [rcx + 8]
cmp edx, eax
je 0x14000cc83
cmp eax, 0xffffffff
je 0x14000cc3b
mov rcx, qword [rcx]
call fcn.14000a3f0
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x14000c970
cmp ebx, dword [rcx + 0x14]
jge 0x14000cc58
call fcn.14000a120
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x14000cc71
mov rcx, qword [rdi]
call fcn.14000a180
mov r11, qword [rdi]
cmp dword [r11 + 0x14], ebx
jl 0x14000cc60
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.14000c340
mov dword [rdi + 8], ebx
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rsi
call fcn.14000c520
mov ebx, eax
test eax, eax
jg 0x14000ccab
mov rcx, qword [rdi]
call fcn.14000a3f0
mov dword [rdi + 8], 0xffffffff
cmp byte [rsp + 0x40], 0
jne 0x14000ca15
test ebx, ebx
jle 0x14000ccc1
mov eax, 0x600
jmp 0x14000ccd1
mov eax, 0x5000000
mov edx, 0x1000
cmp ebx, 0xffffff96
cmove eax, edx
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.14016c130
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret