Function at 0x14005c354
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x130
lea rbp, [rsp + 0x40]
mov qword [rbp + 0xb8], rdi
mov qword [rbp + 0xb0], rsi
mov qword [rbp + 0xa8], rbx
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x100], rcx
mov dword [rbp + 0x108], edx
mov rax, qword [0x1400e0a40]
xor rax, rbp
mov qword [rbp + 0xe0], rax
mov eax, 0xffffffff
mov edx, dword [rbp + 0x108]
mov ecx, eax
call fcn.14005b480
mov byte [rbp], al
movzx eax, byte [rbp]
movzx eax, al
test eax, eax
je 0x14005c410
mov eax, dword [rbp + 0x108]
mov ecx, eax
call fcn.14005b4b8
mov dword [rbp + 8], eax
mov eax, dword [rbp + 8]
mov dword [rbp + 0x1c], eax
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0xe0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x1c]
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
mov rdi, qword [rbp + 0xb8]
lea rsp, [rbp + 0xf0]
pop rbp
ret
mov rax, qword [rbp + 0x100]
mov rdx, qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rcx, rax
call rdx
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x14005c4ee
mov rax, qword [rbp + 0x100]
mov rdx, qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rcx, rax
call rdx
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x100]
mov rdx, qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rax
call rdx
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x60]
cmp rax, rdx
jae 0x14005c4ee
mov eax, dword [rbp + 0x108]
mov ecx, eax
call fcn.14005b434
mov byte [rbp + 1], al
movsx eax, byte [rbp + 1]
mov byte [rbp + 4], al
mov rax, qword [rbp + 0x100]
mov rdx, qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov rcx, rax
call rdx
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
movsx edx, byte [rbp + 4]
mov byte [rax], dl
mov eax, dword [rbp + 0x108]
mov dword [rbp + 0x20], eax
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0xe0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x20]
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
mov rdi, qword [rbp + 0xb8]
lea rsp, [rbp + 0xf0]
pop rbp
ret
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x80]
test rax, rax
jne 0x14005c547
mov eax, 0xffffffff
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0xe0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x24]
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
mov rdi, qword [rbp + 0xb8]
lea rsp, [rbp + 0xf0]
pop rbp
ret
mov rax, qword [rbp + 0x100]
mov rcx, rax
call fcn.14005e24c
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x68]
test rax, rax
jne 0x14005c5f7
mov eax, dword [rbp + 0x108]
mov ecx, eax
call fcn.14005b434
mov byte [rbp + 2], al
movsx eax, byte [rbp + 2]
mov rdx, qword [rbp + 0x100]
mov rdx, qword [rdx + 0x80]
mov ecx, eax
call fcn.14005fafc
mov byte [rbp + 5], al
movzx eax, byte [rbp + 5]
movzx eax, al
test eax, eax
jne 0x14005c5aa
mov dword [rbp + 0x14], 0xffffffff
jmp 0x14005c5b3
mov eax, dword [rbp + 0x108]
mov dword [rbp + 0x14], eax
mov eax, dword [rbp + 0x14]
mov dword [rbp + 0x28], eax
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0xe0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x28]
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
mov rdi, qword [rbp + 0xb8]
lea rsp, [rbp + 0xf0]
pop rbp
ret
mov qword [rbp + 0x68], 0x20
mov eax, dword [rbp + 0x108]
mov ecx, eax
call fcn.14005b434
mov byte [rbp + 3], al
movsx eax, byte [rbp + 3]
mov byte [rbp + 6], al
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x68]
mov rdx, qword [rbp + 0x100]
lea rdx, [rdx + 0x74]
lea rcx, [rbp + 6]
lea rbx, [rbp + 6]
inc rbx
lea rsi, [rbp + 0x78]
mov qword [rsp + 0x20], rsi
lea rsi, [rbp + 0xc0]
mov qword [rsp + 0x28], rsi
lea rsi, [rbp + 0xc0]
mov edi, 0x20
add rsi, rdi
mov qword [rsp + 0x30], rsi
lea rsi, [rbp + 0x80]
mov qword [rsp + 0x38], rsi
mov rsi, qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov qword [rbp + 0x98], rcx
mov rcx, rax
mov rax, qword [rbp + 0x98]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0xc], eax
mov eax, dword [rbp + 0xc]
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
cmp eax, 1
jbe 0x14005c6ae
mov eax, dword [rbp + 0x10]
cmp eax, 3
je 0x14005c81c
jmp 0x14005c899
lea rax, [rbp + 0xc0]
neg rax
add rax, qword [rbp + 0x80]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
test rax, rax
jbe 0x14005c777
lea rax, [rbp + 0xc0]
mov edx, 1
mov rcx, qword [rbp + 0x88]
mov rbx, qword [rbp + 0x100]
mov rbx, qword [rbx + 0x80]
mov rsi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov qword [rbp + 0xa0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xa0]
mov r8, rax
mov r9, rbx
call rsi
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x90]
cmp rax, rdx
je 0x14005c777
mov eax, 0xffffffff
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0xe0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x2c]
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
mov rdi, qword [rbp + 0xb8]
lea rsp, [rbp + 0xf0]
pop rbp
ret
mov rax, qword [rbp + 0x100]
mov byte [rax + 0x71], 1
mov rax, qword [rbp + 0x78]
lea rdx, [rbp + 6]
cmp rax, rdx
je 0x14005c7d6
mov eax, dword [rbp + 0x108]
mov dword [rbp + 0x30], eax
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0xe0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x30]
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
mov rdi, qword [rbp + 0xb8]
lea rsp, [rbp + 0xf0]
pop rbp
ret
mov eax, 0xffffffff
mov dword [rbp + 0x34], eax
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0xe0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x34]
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
mov rdi, qword [rbp + 0xb8]
lea rsp, [rbp + 0xf0]
pop rbp
ret
movsx eax, byte [rbp + 6]
mov rdx, qword [rbp + 0x100]
mov rdx, qword [rdx + 0x80]
mov ecx, eax
call fcn.14005fafc
mov byte [rbp + 7], al
movzx eax, byte [rbp + 7]
movzx eax, al
test eax, eax
jne 0x14005c84c
mov dword [rbp + 0x18], 0xffffffff
jmp 0x14005c855
mov eax, dword [rbp + 0x108]
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
mov dword [rbp + 0x38], eax
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0xe0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x38]
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
mov rdi, qword [rbp + 0xb8]
lea rsp, [rbp + 0xf0]
pop rbp
ret
mov eax, 0xffffffff
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0xe0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x3c]
mov rbx, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
mov rdi, qword [rbp + 0xb8]
lea rsp, [rbp + 0xf0]
pop rbp
ret