Function at 0x14000c880
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 0x14000cbf1
lea rdx, str.Writing_status_to_file:__s
mov r8, rdi
call fcn.1400137e0
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
xor edx, edx
call fcn.1400170d0
cmp byte [0x14004ec48], 0
je 0x14000c984
lea rcx, [rsp + 0x30]
call fcn.140013400
test eax, eax
je 0x14000c930
lea rsi, [rsp + 0x660]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.1400170d0
lea rcx, [0x1400437c8]
mov rdx, rsi
call fcn.140013500
test eax, eax
jne 0x14000cb66
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 0x14000cc32
lea rsi, str.WriteToFile_failed_to_get_secure_output_path
xor edi, edi
mov rdx, rsi
call fcn.1400137e0
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140027f60
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.140004090
lea rdx, [0x140044122]
lea rcx, [rsp + 0x30]
call fcn.140020e24
test rax, rax
je 0x14000caaa
mov rsi, rax
mov rcx, rdi
call fcn.1400237f0
mov r8d, 1
mov rcx, rdi
mov rdx, rax
mov r9, rsi
call fcn.140022c28
cmp rax, 1
jne 0x14000caea
mov dil, 1
cmp byte [0x14004ec48], 0
je 0x14000cb25
lea rbx, [rsp + 0x450]
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call fcn.1400170d0
mov rcx, rbx
call fcn.1400373e0
test eax, eax
je 0x14000ca77
lea rbx, [rsp + 0x240]
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call fcn.1400170d0
mov rcx, rbx
call fcn.140013400
test eax, eax
je 0x14000ca77
lea rbx, [rsp + 0x660]
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call fcn.1400170d0
lea rcx, [0x140043f94]
mov rdx, rbx
call fcn.140013500
test eax, eax
jne 0x14000cb85
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 0x14000cd13
lea rdx, str.WriteToFile_failed_to_write_secure_ID_file
call fcn.1400137e0
jmp 0x14000cb23
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 0x14000cc91
call fcn.14001c8b0
mov r8d, dword [rax]
lea rdx, str.WriteToFile_failed_to_open_status_file:__d
call fcn.1400137e0
xor edi, edi
jmp 0x14000c966
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 0x14000ccd2
call fcn.14001c8b0
mov r8d, dword [rax]
lea rdx, str.WriteToFile_failed_to_write_to_status_file:__d
call fcn.1400137e0
xor edi, edi
mov rcx, rsi
call fcn.1400222a4
test eax, eax
je 0x14000c966
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 0x14000cc7c
lea rsi, str.File_close_did_not_execute_successfully
jmp 0x14000c95e
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x660]
call fcn.140037390
test eax, eax
jne 0x14000c9ad
jmp 0x14000c930
lea rcx, [rsp + 0x240]
lea rdx, [rsp + 0x660]
call fcn.140037390
test eax, eax
je 0x14000ca77
lea rdx, [0x140044122]
lea rcx, [rsp + 0x240]
call fcn.140020e24
test rax, rax
je 0x14000ca77
mov rbx, rax
lea rdx, str._ls_n
lea r8, [rsp + 0x450]
mov rcx, rax
call fcn.1400371a0
mov ebp, eax
mov rcx, rbx
call fcn.1400222a4
cmp ebp, 0xffffffff
jne 0x14000cb25
jmp 0x14000ca77
lea rcx, [0x14004fe88]
call fcn.140015660
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000c8c5
mov qword [0x14004fc78], 0
lea rcx, [0x140003af0]
call fcn.1400157f8
lea rcx, [0x14004fe88]
call fcn.1400156c8
jmp 0x14000c8c5
lea rcx, [0x14004fe88]
call fcn.140015660
lea rsi, str.WriteToFile_failed_to_get_secure_output_path
xor edi, edi
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000c95e
mov qword [0x14004fc78], 0
lea rcx, [0x140003af0]
call fcn.1400157f8
lea rcx, [0x14004fe88]
call fcn.1400156c8
jmp 0x14000c95e
lea rcx, [0x14004fe88]
call fcn.140015660
lea rsi, str.File_close_did_not_execute_successfully
jmp 0x14000cc47
lea rcx, [0x14004fe88]
call fcn.140015660
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000cacf
mov qword [0x14004fc78], 0
lea rcx, [0x140003af0]
call fcn.1400157f8
lea rcx, [0x14004fe88]
call fcn.1400156c8
jmp 0x14000cacf
lea rcx, [0x14004fe88]
call fcn.140015660
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000cb0f
mov qword [0x14004fc78], 0
lea rcx, [0x140003af0]
call fcn.1400157f8
lea rcx, [0x14004fe88]
call fcn.1400156c8
jmp 0x14000cb0f
lea rcx, [0x14004fe88]
call fcn.140015660
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000ca9c
mov qword [0x14004fc78], 0
lea rcx, [0x140003af0]
call fcn.1400157f8
lea rcx, [0x14004fe88]
call fcn.1400156c8
jmp 0x14000ca9c