Function at 0x18004f650
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x1800ac028]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r12, r8
mov r14, rdx
mov rdi, rcx
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rbx, rax
call fcn.18004dec0
mov qword [rbp - 0x59], rbx
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x19]
mov rcx, rax
call fcn.180058b10
imul rax, qword [rbp - 9], 0x989680
add rax, rbx
mov qword [rbp + 0x27], rax
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x18004f6f4
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004f6ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004f6ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180070c84
movabs rax, 0xd6bf94d5e57a42bd
imul rbx
add rdx, rbx
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov r15, qword [rdi + 0x130]
lea rsi, [rdi + 0x120]
lea rax, str.0:_Y__m__d__X.1:0_3
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], 0x18
lea rax, [rbp + 0x27]
mov qword [rbp - 9], rax
lea rax, [0x18005ba30]
mov qword [rbp - 1], rax
movabs rax, 0xd000000000000000
mov qword [rbp - 0x19], rax
imul rax, rdx, 0x989680
sub rbx, rax
movabs rax, 0x346dc5d63886594b
imul rbx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbp + 7], rdx
movabs rax, 0x3000000000000010
mov qword [rbp - 0x11], rax
mov qword [rbp - 0x59], 2
lea rax, [rbp - 0x19]
mov qword [rbp - 0x51], rax
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x59], xmm0
movaps xmm1, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm1
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x39]
call fcn.1800599c0
nop
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rdx, qword [rbp - 0x39]
mov r8, qword [rbp - 0x29]
mov rcx, rsi
call fcn.180001e20
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x18004f818
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004f813
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004f813
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180070c84
mov rax, qword [rdi + 0x130]
mov qword [rbp - 0x59], rax
mov rdx, qword [rdi + 0x148]
cmp rdx, qword [rdi + 0x150]
je 0x18004f840
mov qword [rdx], rax
add qword [rdi + 0x148], 8
jmp 0x18004f850
lea r8, [rbp - 0x59]
lea rcx, [rdi + 0x140]
call fcn.180047ee0
lea rax, str._0_
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], 5
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rcx
movabs r14, 0xc000000000000000
mov qword [rbp - 0x39], r14
mov qword [rbp - 0x49], 1
lea rax, [rbp - 0x39]
mov qword [rbp - 0x41], rax
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
movaps xmm1, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x59], xmm1
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x19]
call fcn.1800599c0
nop
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rdx, qword [rbp - 0x19]
mov r8, qword [rbp - 9]
mov rcx, rsi
call fcn.180001e20
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x18004f90d
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004f908
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004f908
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180070c84
mov rax, qword [rdi + 0x130]
mov qword [rbp - 0x59], rax
mov rdx, qword [rdi + 0x148]
cmp rdx, qword [rdi + 0x150]
je 0x18004f935
mov qword [rdx], rax
add qword [rdi + 0x148], 8
jmp 0x18004f945
lea r8, [rbp - 0x59]
lea rcx, [rdi + 0x140]
call fcn.180047ee0
lea rax, str._0_n
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], 5
mov rax, qword [r12]
mov rcx, qword [r12 + 8]
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rcx
mov qword [rbp - 0x39], r14
mov qword [rbp - 0x49], 1
lea rax, [rbp - 0x39]
mov qword [rbp - 0x41], rax
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
movaps xmm1, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x59], xmm1
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x19]
call fcn.1800599c0
nop
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rdx, qword [rbp - 0x19]
mov r8, qword [rbp - 9]
mov rcx, rsi
call fcn.180001e20
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x18004f9fa
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004f9f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004f9f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180070c84
mov rax, qword [rdi + 0x130]
mov qword [rbp - 0x59], rax
mov rdx, qword [rdi + 0x148]
cmp rdx, qword [rdi + 0x150]
je 0x18004fa22
mov qword [rdx], rax
add qword [rdi + 0x148], 8
jmp 0x18004fa32
lea r8, [rbp - 0x59]
lea rcx, [rdi + 0x140]
call fcn.180047ee0
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x18004fa65
mov r8d, dword [rdi + 0x130]
sub r8d, r15d
cmp qword [rsi + 0x18], 0x10
jb 0x18004fa4f
mov rsi, qword [rsi]
lea rdx, [rsi + r15]
mov qword [rsp + 0x20], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.180070c20
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret