Function at 0x140074570
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
lea rbp, [rsp - 0x48]
sub rsp, 0x148
lea rdx, [0x14012bb38]
mov rsi, rcx
call fcn.140024c30
mov edx, eax
shr edx, 0x1f
test dl, dl
jne 0x1400748ac
mov rcx, rsi
mov byte [rsi + 0x289], 1
call fcn.140024080
mov ecx, eax
shr ecx, 0x1f
test cl, cl
jne 0x1400748ac
mov rcx, qword [rsi + 0x10]
xor edx, edx
mov qword [rsp + 0x160], rbx
mov qword [rsp + 0x170], rdi
mov qword [rsp + 0x140], r14
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, rax
mov rdi, 0xffffffffffffffff
test rax, rax
je 0x140074619
mov rbx, rdi
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400745f0
add rbx, rcx
cmp rbx, rcx
jb 0x140074614
movzx eax, byte [rbx]
cmp al, 0x5c
je 0x140074614
cmp al, 0x2f
je 0x140074614
dec rbx
cmp rbx, rcx
jae 0x140074601
inc rbx
jmp 0x140074636
mov rcx, qword [rsi + 0x10]
mov edx, 3
mov rax, qword [rcx]
call qword [rax + 0x40]
test rax, rax
lea rbx, str.Unnamed
cmovne rbx, rax
mov r14d, dword [rsi + 0x290]
xorps xmm0, xmm0
imul r14d, dword [rsi + 0x258]
mov rax, rdi
movups xmmword [rbp - 0x40], xmm0
mov byte [rsp + 0x30], 0
movups xmmword [rbp - 0x30], xmm0
imul r14d, dword [rsi + 0x250]
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140074680
cmp eax, 0x1e
jge 0x14007469c
mov rax, rdi
inc rax
cmp byte [rbx + rax], 0
jne 0x140074691
jmp 0x14007469e
mov al, 0x1e
movzx r8d, al
lea rcx, [rsp + 0x32]
mov rdx, rbx
mov byte [rsp + 0x50], al
mov byte [rsp + 0x31], al
call fcn.1400b9e30
movzx r8d, byte [rsp + 0x50]
lea rcx, [rsp + 0x51]
mov rdx, rbx
call fcn.1400b9e30
mov rcx, qword [rsi + 0x38]
lea r9, [rbp + 0x68]
xor ebx, ebx
mov dword [rsp + 0x71], 0x66326453
mov eax, 0x60
mov dword [rsp + 0x75], 0x61326453
mov word [rsp + 0x6f], ax
lea rdx, [rsp + 0x30]
xor eax, eax
mov word [rsp + 0x79], 1
xorps xmm0, xmm0
mov dword [rbp - 0x5d], eax
bswap r14d
mov r8d, pe_nt_image_headers64
mov word [rbp - 0x59], ax
mov byte [rbp - 0x57], al
mov dword [rsp + 0x7b], 0xffffffff
mov dword [rsp + 0x7f], ebx
mov dword [rbp - 0x7d], r14d
mov dword [rbp - 0x79], 0x8c010000
mov dword [rbp - 0x75], 0xa3fc91ab
mov dword [rbp - 0x71], 0xbdbb78ad
movups xmmword [rbp - 0x6d], xmm0
mov dword [rbp - 0x56], 0x3f3f8181
mov word [rbp - 0x52], bx
mov dword [rbp + 0x68], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call fcn.1400246e0
mov ecx, eax
shr ecx, 0x1f
test cl, cl
jne 0x140074894
mov eax, dword [rsi + 0x290]
mov r14d, eax
imul r14d, dword [rsi + 0x258]
imul r14d, dword [rsi + 0x250]
lea r8d, [r14 + 0x7f]
and r8d, 0xffffff80
sub r8d, r14d
je 0x1400747b0
mov rcx, qword [rsi + 0x38]
lea r9, [rbp + 0x68]
lea rdx, [rbp - 0x40]
mov dword [rbp + 0x68], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, byte [rsi + 0x290]
add al, 0x30
lea rdx, str._.6f
xorps xmm0, xmm0
mov byte [0x140190395], al
mov eax, dword [rsi + 0x260]
lea rcx, [rbp - 0x50]
cvtsi2ss xmm0, rax
cvtps2pd xmm2, xmm0
movq r8, xmm2
call fcn.1400100f0
lea rax, [rbp - 0x50]
inc rdi
cmp byte [rax + rdi], bl
jne 0x1400747e2
movsx r8, dil
lea rdx, [rbp - 0x50]
lea rcx, [0x14019039b]
mov byte [str._f44100.000000], dil
call fcn.1400b9e30
movzx eax, byte [rsi + 0x258]
lea r9, [rbp + 0x68]
add al, 0x30
mov dword [rbp + 0x68], ebx
mov byte [0x1401903af], al
lea rdx, [0x140190290]
mov rcx, qword [rsi + 0x38]
mov r8d, 0x18c
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x38]
lea r9, [rbp + 0x68]
mov r8d, reloc.WSOCK32.dll_WSACleanup
mov dword [rbp + 0x68], ebx
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x38]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rsi + 0x38]
lea r9, [rbp + 0x68]
bswap r14d
mov r8d, pe_nt_image_headers64
mov dword [rbp - 0x7d], r14d
lea rdx, [rsp + 0x30]
mov dword [rbp + 0x68], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov rdi, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x160]
mov r14, qword [rsp + 0x140]
add rsp, 0x148
pop rsi
pop rbp
ret