Function at 0x14000c990
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 0x14000cd01
lea rdx, str.Writing_status_to_file:__s
mov r8, rdi
call fcn.140013970
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
xor edx, edx
call fcn.140016ea0
cmp byte [0x14004ec48], 0
je 0x14000ca94
lea rcx, [rsp + 0x30]
call fcn.140013590
test eax, eax
je 0x14000ca40
lea rsi, [rsp + 0x660]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140016ea0
lea rcx, [0x1400437c6]
mov rdx, rsi
call fcn.140013690
test eax, eax
jne 0x14000cc76
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 0x14000cd42
lea rsi, str.WriteToFile_failed_to_get_secure_output_path
xor edi, edi
mov rdx, rsi
call fcn.140013970
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140027fe0
mov eax, edi
add rsp, 0x878
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rax, [0x1400437ba]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea r9, [0x14004e200]
lea rcx, [rsp + 0x30]
mov edx, 0x105
call fcn.140005c60
lea rdx, [0x140044120]
lea rcx, [rsp + 0x30]
call fcn.140020cdc
test rax, rax
je 0x14000cbba
mov rsi, rax
mov rcx, rdi
call fcn.1400236b0
mov r8d, 1
mov rcx, rdi
mov rdx, rax
mov r9, rsi
call fcn.140022ae0
cmp rax, 1
jne 0x14000cbfa
mov dil, 1
cmp byte [0x14004ec48], 0
je 0x14000cc35
lea rbx, [rsp + 0x450]
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call fcn.140016ea0
mov rcx, rbx
call fcn.1400374f0
test eax, eax
je 0x14000cb87
lea rbx, [rsp + 0x240]
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call fcn.140016ea0
mov rcx, rbx
call fcn.140013590
test eax, eax
je 0x14000cb87
lea rbx, [rsp + 0x660]
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call fcn.140016ea0
lea rcx, [0x140043f92]
mov rdx, rbx
call fcn.140013690
test eax, eax
jne 0x14000cc95
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 0x14000ce23
lea rdx, str.WriteToFile_failed_to_write_secure_ID_file
call fcn.140013970
jmp 0x14000cc33
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 0x14000cda1
call fcn.14001c700
mov r8d, dword [rax]
lea rdx, str.WriteToFile_failed_to_open_status_file:__d
call fcn.140013970
xor edi, edi
jmp 0x14000ca76
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 0x14000cde2
call fcn.14001c700
mov r8d, dword [rax]
lea rdx, str.WriteToFile_failed_to_write_to_status_file:__d
call fcn.140013970
xor edi, edi
mov rcx, rsi
call fcn.14002215c
test eax, eax
je 0x14000ca76
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 0x14000cd8c
lea rsi, str.File_close_did_not_execute_successfully
jmp 0x14000ca6e
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x660]
call fcn.1400374a0
test eax, eax
jne 0x14000cabd
jmp 0x14000ca40
lea rcx, [rsp + 0x240]
lea rdx, [rsp + 0x660]
call fcn.1400374a0
test eax, eax
je 0x14000cb87
lea rdx, [0x140044120]
lea rcx, [rsp + 0x240]
call fcn.140020cdc
test rax, rax
je 0x14000cb87
mov rbx, rax
lea rdx, str._ls_n
lea r8, [rsp + 0x450]
mov rcx, rax
call fcn.1400372b0
mov ebp, eax
mov rcx, rbx
call fcn.14002215c
cmp ebp, 0xffffffff
jne 0x14000cc35
jmp 0x14000cb87
lea rcx, [0x14004fe88]
call fcn.140015430
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000c9d5
mov qword [0x14004fc78], 0
lea rcx, [0x140008490]
call fcn.1400155c8
lea rcx, [0x14004fe88]
call fcn.140015498
jmp 0x14000c9d5
lea rcx, [0x14004fe88]
call fcn.140015430
lea rsi, str.WriteToFile_failed_to_get_secure_output_path
xor edi, edi
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000ca6e
mov qword [0x14004fc78], 0
lea rcx, [0x140008490]
call fcn.1400155c8
lea rcx, [0x14004fe88]
call fcn.140015498
jmp 0x14000ca6e
lea rcx, [0x14004fe88]
call fcn.140015430
lea rsi, str.File_close_did_not_execute_successfully
jmp 0x14000cd57
lea rcx, [0x14004fe88]
call fcn.140015430
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000cbdf
mov qword [0x14004fc78], 0
lea rcx, [0x140008490]
call fcn.1400155c8
lea rcx, [0x14004fe88]
call fcn.140015498
jmp 0x14000cbdf
lea rcx, [0x14004fe88]
call fcn.140015430
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000cc1f
mov qword [0x14004fc78], 0
lea rcx, [0x140008490]
call fcn.1400155c8
lea rcx, [0x14004fe88]
call fcn.140015498
jmp 0x14000cc1f
lea rcx, [0x14004fe88]
call fcn.140015430
cmp dword [0x14004fe88], 0xffffffff
jne 0x14000cbac
mov qword [0x14004fc78], 0
lea rcx, [0x140008490]
call fcn.1400155c8
lea rcx, [0x14004fe88]
call fcn.140015498
jmp 0x14000cbac