Function at 0x50b060
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov qword [rax - 0x18], r14
mov qword [rax - 0x20], r15
mov rbp, r8
mov r13, rdx
mov rdi, rcx
mov r15d, 0xffffffff
test r8, r8
jne 0x50b0d8
call fcn.00473e00
mov r10, qword [rax]
lea rcx, str.count
mov qword [rsp + 0x20], rcx
lea r9, str.FileAccess::OSAccessorFile::Write
mov r8d, 0x1a7
lea rdx, str..OSAccessorFile.cpp
mov rcx, rax
call qword [r10 + reloc.OLEAUT32.dll_SafeArrayGetElement]
jmp 0x50b141
cmp r8, r15
jbe 0x50b141
mov rdx, r8
lea rcx, [rsp + 0x80]
call fcn.00467910
nop
mov r9, qword [0x00640e40]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
lea r8, [rsp + 0x80]
mov edx, 0xe7d1000c
lea rcx, [rsp + 0x68]
call fcn.00465350
lea rdx, [0x0063ada0]
lea rcx, [rsp + 0x68]
call fcn.00568cd0
nop
bt dword [rdi + 0x28], 0x1e
jb 0x50b169
mov edx, 0xe7d10004
lea rcx, [rsp + 0x68]
call fcn.00493010
lea rdx, [0x0063ada0]
lea rcx, [rsp + 0x68]
call fcn.00568cd0
int3
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, qword [rdi + 0x20]
cmp rcx, 0xffffffffffffffff
jne 0x50b19c
mov edx, 0xe7d10004
lea rcx, [rsp + 0x68]
call fcn.00493010
lea rdx, [0x0063ada0]
lea rcx, [rsp + 0x68]
call fcn.00568cd0
int3
xor r14d, r14d
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
mov r8d, ebp
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x50b438
call sub.KERNEL32.dll_GetLastError
mov r12d, eax
cmp eax, 0x70
jne 0x50b243
mov edx, 0xe7d1003c
lea rcx, [rsp + 0x70]
call fcn.00493010
nop
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.00467690
nop
mov r9, qword [0x00640e40]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
lea r8, [rsp + 0x80]
mov edx, 0xe7d1001f
lea rcx, [rsp + 0x68]
call fcn.00465350
lea rdx, [0x0063ada0]
lea rcx, [rsp + 0x68]
call fcn.00568cd0
nop
cmp eax, 0x40
je 0x50b2bb
cmp eax, 0x21
je 0x50b2bb
lea rcx, [rsp + 0x68]
call fcn.00491070
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.004677a0
nop
mov r9, qword [0x00640e40]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
lea r8, [rsp + 0x80]
mov edx, 0xe7d1001f
lea rcx, [rsp + 0x70]
call fcn.00465350
lea rdx, [0x0063ada0]
lea rcx, [rsp + 0x70]
call fcn.00568cd0
nop
lea rcx, [rsp + 0x70]
call fcn.004a0380
mov rbx, qword [rax]
add rbx, 0x11e1a300
mov sil, 1
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
mov r8d, ebp
mov rdx, r13
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x50b438
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x40
je 0x50b30a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x50b356
test sil, sil
je 0x50b314
xor sil, sil
jmp 0x50b327
lea rcx, [rsp + 0x70]
call fcn.004a0380
cmp rbx, qword [rax]
jb 0x50b3c7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
mov r8d, ebp
mov rdx, r13
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x50b438
jmp 0x50b2f4
mov edx, r12d
lea rcx, [rsp + 0x68]
call fcn.004910d0
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.004677a0
nop
mov r9, qword [0x00640e40]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
lea r8, [rsp + 0x80]
mov edx, 0xe7d1001f
lea rcx, [rsp + 0x70]
call fcn.00465350
lea rdx, [0x0063ada0]
lea rcx, [rsp + 0x70]
call fcn.00568cd0
nop
mov edx, r12d
lea rcx, [rsp + 0x68]
call fcn.004910d0
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.004677a0
nop
mov r9, qword [0x00640e40]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
lea r8, [rsp + 0x80]
mov edx, 0xe7d1001f
lea rcx, [rsp + 0x70]
call fcn.00465350
lea rdx, [0x0063ada0]
lea rcx, [rsp + 0x70]
call fcn.00568cd0
nop
mov esi, dword [rsp + 0x60]
cmp byte [rdi + 0x2c], r14b
je 0x50b478
mov r8, rsi
lea rdx, [rsp + 0x70]
lea rcx, [0x00648110]
call fcn.005225e0
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x50b478
add dword [rbx], r15d
cmp dword [rbx], r14d
jne 0x50b478
mov rcx, rbx
call fcn.0045f110
mov rcx, rbx
call fcn.00568830
mov rax, rsi
mov rbx, qword [rsp + 0xd0]
mov rbp, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
mov r12, qword [rsp + 0xc0]
mov r13, qword [rsp + 0xb8]
mov r14, qword [rsp + 0xb0]
mov r15, qword [rsp + 0xa8]
add rsp, 0xc8
ret