Function at 0x14005dec4
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0xe0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0xc0], rcx
mov rax, qword [0x1400e0a40]
xor rax, rbp
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + 0x68]
test rax, rax
je 0x14005df17
mov rax, qword [rbp + 0xc0]
movzx eax, byte [rax + 0x71]
movzx eax, al
test eax, eax
jne 0x14005df50
mov eax, 1
mov dword [rbp + 0x10], eax
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0xa0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x10]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0xb0]
pop rbp
ret
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov edx, 3
movsxd rdx, edx
imul rdx, rdx, 8
add rdx, qword [rax]
mov rax, qword [rdx]
mov rdx, qword [rbp + 0x30]
mov ecx, 0xffffffff
mov dword [rbp + 0x58], ecx
mov rcx, rdx
mov edx, dword [rbp + 0x58]
call rax
mov dword [rbp + 4], eax
mov eax, 0xffffffff
mov edx, dword [rbp + 4]
mov ecx, eax
call fcn.14005b480
mov byte [rbp], al
movzx eax, byte [rbp]
movzx eax, al
test eax, eax
je 0x14005dfde
mov eax, 0
mov dword [rbp + 0x14], eax
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0xa0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x14]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0xb0]
pop rbp
ret
mov qword [rbp + 0x38], 0x20
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + 0x68]
mov rdx, qword [rbp + 0xc0]
lea rdx, [rdx + 0x74]
lea rcx, [rbp + 0x80]
lea rbx, [rbp + 0x80]
mov esi, 0x20
add rbx, rsi
lea rsi, [rbp + 0x40]
mov qword [rsp + 0x20], rsi
mov rsi, qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov qword [rbp + 0x60], rcx
mov rcx, rax
mov rax, qword [rbp + 0x60]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 8], eax
mov eax, dword [rbp + 8]
mov dword [rbp + 0xc], eax
mov eax, dword [rbp + 0xc]
test eax, eax
je 0x14005e05e
mov eax, dword [rbp + 0xc]
cmp eax, 1
je 0x14005e069
mov eax, dword [rbp + 0xc]
cmp eax, 3
je 0x14005e156
jmp 0x14005e19a
mov rax, qword [rbp + 0xc0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x80]
neg rax
add rax, qword [rbp + 0x40]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
test rax, rax
jbe 0x14005e10a
lea rax, [rbp + 0x80]
mov edx, 1
mov rcx, qword [rbp + 0x48]
mov rbx, qword [rbp + 0xc0]
mov rbx, qword [rbx + 0x80]
mov rsi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov qword [rbp + 0x68], rcx
mov rcx, rax
mov rax, qword [rbp + 0x68]
mov r8, rax
mov r9, rbx
call rsi
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x50]
cmp rax, rdx
je 0x14005e10a
mov eax, 0
mov dword [rbp + 0x18], eax
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0xa0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x18]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0xb0]
pop rbp
ret
mov rax, qword [rbp + 0xc0]
movzx eax, byte [rax + 0x71]
movzx eax, al
mov edx, 0
test eax, eax
sete dl
mov dword [rbp + 0x1c], edx
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0xa0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x1c]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0xb0]
pop rbp
ret
mov rax, qword [rbp + 0xc0]
mov byte [rax + 0x71], 0
mov eax, 1
mov dword [rbp + 0x20], eax
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0xa0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x20]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0xb0]
pop rbp
ret
mov eax, 0
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0xa0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x24]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0xb0]
pop rbp
ret