Function at 0x1400d8ef0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x268]
sub rsp, 0x368
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp + 0x258], rax
mov r14d, r9d
mov rsi, r8
mov rax, rdx
cmp qword [rdx + 0x10], 0
je 0x1400d9287
cmp qword [r8], 0
je 0x1400d9287
test r9d, r9d
je 0x1400d9287
xor r15d, r15d
mov dword [rbp + 0x230], r15d
lea rdx, vtable.CAutoHandle.0
mov qword [rsp + 0x40], rdx
lea rbx, [rcx + 8]
mov qword [rsp + 0x48], rbx
cmp qword [rax + 0x18], 8
jb 0x1400d8f69
mov rax, qword [rax]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov edi, 2
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [rdi + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400d90d2
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r15w
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r15w
mov ebx, 1
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.140029460
nop
nop dword [rax]
nop dword [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], ebx
test eax, eax
je 0x1400d8ffd
cmp eax, 1
jne 0x1400d901b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d8fe0
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, ebx
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0xd8], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0xd8]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0xd8]
mov dword [rax + 0x10], 0x59
lea rbx, str.CPcFile::WriteToFile
mov qword [rax + 0x18], rbx
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCSharedPcFile.cpp
mov qword [rax + 0x20], rdx
mov dword [rbp - 0x70], 0x59
mov r8d, 0x57
lea rcx, [rbp - 0x68]
call fcn.14002b640
mov dword [rbp - 0x28], 4
mov r8d, reloc.WS2_32.dll_sendto
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.14002b640
nop
lea rdx, str.Error:_File_not_found.
lea rcx, [rsp + 0x50]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.14002be60
nop
lea rcx, [rsp + 0x50]
call fcn.14002ce60
nop
lea rcx, [rbp - 0x70]
call fcn.140028cd0
mov rbx, qword [rsp + 0x48]
jmp 0x1400d9269
xorps xmm0, xmm0
movups xmmword [rbp + 0x238], xmm0
movups xmmword [rbp + 0x248], xmm0
lea rcx, [rbp + 0x238]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x230]
mov r8d, r14d
mov rdx, qword [rsi]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400d9266
mov qword [rbp + 0xf8], r15
mov qword [rbp + 0x100], 7
mov word [rbp + 0xe8], r15w
mov qword [rbp + 0x118], r15
mov qword [rbp + 0x120], 7
mov word [rbp + 0x108], r15w
mov ebx, 1
mov edx, ebx
lea rcx, [rbp + 0x130]
call fcn.140029460
nop
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], ebx
test eax, eax
je 0x1400d917d
cmp eax, 1
jne 0x1400d919b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d9160
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, ebx
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x228], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x228]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x228]
mov dword [rax + 0x10], 0x5f
lea rbx, str.CPcFile::WriteToFile
mov qword [rax + 0x18], rbx
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCSharedPcFile.cpp
mov qword [rax + 0x20], rdx
mov dword [rbp + 0xe0], 0x5f
mov r8d, 0x57
lea rcx, [rbp + 0xe8]
call fcn.14002b640
mov dword [rbp + 0x128], 4
mov r8d, reloc.WS2_32.dll_sendto
mov rdx, rbx
lea rcx, [rbp + 0x108]
call fcn.14002b640
nop
lea rdx, str.Error:_Write_fault.
lea rcx, [rsp + 0x70]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.14002be60
nop
lea rcx, [rsp + 0x70]
call fcn.14002ce60
nop
lea rcx, [rbp + 0xe0]
call fcn.140028cd0
mov edi, 0x1d
mov rbx, qword [rsp + 0x48]
jmp 0x1400d9269
mov edi, r15d
mov rcx, qword [rbx]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400d9283
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov eax, edi
jmp 0x1400d928c
mov eax, 0x57
mov rcx, qword [rbp + 0x258]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x368
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret