Function at 0x14004d610
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
mov rbp, rsp
sub rsp, 0x68
mov rax, qword [0x1401750b8]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp qword [rcx + 0x68], 0
mov rdi, rcx
je 0x14004d855
cmp byte [rcx + 0x71], 0
je 0x14004d855
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x14004d655
xor al, al
jmp 0x14004d842
xor ecx, ecx
mov qword [rsp + 0x88], rbx
mov edx, 0xf
mov qword [rsp + 0x90], rsi
cmp rdx, 0x10
mov byte [rbp - 0x30], 0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x60], r14
cmovae rax, rcx
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x30], rcx
lea r14, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov qword [rbp - 0x20], 8
xor esi, esi
mov byte [rax + 8], cl
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
nop word [rax + rax]
mov r10, qword [rdi + 0x68]
lea rcx, [rbp - 0x30]
cmp r8, 0x10
lea rbx, [rbp - 0x30]
cmovae rcx, rdx
cmovae rbx, rdx
mov r11, qword [r10]
cmp r11, r14
jne 0x14004d859
mov qword [rbp - 0x38], rbx
mov eax, esi
test eax, eax
je 0x14004d6f3
sub eax, 1
je 0x14004d6f7
sub eax, 2
je 0x14004d7dd
xor bl, bl
jmp 0x14004d7df
mov byte [rdi + 0x71], sil
cmp r8, 0x10
lea rax, [rbp - 0x30]
cmovae rax, rdx
sub rbx, rax
je 0x14004d735
mov r9, qword [rdi + 0x80]
lea rcx, [rbp - 0x30]
cmp r8, 0x10
mov r8, rbx
cmovae rcx, rdx
mov edx, 1
call fcn.14011d144
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x14004d6ec
cmp byte [rdi + 0x71], sil
je 0x14004d7dd
test rbx, rbx
jne 0x14004d6b0
mov rcx, qword [rbp - 0x20]
or rax, 0xffffffffffffffff
sub rax, rcx
cmp rax, 8
jbe 0x14004d892
lea rbx, [rcx + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x14004d888
cmp r8, rbx
jae 0x14004d7c0
mov r8, rcx
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.14002b8bc
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
test rbx, rbx
je 0x14004d6b0
mov rax, qword [rbp - 0x20]
lea rcx, [rbp - 0x30]
cmp r8, 0x10
cmovae rcx, rdx
xor edx, edx
mov qword [rcx + rax], rdx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
mov qword [rbp - 0x20], rbx
cmovae rax, qword [rbp - 0x30]
mov byte [rax + rbx], dl
jmp 0x14004d69d
test rbx, rbx
jne 0x14004d790
cmp r8, 0x10
mov qword [rbp - 0x20], rsi
lea rax, [rbp - 0x30]
cmovae rax, rdx
mov byte [rax], sil
jmp 0x14004d69d
mov bl, 1
cmp r8, 0x10
jb 0x14004d82a
lea rax, [r8 + 1]
cmp rax, 0x1000
jb 0x14004d822
test byte [rbp - 0x30], 0x1f
jne 0x14004d89c
mov rax, qword [rdx - 8]
cmp rax, rdx
jae 0x14004d8a2
sub rdx, rax
cmp rdx, 8
jb 0x14004d8a8
cmp rdx, 0x27
ja 0x14004d8ae
mov rdx, rax
mov rcx, rdx
call fcn.140111e78
mov rsi, qword [rsp + 0x90]
movzx eax, bl
mov rbx, qword [rsp + 0x88]
mov r14, qword [rsp + 0x60]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140111850
add rsp, 0x68
pop rdi
pop rbp
ret
mov al, 1
jmp 0x14004d842
mov r9, qword [rbp - 0x20]
lea rax, [rbp - 0x38]
add r9, rcx
mov qword [rsp + 0x20], rax
mov rcx, r10
lea rdx, [rdi + 0x74]
mov r8, rbx
call qword [r11 + 0x40]
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
mov rbx, qword [rbp - 0x38]
jmp 0x14004d6da
lea rcx, [rbp - 0x30]
call fcn.14002b1c0
int3
lea rcx, [rbp - 0x30]
call fcn.14002b1c0
int3
call fcn.140116070
int3
call fcn.140116070
int3
call fcn.140116070
int3
call fcn.140116070
int3