Function at 0x1400d7a50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1d8
mov rax, qword [0x140237f40]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rax, qword [0x140239e70]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x30], 0x41b58ab3
lea rax, str.2_32_8_5__Dest_48_32_4__Str
mov qword [rsp + 0x38], rax
lea rax, [fcn.1400d7a50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
shr rax, 3
add rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov dword [rax], 0xf1f1f1f1
add qword [rsp + 0xc8], 4
mov rax, qword [rsp + 0xc8]
mov dword [rax], 0xf200
add qword [rsp + 0xc8], 4
mov rax, qword [rsp + 0xc8]
mov dword [rax], 0xf3f30000
add qword [rsp + 0xc8], 4
mov eax, 0xf3f3
mov rcx, qword [rsp + 0xc8]
mov word [rcx], ax
mov rax, qword [rsp + 0x1e0]
add rax, 0x68
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
shr rax, 3
mov rcx, qword [rsp + 0xc0]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0xa0], al
cmp byte [rsp + 0xa0], 0
je 0x1400d7b8c
movzx eax, byte [rsp + 0xd0]
and al, 7
add al, 7
cmp al, byte [rsp + 0xa0]
jl 0x1400d7b8c
mov rcx, qword [rsp + 0xd0]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
nop
mov rax, qword [rsp + 0x128]
cmp qword [rax], 0
je 0x1400d7c17
mov rax, qword [rsp + 0x1e0]
add rax, 0x71
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
shr rax, 3
mov rcx, qword [rsp + 0xc0]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0xa1], al
cmp byte [rsp + 0xa1], 0
je 0x1400d7c08
movzx eax, byte [rsp + 0xd8]
and al, 7
cmp al, byte [rsp + 0xa1]
jl 0x1400d7c08
mov rcx, qword [rsp + 0xd8]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load1
nop
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax]
test eax, eax
jne 0x1400d7c54
mov qword [rsp + 0x30], 0x45e0360e
lea rax, [rsp + 0x30]
shr rax, 3
add rax, qword [rsp + 0xc0]
mov qword [rsp + 0x170], rax
mov eax, 0xe
mov edx, eax
mov rcx, qword [rsp + 0x170]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_set_shadow_00
mov al, 1
jmp 0x1400d8272
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
shr rax, 3
mov rcx, qword [rsp + 0xc0]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0xa2], al
cmp byte [rsp + 0xa2], 0
je 0x1400d7cc0
movzx eax, byte [rsp + 0xe0]
and al, 7
add al, 7
cmp al, byte [rsp + 0xa2]
jl 0x1400d7cc0
mov rcx, qword [rsp + 0xe0]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
nop
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax]
add rax, 0x18
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
shr rax, 3
mov rcx, qword [rsp + 0xc0]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0xa3], al
cmp byte [rsp + 0xa3], 0
je 0x1400d7d33
movzx eax, byte [rsp + 0xe8]
and al, 7
add al, 7
cmp al, byte [rsp + 0xa3]
jl 0x1400d7d33
mov rcx, qword [rsp + 0xe8]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
nop
mov rax, qword [rsp + 0x138]
mov rax, qword [rax]
mov qword [rsp + 0x180], rax
call fcn.140004c50
mov dword [rsp + 0xb4], eax
mov edx, dword [rsp + 0xb4]
mov rcx, qword [rsp + 0x1e0]
call qword [rsp + 0x180]
mov dword [rsp + 0xb8], eax
call fcn.140004c50
mov dword [rsp + 0xbc], eax
mov edx, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xbc]
call fcn.140004c60
movzx eax, al
test eax, eax
je 0x1400d7dd2
mov qword [rsp + 0x30], 0x45e0360e
lea rax, [rsp + 0x30]
shr rax, 3
add rax, qword [rsp + 0xc0]
mov qword [rsp + 0x188], rax
mov eax, 0xe
mov edx, eax
mov rcx, qword [rsp + 0x188]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_set_shadow_00
xor al, al
jmp 0x1400d8272
mov qword [rsp + 0x1b8], 0x20
mov rax, qword [rsp + 0x1e0]
add rax, 0x68
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
shr rax, 3
mov rcx, qword [rsp + 0xc0]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0xa4], al
cmp byte [rsp + 0xa4], 0
je 0x1400d7e4e
movzx eax, byte [rsp + 0xf0]
and al, 7
add al, 7
cmp al, byte [rsp + 0xa4]
jl 0x1400d7e4e
mov rcx, qword [rsp + 0xf0]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
nop
mov rax, qword [rsp + 0x140]
mov rax, qword [rax]
mov qword [rsp + 0x190], rax
lea rax, [rsp + 0x60]
add rax, 0x20
mov rcx, qword [rsp + 0x1e0]
add rcx, 0x74
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0xac], eax
cmp dword [rsp + 0xac], 0
je 0x1400d7ecb
cmp dword [rsp + 0xac], 1
je 0x1400d7f44
cmp dword [rsp + 0xac], 3
je 0x1400d8187
jmp 0x1400d823a
mov rax, qword [rsp + 0x1e0]
add rax, 0x71
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
shr rax, 3
mov rcx, qword [rsp + 0xc0]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0xa5], al
cmp byte [rsp + 0xa5], 0
je 0x1400d7f39
movzx eax, byte [rsp + 0xf8]
and al, 7
cmp al, byte [rsp + 0xa5]
jl 0x1400d7f39
mov rcx, qword [rsp + 0xf8]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_store1
nop
mov rax, qword [rsp + 0x148]
mov byte [rax], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
shr rax, 3
mov rcx, qword [rsp + 0xc0]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0xa6], al
cmp byte [rsp + 0xa6], 0
je 0x1400d7f9d
movzx eax, byte [rsp + 0x100]
and al, 7
add al, 7
cmp al, byte [rsp + 0xa6]
jl 0x1400d7f9d
mov rcx, qword [rsp + 0x100]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
nop
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x110], rax
cmp qword [rsp + 0x110], 0
jbe 0x1400d80a0
mov rax, qword [rsp + 0x1e0]
add rax, 0x80
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
shr rax, 3
mov rcx, qword [rsp + 0xc0]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0xa7], al
cmp byte [rsp + 0xa7], 0
je 0x1400d8036
movzx eax, byte [rsp + 0x108]
and al, 7
add al, 7
cmp al, byte [rsp + 0xa7]
jl 0x1400d8036
mov rcx, qword [rsp + 0x108]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load8
nop
mov rax, qword [rsp + 0x150]
mov r9, qword [rax]
mov r8, qword [rsp + 0x110]
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rsp + 0x110], rax
je 0x1400d80a0
mov qword [rsp + 0x30], 0x45e0360e
lea rax, [rsp + 0x30]
shr rax, 3
add rax, qword [rsp + 0xc0]
mov qword [rsp + 0x198], rax
mov eax, 0xe
mov edx, eax
mov rcx, qword [rsp + 0x198]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_set_shadow_00
xor al, al
jmp 0x1400d8272
mov rax, qword [rsp + 0x1e0]
add rax, 0x71
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
shr rax, 3
mov rcx, qword [rsp + 0xc0]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0xa8], al
cmp byte [rsp + 0xa8], 0
je 0x1400d810e
movzx eax, byte [rsp + 0x118]
and al, 7
cmp al, byte [rsp + 0xa8]
jl 0x1400d810e
mov rcx, qword [rsp + 0x118]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_load1
nop
mov rax, qword [rsp + 0x158]
movzx eax, byte [rax]
test eax, eax
jne 0x1400d812a
mov dword [rsp + 0xb0], 1
jmp 0x1400d8135
mov dword [rsp + 0xb0], 0
movzx eax, byte [rsp + 0xb0]
mov byte [rsp + 0xaa], al
mov qword [rsp + 0x30], 0x45e0360e
lea rax, [rsp + 0x30]
shr rax, 3
add rax, qword [rsp + 0xc0]
mov qword [rsp + 0x1a0], rax
mov eax, 0xe
mov edx, eax
mov rcx, qword [rsp + 0x1a0]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_set_shadow_00
movzx eax, byte [rsp + 0xaa]
jmp 0x1400d8272
mov rax, qword [rsp + 0x1e0]
add rax, 0x71
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
shr rax, 3
mov rcx, qword [rsp + 0xc0]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0xa9], al
cmp byte [rsp + 0xa9], 0
je 0x1400d81f5
movzx eax, byte [rsp + 0x120]
and al, 7
cmp al, byte [rsp + 0xa9]
jl 0x1400d81f5
mov rcx, qword [rsp + 0x120]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_report_store1
nop
mov rax, qword [rsp + 0x160]
mov byte [rax], 0
mov qword [rsp + 0x30], 0x45e0360e
lea rax, [rsp + 0x30]
shr rax, 3
add rax, qword [rsp + 0xc0]
mov qword [rsp + 0x1a8], rax
mov eax, 0xe
mov edx, eax
mov rcx, qword [rsp + 0x1a8]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_set_shadow_00
mov al, 1
jmp 0x1400d8272
mov qword [rsp + 0x30], 0x45e0360e
lea rax, [rsp + 0x30]
shr rax, 3
add rax, qword [rsp + 0xc0]
mov qword [rsp + 0x1b0], rax
mov eax, 0xe
mov edx, eax
mov rcx, qword [rsp + 0x1b0]
call sub.clang_rt.asan_dynamic_x86_64.dll___asan_set_shadow_00
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14019ad60
add rsp, 0x1d8
ret