Function at 0x14004dd20
Capabilities:
Write file on windows

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x40], xmm6
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x28], r9
mov rbx, qword [rdx]
cmp dword [rbx + 0x120], 8
jne 0x14004ddc3
cmp dword [rbx + 0x1a4], 0x1021e357
je 0x14004ddc3
cmp qword [rbx + 0x1a8], 0
je 0x14004ddc3
mov rdi, qword [rbx + 0x78]
test rdi, rdi
je 0x14004ddc3
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x14004ddc3
cmp dword [rdi + 0x18], 0
jne 0x14004ddc3
mov eax, dword [rdi + 0x1c]
dec eax
cmp eax, 0x64
jae 0x14004ddc3
movzx eax, byte [rsi + 0x80]
movzx r10d, byte [rsi + 0x83]
mov ecx, eax
or cl, r10b
jne 0x14004de0c
add rdx, 0x2530
lea rax, [rbp + 0x28]
mov rcx, r8
mov r8, rax
mov r9d, 8
call fcn.140258730
jmp 0x14004ddd4
xorpd xmm0, xmm0
movupd xmmword [rsi + 0x60], xmm0
mov qword [rsi + 0x70], 0
mov rsi, qword [r14 + 8]
test rsi, rsi
je 0x14004ddfa
lock dec dword [rsi + 8]
jne 0x14004ddfa
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
lock dec dword [rsi + 0xc]
jne 0x14004ddfa
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
movaps xmm6, xmmword [rbp + 0x40]
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov rcx, r9
shr rcx, 0x20
movd xmm4, r9d
movd xmm5, ecx
movsd xmm1, qword [rsi + 0x60]
xorpd xmm0, xmm0
ucomisd xmm1, xmm0
jne 0x14004de2d
jnp 0x14004de3b
movsd xmm0, qword [rbx + 0x1b8]
subsd xmm0, xmm1
jmp 0x14004de43
movsd xmm0, qword [0x14025e2c0]
movss xmm2, dword [rbp + 0xa0]
movss xmm1, dword [rdi + 0x128]
movss xmm3, dword [rdi + 0x12c]
subss xmm3, xmm5
subss xmm1, xmm4
movss xmm4, dword [0x14025dfe8]
ucomiss xmm1, xmm4
jbe 0x14004de7d
movss xmm5, dword [0x14025ab80]
ucomiss xmm5, xmm1
jae 0x14004deb8
movss xmm5, dword [0x14025ab80]
ucomiss xmm1, xmm5
movss xmm4, dword [0x14025dfec]
addss xmm4, xmm1
cmpltss xmm5, xmm1
andps xmm4, xmm5
andnps xmm5, xmm1
orps xmm5, xmm4
movss xmm6, dword [0x14025dff0]
movaps xmm4, xmm6
maxss xmm4, xmm5
ja 0x14004deb8
ucomiss xmm6, xmm5
jbe 0x14004debb
movaps xmm1, xmm4
addss xmm3, dword [0x14025ab80]
movaps xmm4, xmm3
divss xmm4, dword [0x14025dff4]
xorps xmm5, xmm5
ucomiss xmm4, xmm5
cvttss2si ecx, xmm4
sbb ecx, 0
xorps xmm4, xmm4
cvtsi2ss xmm4, ecx
mulss xmm4, dword [0x14025dfec]
addss xmm4, xmm3
addss xmm4, dword [0x14025dff8]
mulss xmm2, dword [rbx + 0x228]
divss xmm4, xmm2
divss xmm4, dword [0x14025e2c8]
divss xmm1, xmm2
divss xmm1, dword [0x14025e2cc]
test al, al
je 0x14004dfc3
ucomisd xmm0, qword [0x14025e2d0]
jb 0x14004dfc3
cmp qword [0x14032b2c0], 0
je 0x14004dfb1
cvttss2si r9d, xmm4
cvttss2si eax, xmm1
xorpd xmm0, xmm0
movapd xmmword [rbp + 0x10], xmm0
movapd xmmword [rbp], xmm0
movapd xmmword [rbp - 0x10], xmm0
movapd xmmword [rbp - 0x20], xmm0
movapd xmmword [rbp - 0x30], xmm0
movapd xmmword [rbp - 0x40], xmm0
movapd xmmword [rbp - 0x50], xmm0
mov qword [rbp + 0x20], 0
mov dword [rsp + 0x20], eax
lea r8, str.km.move__d___d__r
lea rdi, [rbp - 0x50]
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.140005bb0
mov rcx, rdi
call fcn.14023e390
mov rcx, qword [0x14032b2c0]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsd xmm0, qword [rbx + 0x1b8]
movsd qword [rsi + 0x60], xmm0
jmp 0x14004ddd4
test r10b, r10b
je 0x14004ddd4
ucomisd xmm0, qword [0x14025e2d8]
jb 0x14004ddd4
mov qword [rbp + 0x30], r14
cvttss2si edx, xmm1
cvttss2si ecx, xmm4
call fcn.1400eb050
movsd xmm0, qword [rbx + 0x1b8]
movsd qword [rsi + 0x60], xmm0
mov r14, qword [rbp + 0x30]
jmp 0x14004ddd4