Function at 0x140001ae2
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x248
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1e0], rcx
mov qword [rbp + 0x1e8], rdx
mov qword [rbp + 0x1f0], r8
mov dword [rbp + 0x1f8], r9d
mov dword [rbp + 0x1bc], 0
mov qword [rbp + 0x1a0], 0
mov qword [rbp + 0x198], 0
mov dword [rbp + 0x1b8], 0
mov qword [rbp - 0x30], 0
cmp qword [rbp + 0x1e0], 0
jne 0x140001b6f
lea r8, str.directory___NULL
lea rax, str.program_Iterate
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_return_if_fail_warning]
call rax
jmp 0x140002557
cmp qword [rbp + 0x1e8], 0
jne 0x140001b9d
lea r8, str.settings___NULL
lea rax, str.program_Iterate
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_return_if_fail_warning]
call rax
jmp 0x140002557
mov dword [rbp + 0x1bc], 0
mov qword [rbp + 0x1a0], 0
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x1e0]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_dir_open]
call rax
mov qword [rbp + 0x190], rax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x198], rax
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x140001c5b
mov rax, qword [rbp - 0x30]
mov ebx, dword [rax + 4]
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_quark_to_string]
call rax
mov rdx, qword [rbp - 0x30]
mov rdx, qword [rdx + 8]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x19d
lea r9, str.C:_msys64_home_poco_main.vala.c
lea r8, [0x1400150e0]
mov edx, 8
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_log]
call rax
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_clear_error]
call rax
jmp 0x140002557
mov dword [rbp + 0x18c], 0
mov qword [rbp + 0x180], 0
mov dword [rbp + 0x1b4], 0
mov dword [rbp + 0x1b0], 0
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x178], rax
mov rax, qword [rbp + 0x178]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_dir_read_name]
call rax
mov qword [rbp + 0x170], rax
mov rax, qword [rbp + 0x170]
mov qword [rbp + 0x1a0], rax
mov rax, qword [rbp + 0x1a0]
mov qword [rbp + 0x168], rax
cmp qword [rbp + 0x168], 0
je 0x14000238c
mov rax, qword [rbp + 0x1a0]
mov qword [rbp + 0x160], rax
mov rax, qword [rbp + 0x160]
mov edx, 0
mov rcx, rax
call sym.string_get
cmp al, 0x2e
sete al
movzx eax, al
mov dword [rbp + 0x18c], eax
mov rax, qword [rbp + 0x1a0]
mov qword [rbp + 0x158], rax
mov rdx, qword [rbp + 0x158]
mov rax, qword [rbp + 0x1e0]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_build_filename]
call rax
mov qword [rbp + 0x150], rax
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x180], rax
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0x148]
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_file_test]
call rax
test eax, eax
je 0x140001db7
mov rax, qword [rbp + 0x1e8]
mov rcx, rax
call sym.settings_get_EncryptHiddenFiles
mov dword [rbp + 0x144], eax
mov eax, dword [rbp + 0x144]
mov dword [rbp + 0x140], eax
cmp dword [rbp + 0x140], 0
sete al
movzx eax, al
and eax, dword [rbp + 0x18c]
test eax, eax
sete al
movzx eax, al
mov dword [rbp + 0x1b0], eax
jmp 0x140001dc1
mov dword [rbp + 0x1b0], 0
cmp dword [rbp + 0x1b0], 0
je 0x140001ef1
mov dword [rbp - 0x34], 0
mov dword [rbp - 0x38], 0
mov rax, qword [rbp + 0x1a0]
mov qword [rbp + 0x138], rax
mov rax, qword [rbp + 0x1e8]
mov rcx, rax
call sym.settings_get_IncludeFiles
mov dword [rbp + 0x134], eax
mov eax, dword [rbp + 0x134]
mov dword [rbp + 0x130], eax
lea rdx, [rbp - 0x34]
mov rax, qword [rbp + 0x1e8]
mov rcx, rax
call sym.settings_get_FileSet
mov qword [rbp + 0x128], rax
mov eax, dword [rbp - 0x34]
mov dword [rbp + 0x124], eax
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0x118], rax
mov eax, dword [rbp + 0x124]
mov dword [rbp + 0x114], eax
mov rax, qword [rbp + 0x1e8]
mov rcx, rax
call sym.settings_get_IncludeExtensions
mov dword [rbp + 0x110], eax
mov eax, dword [rbp + 0x110]
mov dword [rbp + 0x10c], eax
lea rdx, [rbp - 0x38]
mov rax, qword [rbp + 0x1e8]
mov rcx, rax
call sym.settings_get_ExtensionsSet
mov qword [rbp + 0x100], rax
mov eax, dword [rbp - 0x38]
mov dword [rbp + 0xfc], eax
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0xf0], rax
mov eax, dword [rbp + 0xfc]
mov dword [rbp + 0xec], eax
mov r9d, dword [rbp + 0x114]
mov r8, qword [rbp + 0x118]
mov edx, dword [rbp + 0x130]
mov rax, qword [rbp + 0x138]
mov ecx, dword [rbp + 0xec]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp + 0xf0]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rbp + 0x10c]
mov dword [rsp + 0x20], ecx
mov rcx, rax
call sym.program_Filter
mov dword [rbp + 0x1b4], eax
jmp 0x140001efb
mov dword [rbp + 0x1b4], 0
cmp dword [rbp + 0x1b4], 0
je 0x1400021bf
mov rax, qword [0x14001a038]
mov qword [rbp + 0x98], rax
mov rax, qword [0x14001a040]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x88], rax
lea r8, [rbp - 0x30]
mov rcx, qword [rbp + 0x90]
mov rdx, qword [rbp + 0x1e8]
mov rax, qword [rbp + 0x88]
mov r10, qword [rbp + 0x98]
mov r9, r8
mov r8, rcx
mov rcx, rax
call r10
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x140002030
mov rax, qword [rbp - 0x30]
mov ebx, dword [rax]
call sym.error_type_quark
cmp ebx, eax
je 0x1400020ef
mov rax, qword [rbp + 0x180]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x180], 0
cmp qword [rbp + 0x198], 0
je 0x140001fc4
mov rax, qword [rbp + 0x198]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_dir_close]
call rax
mov qword [rbp + 0x198], 0
mov rax, qword [rbp - 0x30]
mov ebx, dword [rax + 4]
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_quark_to_string]
call rax
mov rdx, qword [rbp - 0x30]
mov rdx, qword [rdx + 8]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x1fb
lea r9, str.C:_msys64_home_poco_main.vala.c
lea r8, str.file__s:_line__d:_unexpected_error:__s___s___d_
mov edx, 8
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_log]
call rax
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_clear_error]
call rax
jmp 0x140002557
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov rcx, rax
call sym.string_to_string
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x1e8]
mov rcx, rax
call sym.settings_get_AppendedExtension
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x60]
mov rcx, rax
call sym.string_to_string
mov qword [rbp + 0x58], rax
mov rdx, qword [rbp + 0x58]
mov rax, qword [rbp + 0x70]
mov r9d, 0
mov r8, rdx
lea rdx, [0x140015098]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_strconcat]
call rax
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x48], rax
mov rdx, qword [rbp + 0x48]
mov rax, qword [rbp + 0x80]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_rename]
call rax
mov rax, qword [rbp + 0x48]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x48], 0
mov dword [rbp + 0x1bc], 1
jmp 0x140002100
nop
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_clear_error]
call rax
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x140002369
mov rax, qword [rbp + 0x180]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x180], 0
cmp qword [rbp + 0x198], 0
je 0x140002153
mov rax, qword [rbp + 0x198]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_dir_close]
call rax
mov qword [rbp + 0x198], 0
mov rax, qword [rbp - 0x30]
mov ebx, dword [rax + 4]
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_quark_to_string]
call rax
mov rdx, qword [rbp - 0x30]
mov rdx, qword [rdx + 8]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x214
lea r9, str.C:_msys64_home_poco_main.vala.c
lea r8, [0x1400150e0]
mov edx, 8
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_log]
call rax
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_clear_error]
call rax
jmp 0x140002557
mov dword [rbp + 0x1ac], 0
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp + 0xe0]
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_file_test]
call rax
test eax, eax
je 0x140002237
mov rax, qword [rbp + 0x1e8]
mov rcx, rax
call sym.settings_get_EncryptHiddenDirectories
mov dword [rbp + 0xdc], eax
mov eax, dword [rbp + 0xdc]
mov dword [rbp + 0xd8], eax
cmp dword [rbp + 0xd8], 0
sete al
movzx eax, al
and eax, dword [rbp + 0x18c]
test eax, eax
sete al
movzx eax, al
mov dword [rbp + 0x1ac], eax
jmp 0x140002241
mov dword [rbp + 0x1ac], 0
cmp dword [rbp + 0x1ac], 0
je 0x140002369
mov dword [rbp + 0x1a8], 0
mov rax, qword [rbp + 0x1e8]
mov rcx, rax
call sym.settings_get_IncludeDirectories
mov dword [rbp + 0xd4], eax
mov eax, dword [rbp + 0xd4]
mov dword [rbp + 0xd0], eax
cmp dword [rbp + 0xd0], 0
jne 0x1400022fe
mov dword [rbp - 0x3c], 0
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0xc8], rax
lea rdx, [rbp - 0x3c]
mov rax, qword [rbp + 0x1e8]
mov rcx, rax
call sym.settings_get_DirectorySet
mov qword [rbp + 0xc0], rax
mov eax, dword [rbp - 0x3c]
mov dword [rbp + 0xbc], eax
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0xb0], rax
mov eax, dword [rbp + 0xbc]
mov dword [rbp + 0xac], eax
mov eax, dword [rbp + 0xac]
movsxd rdx, eax
mov rcx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xb0]
mov r8, rcx
mov rcx, rax
call sym._vala_string_array_contains
mov dword [rbp + 0x1a8], eax
jmp 0x140002308
mov dword [rbp + 0x1a8], 0
cmp dword [rbp + 0x1a8], 0
je 0x140002331
mov rax, qword [rbp + 0x180]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x180], 0
jmp 0x140002387
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0xa0], rax
mov r8d, dword [rbp + 0x1f8]
mov rcx, qword [rbp + 0x1f0]
mov rdx, qword [rbp + 0x1e8]
mov rax, qword [rbp + 0xa0]
mov r9d, r8d
mov r8, rcx
mov rcx, rax
call sym.program_Iterate
mov rax, qword [rbp + 0x180]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x180], 0
jmp 0x140001c5b
nop
cmp dword [rbp + 0x1bc], 0
je 0x14000241b
mov rax, qword [rbp + 0x1e8]
mov rcx, rax
call sym.settings_get_NoteFilename
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x38], rax
mov rdx, qword [rbp + 0x38]
mov rax, qword [rbp + 0x1e0]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_build_filename]
call rax
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov edx, 0x10
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_file_test]
call rax
test eax, eax
sete al
movzx eax, al
mov dword [rbp + 0x1b8], eax
mov rax, qword [rbp + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x28], 0
jmp 0x140002425
mov dword [rbp + 0x1b8], 0
cmp dword [rbp + 0x1b8], 0
je 0x14000252e
mov qword [rbp + 0x20], 0
mov rax, qword [rbp + 0x1e8]
mov rcx, rax
call sym.settings_get_NoteFilename
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x10], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x1e0]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_build_filename]
call rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp], rax
mov rax, qword [rbp]
lea rdx, [0x140015140]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_fopen]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp], 0
mov rax, qword [rbp - 0x10]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x140002513
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x20], rax
mov eax, dword [rbp + 0x1f8]
movsxd rdx, eax
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp + 0x1f0]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.fflush
cmp qword [rbp + 0x20], 0
je 0x14000252e
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0x20], 0
cmp qword [rbp + 0x198], 0
je 0x140002556
mov rax, qword [rbp + 0x198]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_dir_close]
call rax
mov qword [rbp + 0x198], 0
nop
add rsp, 0x248
pop rbx
pop rbp
ret