Function at 0x180084b00
Capabilities:
Get file attributes
Write file on windows

Disassembly:
push rbx
push rsi
push r12
push r15
sub rsp, 0x78
lea rax, [rcx + 0x1000]
mov r12, r9
mov rsi, r8
mov r15, rdx
mov rbx, rcx
cmp rax, 0x2000
jb 0x180084d8e
movabs rax, 0xffff800000000000
test rax, rcx
jne 0x180084d8e
cmp dword [rcx], 0x19570528
jne 0x180084d8e
cmp byte [rcx + 0x10], 0
je 0x180084b5f
mov eax, 0xffffffda
add rsp, 0x78
pop r15
pop r12
pop rsi
pop rbx
ret
add rcx, 0x60
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb0], r13
call sym.VBoxRT.dll_RTCritSectEnter
mov edi, eax
test eax, eax
js 0x180084d71
cmp dword [rbx + 0x18], 0
jne 0x180084d63
cmp byte [rbx + 0x11], 0
mov qword [rsp + 0x70], r14
mov dword [rbx + 0x18], 1
mov r14d, 0xfffffed3
je 0x180084bd2
mov rcx, rbx
call fcn.1800840c0
mov edi, eax
test eax, eax
je 0x180084bd4
js 0x180084bbc
mov qword [r12], 0
cmp edi, r14d
jne 0x180084bc5
mov byte [rbx + 0x13], 1
dec dword [rbx + 0x18]
mov r14, qword [rsp + 0x70]
jmp 0x180084d68
xor edi, edi
cmp byte [rbx + 0x14], 0
jne 0x180084c2a
test rsi, rsi
je 0x180084c2a
xor eax, eax
lea rcx, [rsp + 0x40]
xor edx, edx
lea r8d, [rax + 0x28]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
call sub.MSVCR100.dll_memset
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov r9d, 0x28
mov dword [rsp + 0x20], 0x18
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x180084c2a
cmp dword [rsp + 0x60], 4
cmove edi, r14d
mov rax, qword [rbx + 0x50]
mov byte [rbx + 0x14], 0
mov ecx, 0x10000
cmp rax, rsi
jae 0x180084c90
cmp rax, rcx
jae 0x180084c90
cmp rsi, rcx
lea r8, str.D:_tinderboxwin_4.2_srcVBoxRuntime_r3winpipe_win.cpp
cmova rsi, rcx
mov rcx, qword [rbx + 0x40]
lea r14, [rsi + 0x3ff]
and r14, 0xfffffffffffffc00
mov rdx, r14
call sym.VBoxRT.dll_RTMemReallocTag
test rax, rax
je 0x180084c7e
mov qword [rbx + 0x50], r14
mov qword [rbx + 0x40], rax
mov r14d, 0xfffffed3
jmp 0x180084c97
dec dword [rbx + 0x18]
mov r14, qword [rsp + 0x70]
mov edi, 0xfffffff8
jmp 0x180084d68
cmp rsi, rcx
cmova rsi, rcx
test edi, edi
js 0x180084bbc
test rsi, rsi
je 0x180084bb4
mov rcx, qword [rbx + 0x40]
mov r8, rsi
mov rdx, r15
call sub.MSVCR100.dll_memcpy
mov rcx, qword [rbx + 0x38]
mov eax, esi
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r8d, dword [rbx + 0x48]
mov rdx, qword [rbx + 0x40]
mov rcx, qword [rbx + 8]
lea rax, [rbx + 0x20]
lea r9, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xa0], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180084d10
mov eax, dword [rsp + 0xa0]
mov r14, qword [rsp + 0x70]
xor edi, edi
mov qword [r12], rax
dec dword [rbx + 0x18]
jmp 0x180084d68
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x180084d31
mov r14, qword [rsp + 0x70]
mov qword [r12], rsi
xor edi, edi
dec dword [rbx + 0x18]
mov byte [rbx + 0x11], 1
jmp 0x180084d68
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x180084d4f
dec dword [rbx + 0x18]
mov edi, r14d
mov r14, qword [rsp + 0x70]
mov byte [rbx + 0x13], 1
jmp 0x180084d68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.VBoxRT.dll_RTErrConvertFromWin32
mov edi, eax
jmp 0x180084bbc
mov edi, 0xffffffea
lea rcx, [rbx + 0x60]
call sym.VBoxRT.dll_RTCritSectLeave
mov r13, qword [rsp + 0xb0]
mov eax, edi
mov rdi, qword [rsp + 0xa8]
add rsp, 0x78
pop r15
pop r12
pop rsi
pop rbx
ret
mov eax, 0xfffffffc
add rsp, 0x78
pop r15
pop r12
pop rsi
pop rbx
ret