Function at 0x140040ca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x1400f2688]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdi, rcx
lea rsi, [0x1400f5060]
mov qword [rbp + 7], rsi
mov rcx, rsi
call fcn.1400857fc
test eax, eax
jne 0x140040fbb
lea edx, [rax + 1]
mov rcx, rdi
call fcn.14004a2f0
lea rdx, [rdi + 0x4b8]
lea rcx, [rbp + 0xf]
call fcn.140008040
mov rdx, rax
mov rcx, rdi
call fcn.140045d70
lea rdx, [rdi + 0x4d8]
lea rcx, [rbp + 0xf]
call fcn.140008040
mov rdx, rax
mov rcx, rdi
call fcn.140045d70
lea rdx, [rdi + 0x4f8]
lea rcx, [rbp + 0xf]
call fcn.140008040
mov rdx, rax
mov rcx, rdi
call fcn.140045d70
lea rdx, [rdi + 0x518]
lea rcx, [rbp + 0xf]
call fcn.140008040
mov rdx, rax
mov rcx, rdi
call fcn.140045d70
lea rdx, [rdi + 0x348]
lea rcx, [rbp + 0xf]
call fcn.140008040
mov rdx, rax
mov rcx, rdi
call fcn.140045d70
lea r8, [rdi + 0x610]
mov rcx, qword [r8 + 0x10]
test rcx, rcx
jne 0x140040eb5
mov qword [rbp + 0x47], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp + 0x3f], SafeArrayDestroy
movsd xmm0, qword [str.Sep_29_2024]
movsd qword [rbp + 0x2f], xmm0
movzx eax, word [0x1400baf40]
mov word [rbp + 0x37], ax
movzx eax, byte [0x1400baf42]
mov byte [rbp + 0x39], al
mov byte [rbp + 0x3a], cl
lea rdx, [rbp + 0x2f]
lea rcx, [rbp + 0xf]
call fcn.14004d100
nop
mov r9d, 6
lea r8, str.Build.
xor edx, edx
mov rcx, rax
call fcn.140049b60
xor ebx, ebx
mov qword [rbp - 0x19], rbx
mov qword [rbp - 9], rbx
mov qword [rbp - 1], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 9], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
lea rdx, [rbp - 0x19]
mov rcx, rdi
call fcn.140045d70
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x140040e61
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040e5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040fc3
call fcn.140087c4c
mov qword [rbp + 0x1f], rbx
mov qword [rbp + 0x27], 7
mov word [rbp + 0xf], bx
mov rdx, qword [rbp + 0x47]
cmp rdx, 0x10
jb 0x140040f59
inc rdx
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040eab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040fc9
call fcn.140087c4c
jmp 0x140040f59
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 6
jb 0x140040fb5
mov rax, r8
cmp qword [r8 + 0x18], 8
jb 0x140040ed9
mov rax, qword [r8]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 6
lea r9, str.Build.
movzx edx, byte [rbp - 0x21]
lea rcx, [rbp + 0x2f]
call fcn.14003c370
xor ebx, ebx
mov dword [rbp - 0x1d], ebx
mov eax, dword [rbp + 0x3f]
add eax, eax
mov dword [rbp - 0x29], eax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x1d]
lea r8d, [rbx + 4]
lea rdx, [rbp - 0x29]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbp + 0x3f]
lea r8d, [rax + rax]
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rdx, qword [rbp + 0x2f]
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x1d]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rbp + 0x2f]
call fcn.140028d70
lea rdx, [rbp + 0xf]
mov rcx, rdi
call fcn.14003ff30
mov rdx, rax
mov rcx, rdi
call fcn.140045ca0
lea rdx, [rbp + 0xf]
mov rcx, rdi
call fcn.140040300
mov rdx, rax
mov rcx, rdi
call fcn.140045ca0
nop
mov rcx, rsi
call fcn.140085804
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140088250
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140029080
nop
mov ecx, eax
call fcn.140085910
nop
call fcn.14008e46c
nop
call fcn.14008e46c
int3