Function at 0x140056970
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14012a098]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rcx
lea rax, [0x14013eec0]
mov qword [rbp - 0x19], rax
mov rcx, rax
call fcn.14009868c
test eax, eax
jne 0x140056cbf
mov dword [rbp - 0x49], 1
xor r13d, r13d
mov dword [rbp - 0x41], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x41]
lea r8d, [rax + 4]
lea rdx, [rbp - 0x49]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [rsi + 0x3d8]
lea rcx, [rbp - 0x11]
call fcn.14001dcc0
mov rdx, rax
mov rcx, rsi
call fcn.140050840
lea rdx, [rsi + 0x3f8]
lea rcx, [rbp - 0x11]
call fcn.14001dcc0
mov rdx, rax
mov rcx, rsi
call fcn.140050840
lea rdx, [rsi + 0x418]
lea rcx, [rbp - 0x11]
call fcn.14001dcc0
mov rdx, rax
mov rcx, rsi
call fcn.140050840
lea rdx, [rsi + 0x438]
lea rcx, [rbp - 0x11]
call fcn.14001dcc0
mov rdx, rax
mov rcx, rsi
call fcn.140050840
lea rdx, [rsi + 0x338]
lea rcx, [rbp - 0x11]
call fcn.14001dcc0
mov rdx, rax
mov rcx, rsi
call fcn.140050840
lea r15, [rsi + 0x530]
mov r12, qword [r15 + 0x10]
test r12, r12
jne 0x140056ba5
mov qword [rbp + 0x27], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp + 0x1f], SafeArrayDestroy
movsd xmm0, qword [str.Apr__3_2024]
movsd qword [rbp + 0xf], xmm0
movzx eax, word [0x1401107e8]
mov word [rbp + 0x17], ax
movzx eax, byte [0x1401107ea]
mov byte [rbp + 0x19], al
mov byte [rbp + 0x1a], r12b
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.140062d90
nop
lea r9d, [r13 + 6]
lea r8, str.Build.
mov rcx, rax
call fcn.140050130
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x21], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x29], xmm1
mov qword [rax + 0x10], r13
mov ebx, 7
mov qword [rax + 0x18], rbx
mov word [rax], r13w
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.140050840
nop
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x140056b54
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056b4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140056cc7
call fcn.1400998c0
mov qword [rbp - 1], r13
mov qword [rbp + 7], rbx
mov word [rbp - 0x11], r13w
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140056c57
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056b9b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140056ccd
call fcn.1400998c0
jmp 0x140056c57
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r12
cmp rax, 6
jb 0x140056cb9
cmp qword [r15 + 0x18], 8
jb 0x140056bc9
mov r15, qword [r15]
mov qword [rbp + 0xf], r13
mov qword [rbp + 0x1f], r13
mov qword [rbp + 0x27], r13
lea r14, [r12 + 6]
mov ebx, 7
lea rdi, [rbp + 0xf]
cmp r14, rbx
jbe 0x140056c19
mov rbx, r14
or rbx, 7
cmp rbx, rcx
jbe 0x140056bf9
mov rbx, rcx
jmp 0x140056c05
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp + 0xf]
call fcn.14001dd60
mov rdi, rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x27], rbx
movsd xmm0, qword [str.Build.]
movsd qword [rdi], xmm0
mov ecx, dword [0x1401107d8]
mov dword [rdi + 8], ecx
lea rcx, [rdi + 0xc]
lea r8, [r12 + r12]
mov rdx, r15
call fcn.14009bcc0
mov word [rdi + r14*2], r13w
lea rdx, [rbp + 0xf]
mov rcx, rsi
call fcn.140050840
lea rdx, [rbp - 0x11]
call fcn.140056d80
mov rdx, rax
mov rcx, rsi
call fcn.140050780
lea rdx, [rbp - 0x11]
call fcn.140057160
mov rdx, rax
mov rcx, rsi
call fcn.140050780
nop
lea rcx, [0x14013eec0]
call fcn.140098694
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400998a0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140002380
nop
mov ecx, eax
call fcn.140097004
nop
call fcn.1400a03a4
nop
call fcn.1400a03a4
int3