Function at 0x18005c7e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r12
mov eax, 0x1080
call fcn.180124410
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x10a0], rbx
mov qword [rsp + 0x10b0], rbp
mov rax, qword [0x1801dc960]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rbp, rdx
mov edi, ecx
test rdx, rdx
je 0x18005ca4d
cmp byte [rdx], 0
je 0x18005ca4d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..Pipe_vrvrf_tracepipe
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x18005c8d7
lea rcx, [0x1801dc900]
mov rax, qword [0x1801dc900]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x18015a820]
lea rcx, [rsp + 0x50]
call fcn.1800041d0
mov rdi, qword [rsp + 0x50]
mov rdx, rdi
lea ecx, [r12 + 4]
call fcn.18005c600
nop
lea rdx, [rdi - 0x18]
or rsi, r12
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18005c8d0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
jmp 0x18005ca4f
mov ebx, 0xfff
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x71]
call fcn.1800f4fb0
mov dword [rsp + 0x70], 0x50525444
mov dword [rsp + 0x74], 0x4c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x88], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x8c], eax
lea rcx, [rsp + 0x58]
call fcn.1800fc524
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 0x78], rdx
movzx eax, word [rsp + 0x60]
mov word [rsp + 0x80], ax
mov dword [rsp + 0xb4], edi
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
mov rdx, qword [0x1801def48]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov eax, 0x1f
cmp rcx, rax
cmova rcx, rax
mov r8, rcx
lea rcx, [rsp + 0x94]
call fcn.1800f4e00
mov r8d, dword [rsp + 0x74]
sub ebx, r8d
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
mov eax, ebx
cmp rax, rcx
cmovb edi, ebx
lea rcx, [rsp + r8 + 0x70]
mov r8d, edi
mov rdx, rbp
call fcn.1800f4e00
lea edx, [rdi + 1]
mov dword [rsp + 0xb8], edx
mov eax, dword [rsp + 0x74]
lea r8d, [rdx + rax]
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test eax, eax
jne 0x18005ca40
lea rcx, [0x1801dc900]
mov rdx, qword [0x1801dc900]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x18015a800]
lea rcx, [rsp + 0x48]
call fcn.1800041d0
mov rdi, qword [rsp + 0x48]
mov rdx, rdi
lea ecx, [rsi + 4]
call fcn.18005c600
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18005ca40
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x18005ca4f
xor eax, eax
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.1800f4f80
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret