Function at 0x14000c120
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x140279c48]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp edx, 0xffffffff
je 0x14000c1a0
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14000c17a
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x14000c17a
add ecx, 0xffffffff
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x14000c355
cmp qword [rdi + 0x80], 0
je 0x14000c1a7
cmp dword [0x14027a130], 0xa
jl 0x14000c1b1
mov eax, dword [0x14027a134]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
jne 0x14000c1f7
jmp 0x14000c1b1
xor esi, esi
jmp 0x14000c355
mov esi, 0xffffffff
jmp 0x14000c355
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x14000c1dd
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
cmp dword [0x14027a130], 0xa
jl 0x14000c225
mov eax, dword [0x14027a134]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x14000c225
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x14000c1b1
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
jmp 0x14000c1b1
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x14000c2b6
mov byte [rsp + 0x5f], sil
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov rbp, qword [rcx]
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea r15, [rsp + 0x60]
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r14, [rsp + 0x5f]
mov r8, r14
call qword [rbp + gethostname]
mov ebp, 0xffffffff
cmp eax, 3
jge 0x14000c2d2
cmp eax, 1
ja 0x14000c353
mov rbx, qword [rsp + 0x48]
sub rbx, r15
je 0x14000c340
cmp dword [0x14027a130], 0xa
jl 0x14000c2eb
mov eax, dword [0x14027a134]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
jne 0x14000c31f
jmp 0x14000c2eb
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x14000c355
jne 0x14000c353
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x5f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
jmp 0x14000c34e
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x60]
mov edx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp dword [0x14027a130], 0xa
jl 0x14000c33b
mov ecx, dword [0x14027a134]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x14000c33b
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x60]
mov edx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x14000c2eb
cmp rbx, rax
jne 0x14000c353
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], r14
mov eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400c4bd0
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret