Function at 0x140005f80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov r14, rcx
xor r12d, r12d
mov dword [rbp + 0x140], r12d
cmp byte [rcx + 0x13b], r12b
je 0x1400063d6
mov byte [rcx + 0x13b], r12b
mov r15, qword [rcx + 0x3b0]
test r15, r15
je 0x1400063bb
add r15, 0xf8
je 0x1400063b4
mov rax, qword [r15 + 0x20]
sub rax, qword [r15 + 0x18]
sar rax, 3
test rax, rax
je 0x1400063b4
mov byte [rcx + 0x13a], 1
lea rcx, [rbp + 0xb0]
call fcn.14002b590
nop
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.140022fe0
nop
lea rcx, [rbp + 0xb0]
call fcn.140010a90
lea rdx, str.UninstallLogFailures.log
lea rcx, [rbp + 0x78]
call fcn.140015060
lea rax, [0x1401bd5f0]
mov qword [rsp + 0x30], rax
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x28], rax
mov edi, 1
mov dword [rbp + 0x140], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140004320
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call fcn.1400044e0
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x38], rax
mov byte [rbp - 0x4c], r12b
mov byte [rbp - 0x57], r12b
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x7c]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x68], r12
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x60], r12
mov qword [rbp - 0x48], r12
mov rax, qword [0x140241e90]
mov qword [rbp - 0x54], rax
mov qword [rbp - 0x60], r12
mov r13d, 2
mov r8d, r13d
lea rdx, [rbp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.14002d2d0
cmp qword [rbp - 0x48], r12
je 0x14000639e
lea rdx, str.The_following_items_failed_to_uninstall_properly__please_manually_delete_them...
lea rcx, [rsp + 0x30]
call fcn.1400038b0
mov rcx, rax
call fcn.140004050
mov esi, r12d
mov rcx, qword [r15 + 0x20]
mov rdx, qword [r15 + 0x18]
mov rax, rcx
sub rax, rdx
sar rax, 3
test rax, rax
je 0x140006210
nop dword [rax + rax]
sub rcx, rdx
sar rcx, 3
cmp rsi, rcx
jae 0x140006196
mov rbx, qword [rdx + rsi*8]
mov qword [rbp + 0x148], rbx
test rbx, rbx
je 0x1400061a0
mov rcx, rbx
call fcn.140010430
jmp 0x1400061a0
mov rbx, r12
mov qword [rbp + 0x148], rbx
or edi, 4
or edi, 2
mov dword [rbp + 0x140], edi
test rbx, rbx
jne 0x1400061b3
jmp 0x1400061f2
lea rdx, [rbx + 0x40]
cmp qword [rdx + 0x18], 0x10
jb 0x1400061c1
mov rdx, qword [rdx]
lea rcx, [rsp + 0x30]
call fcn.1400038b0
mov rcx, rax
call fcn.140004050
nop
lea rcx, [rbx + 0x10]
call fcn.140001c70
mov ecx, dword [rax]
mov rcx, qword [rbp + 0x148]
call fcn.140010440
nop
mov edi, dword [rbp + 0x140]
inc rsi
mov rcx, qword [r15 + 0x20]
mov rdx, qword [r15 + 0x18]
mov rax, rcx
sub rax, rdx
sar rax, 3
cmp rsi, rax
jb 0x140006170
cmp qword [rbp - 0x48], 0
je 0x14000629d
cmp qword [rbp - 0x60], 0
je 0x140006283
cmp byte [rbp - 0x57], 0
je 0x140006283
mov edx, 0xffffffff
lea rcx, [rsp + 0x38]
mov rax, qword [rsp + 0x38]
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x140006243
xor al, al
jmp 0x140006285
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x60]
lea r8, [rbp + 0x40]
lea rdx, [rbp - 0x54]
call qword [rax + 0x40]
test eax, eax
je 0x140006353
sub eax, 1
je 0x140006357
cmp eax, 2
je 0x14000627f
xor al, al
jmp 0x140006285
mov byte [rbp - 0x57], 0
mov al, 1
lea rbx, [rsp + 0x38]
test al, al
cmove rbx, r12
mov rcx, qword [rbp - 0x48]
call fcn.140174eb8
test eax, eax
je 0x1400062a0
mov rbx, r12
mov byte [rbp - 0x4c], 0
mov byte [rbp - 0x57], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x7c]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x68], r12
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x60], r12
mov qword [rbp - 0x48], r12
mov rax, qword [0x140241e90]
mov qword [rbp - 0x54], rax
mov qword [rbp - 0x60], r12
test rbx, rbx
jne 0x140006394
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov eax, 6
cmp qword [rsp + rcx + 0x78], rbx
cmovne eax, r13d
or eax, dword [rsp + rcx + 0x40]
and eax, 0x17
mov dword [rsp + rcx + 0x40], eax
mov edx, dword [rsp + rcx + 0x44]
and edx, eax
je 0x140006394
test dl, 4
je 0x14000647a
lea rbx, str.ios_base::badbit_set
jmp 0x14000648f
mov byte [rbp - 0x57], 0
lea rax, [rbp + 0x40]
mov rbx, qword [rbp + 0x150]
sub rbx, rax
je 0x140006388
mov r9, qword [rbp - 0x48]
mov r8, rbx
mov edx, 1
lea rcx, [rbp + 0x40]
call fcn.140175d14
cmp rbx, rax
je 0x140006388
xor al, al
jmp 0x140006285
cmp byte [rbp - 0x57], 0
sete al
jmp 0x140006285
lea rcx, [rbp + 0x60]
call fcn.140081820
nop
lea rcx, [rsp + 0x30]
call fcn.140004e60
nop
lea rcx, [rbp + 0x60]
call fcn.140023130
jmp 0x1400063bb
mov byte [rcx + 0x13a], r12b
mov rcx, r14
call fcn.140005ca0
lea rcx, [r14 + 0x2c8]
call fcn.140080390
xor al, al
jmp 0x14000645f
cmp byte [rcx + 0x138], r12b
je 0x1400063cf
mov rcx, qword [rcx + 0x350]
test rcx, rcx
je 0x140006418
mov rax, qword [rcx]
mov dl, 1
call qword [rax + 0x188]
mov rbx, qword [r14 + 0x350]
mov rdi, qword [rbx]
lea rcx, [r14 + 0x140]
call fcn.140027500
movaps xmm1, xmm0
mov rcx, rbx
call qword [rdi + 0x240]
mov rdx, qword [r14 + 0x3a8]
test rdx, rdx
je 0x14000645d
mov rbx, qword [r14 + 0x128]
add rdx, 0x68
cmp qword [rdx + 0x18], 0x10
jb 0x140006439
mov rdx, qword [rdx]
lea rcx, [rbp + 0x60]
call fcn.1400230c0
nop
mov r8, qword [rbx]
mov rdx, rax
mov rcx, rbx
call qword [r8 + 0x368]
nop
lea rcx, [rbp + 0x60]
call fcn.140023130
mov al, 1
mov rbx, qword [rsp + 0x258]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0xe8]
call fcn.140007150
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0xb0]
call fcn.1400049f0
lea rdx, [0x140233750]
lea rcx, [rbp + 0xb0]
call fcn.14016534c
int3
mov rcx, qword [rcx + 8]
jmp 0x140005f80