Function at 0x14000c800
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x878
mov rdi, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000cb71
lea rdx, str.Writing_status_to_file:__s
mov r8, rdi
call fcn.140013720
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
xor edx, edx
call fcn.140017010
cmp byte [0x14004ec48], 0
je 0x14000c904
lea rcx, [rsp + 0x30]
call fcn.140013340
test eax, eax
je 0x14000c8b0
lea rsi, [rsp + 0x660]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140017010
lea rcx, [0x1400437c8]
mov rdx, rsi
call fcn.140013440
test eax, eax
jne 0x14000cae6
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000cbb2
lea rsi, str.WriteToFile_failed_to_get_secure_output_path
xor edi, edi
mov rdx, rsi
call fcn.140013720
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140027ea0
mov eax, edi
add rsp, 0x878
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rax, [0x1400437bc]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea r9, [0x14004e200]
lea rcx, [rsp + 0x30]
mov edx, 0x105
call fcn.140004010
lea rdx, [0x140044122]
lea rcx, [rsp + 0x30]
call fcn.140020d64
test rax, rax
je 0x14000ca2a
mov rsi, rax
mov rcx, rdi
call fcn.140023730
mov r8d, 1
mov rcx, rdi
mov rdx, rax
mov r9, rsi
call fcn.140022b68
cmp rax, 1
jne 0x14000ca6a
mov dil, 1
cmp byte [0x14004ec48], 0
je 0x14000caa5
lea rbx, [rsp + 0x450]
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call fcn.140017010
mov rcx, rbx
call fcn.140037320
test eax, eax
je 0x14000c9f7
lea rbx, [rsp + 0x240]
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call fcn.140017010
mov rcx, rbx
call fcn.140013340
test eax, eax
je 0x14000c9f7
lea rbx, [rsp + 0x660]
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call fcn.140017010
lea rcx, [0x140043f94]
mov rdx, rbx
call fcn.140013440
test eax, eax
jne 0x14000cb05
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000cc93
lea rdx, str.WriteToFile_failed_to_write_secure_ID_file
call fcn.140013720
jmp 0x14000caa3
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000cc11
call fcn.14001c7f0
mov r8d, dword [rax]
lea rdx, str.WriteToFile_failed_to_open_status_file:__d
call fcn.140013720
xor edi, edi
jmp 0x14000c8e6
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000cc52
call fcn.14001c7f0
mov r8d, dword [rax]
lea rdx, str.WriteToFile_failed_to_write_to_status_file:__d
call fcn.140013720
xor edi, edi
mov rcx, rsi
call fcn.1400221e4
test eax, eax
je 0x14000c8e6
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000cbfc
lea rsi, str.File_close_did_not_execute_successfully
jmp 0x14000c8de
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x660]
call fcn.1400372d0
test eax, eax
jne 0x14000c92d
jmp 0x14000c8b0
lea rcx, [rsp + 0x240]
lea rdx, [rsp + 0x660]
call fcn.1400372d0
test eax, eax
je 0x14000c9f7
lea rdx, [0x140044122]
lea rcx, [rsp + 0x240]
call fcn.140020d64
test rax, rax
je 0x14000c9f7
mov rbx, rax
lea rdx, str._ls_n
lea r8, [rsp + 0x450]
mov rcx, rax
call fcn.1400370e0
mov ebp, eax
mov rcx, rbx
call fcn.1400221e4
cmp ebp, 0xffffffff
jne 0x14000caa5
jmp 0x14000c9f7
lea rcx, [0x14004fe88]
call fcn.1400155a0
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000c845
mov qword [0x14004fc78], 0
lea rcx, [0x140003a70]
call fcn.140015738
lea rcx, [0x14004fe88]
call fcn.140015608
jmp 0x14000c845
lea rcx, [0x14004fe88]
call fcn.1400155a0
lea rsi, str.WriteToFile_failed_to_get_secure_output_path
xor edi, edi
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000c8de
mov qword [0x14004fc78], 0
lea rcx, [0x140003a70]
call fcn.140015738
lea rcx, [0x14004fe88]
call fcn.140015608
jmp 0x14000c8de
lea rcx, [0x14004fe88]
call fcn.1400155a0
lea rsi, str.File_close_did_not_execute_successfully
jmp 0x14000cbc7
lea rcx, [0x14004fe88]
call fcn.1400155a0
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000ca4f
mov qword [0x14004fc78], 0
lea rcx, [0x140003a70]
call fcn.140015738
lea rcx, [0x14004fe88]
call fcn.140015608
jmp 0x14000ca4f
lea rcx, [0x14004fe88]
call fcn.1400155a0
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000ca8f
mov qword [0x14004fc78], 0
lea rcx, [0x140003a70]
call fcn.140015738
lea rcx, [0x14004fe88]
call fcn.140015608
jmp 0x14000ca8f
lea rcx, [0x14004fe88]
call fcn.1400155a0
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000ca1c
mov qword [0x14004fc78], 0
lea rcx, [0x140003a70]
call fcn.140015738
lea rcx, [0x14004fe88]
call fcn.140015608
jmp 0x14000ca1c