Function at 0x140008f20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4b0
mov rax, qword [0x14006bbc0]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
xor r15d, r15d
mov rbx, rcx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x30], r15d
cmp dword [rcx + 0x11], r15d
je 0x140009971
call fcn.140020fe0
mov eax, dword [rbx + 0xb]
cmp dword [rbx + 7], eax
jne 0x140008f8c
mov dword [rbx + 7], r15d
mov rax, qword [0x14006e308]
mov ecx, dword [rax + 0x1aa40d]
mov dword [rbx + 0xb], ecx
call fcn.140021018
cmp word [rbx], r15w
jne 0x140008fa6
mov rcx, rbx
call fcn.1400089fc
mov edi, eax
jmp 0x14000993e
mov edi, dword [rbx + 7]
lea rcx, [rsp + 0x30]
lea r14, [rdi + rbx + 0x16]
lea eax, [rdi + 1]
mov r13b, byte [r14]
lea rdx, [rax + rbx + 0x16]
mov sil, r13b
and sil, 0x7f
cmp r13b, r15b
jle 0x140008fdc
mov r8d, 2
call fcn.140025900
mov ebp, 3
jmp 0x140008fec
mov r8d, 4
call fcn.140025900
mov ebp, 5
lea eax, [rbp + rdi]
lea rcx, [rsp + 0x3c]
mov r8d, 4
lea r12, [rax + rbx + 0x16]
mov rdx, r12
call fcn.140025900
movzx r11d, word [rbx]
mov edx, dword [rsp + 0x30]
mov word [0x14009242d], r11w
mov dword [0x140092420], r15d
mov dword [0x140092424], r15d
mov al, byte [rbx + 2]
mov byte [0x140092428], r13b
mov qword [rsp + 0x48], r14
mov byte [0x14009242f], al
mov eax, dword [rsp + 0x3c]
mov r14d, 1
mov dword [0x140092429], eax
mov eax, dword [rbx + 0x11]
mov qword [rsp + 0x40], r15
mov dword [0x14009243c], eax
mov al, byte [rbx + 0x10]
mov r13d, r14d
mov byte [0x140092440], al
mov eax, dword [rbx + 7]
mov dword [0x140092434], eax
mov eax, dword [rbx + 3]
mov dword [0x140092430], eax
mov eax, dword [rbx + 0xb]
mov byte [0x140092441], r15b
mov dword [0x140092438], eax
or eax, 0xffffffff
mov byte [0x140092442], r15b
mov dword [0x140092443], eax
mov dword [0x140092447], eax
mov dword [0x14009244b], eax
lea eax, [rbp + rdx]
mov dword [0x14009244f], r15d
mov dword [0x14006e2c0], r15d
mov word [0x1400922c0], r15w
mov dword [rsp + 0x50], eax
cmp sil, r14b
je 0x1400097e8
cmp sil, 2
jle 0x140009765
cmp sil, 4
jle 0x1400095a4
cmp sil, 5
je 0x1400094a7
jle 0x140009765
cmp sil, 7
jg 0x140009765
movsx r12, word [r12 + 2]
mov rax, qword [0x14006e308]
mov rsi, r12
imul rsi, rsi, 0x69a
movzx ebp, word [rsi + rax + 0x6a0]
cmp bp, word [rbx]
je 0x14000919a
lea edi, [r14 - 0x1f]
cmp word [rax + 0x1aa415], r15w
je 0x14000918e
lea r8, str.queueRead_Close:_SHMEM_QUEUE_MISSMATCH__Queue_Nr:__d__r_n
lea rcx, [rsp + 0xa0]
movsx r9d, bp
mov edx, 0x200
call fcn.1400253f4
mov rcx, qword [0x140097028]
lea r9d, [r14 + 1]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0xa0]
call fcn.140025290
mov rcx, qword [0x140097028]
lea r9, [0x14006e304]
lea rdx, [rsp + 0xa0]
mov r8, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, str.queueRead_Close
jmp 0x140009549
lea rdx, [rsp + 0x40]
movzx ecx, r12w
call fcn.1400030a4
mov edi, eax
mov dword [rsp + 0x34], eax
cmp eax, r15d
je 0x140009229
mov rax, qword [0x14006e308]
cmp word [rax + 0x1aa415], r15w
je 0x140009229
lea r8, str.queueRead_Close_Fehler___retval_d__r_n
lea rcx, [rsp + 0xa0]
mov r9d, edi
mov edx, 0x200
call fcn.1400253f4
mov rcx, qword [0x140097028]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0xa0]
call fcn.140025290
mov rcx, qword [0x140097028]
lea r9, [0x14006e304]
lea rdx, [rsp + 0xa0]
mov r8, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x40]
mov r8d, 0x24
call fcn.140025900
lea rdx, [rsp + 0x70]
movzx r9d, r12w
mov r8d, r14d
mov rcx, rbx
call fcn.140002278
cmp edi, r15d
jne 0x14000993e
call fcn.140020fe0
mov r11, qword [0x14006e308]
movsx rax, bp
dec dword [rsi + r11 + 0xe]
lea rax, [rax + rax*2]
lea rcx, [0x140000000]
mov rax, qword [rcx + rax*8 + 0x6e310]
dec byte [rax + 2]
mov rax, qword [0x14006e308]
cmp word [rax + 0x1aa415], r15w
je 0x140009304
lea r8, str._r_n__Umlaufpuffer_mit_Index___d_freigegeben_____r_n
lea rcx, [rsp + 0xa0]
movsx r9d, bp
mov edx, 0x200
call fcn.1400253f4
mov rcx, qword [0x140097028]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0xa0]
call fcn.140025290
mov rcx, qword [0x140097028]
lea r9, [0x14006e304]
lea rdx, [rsp + 0xa0]
mov r8, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [0x14006e308]
movsxd rax, dword [rsi + rax + 0x416]
lea rdi, [0x140000000]
mov rbp, rax
mov dword [rsp + 0x38], eax
mov r13, rax
lea rax, [0x14006f45e]
imul rbp, rbp, 0x22c
add rbp, rax
xor ebx, ebx
lea r14d, [rbx + 0x10]
cmp word [rbp], 0xffff
je 0x140009381
movsx rdx, word [rbp]
imul rdx, rdx, 0x2098
lea r15, [rdx + rdi + 0x71522]
lea rcx, [rdx + rdi + 0x71524]
movzx edx, r12w
dec word [r15]
call fcn.140002540
cmp word [r15], bx
jne 0x140009381
dec word [0x140071520]
xor edx, edx
mov r8d, 0x2098
mov rcx, r15
call fcn.140025190
add rbp, 2
sub r14, 1
jne 0x140009334
imul r13, r13, 0x22c
movzx edx, r12w
lea rcx, [r13 + rdi + 0x6f254]
call fcn.140002540
mov rbx, qword [rsp + 0x68]
lea rbp, [r13 + rdi + 0x6f252]
add word [rbp], 0xffff
mov edi, dword [rsp + 0x34]
jne 0x14000947a
lea rcx, [0x140000000]
lea rdx, [r13 + rcx + 0x6f25c]
lea rcx, [rsp + 0x2a0]
call fcn.140001a50
mov r11, qword [0x14006e308]
xor r15d, r15d
cmp word [r11 + 0x1aa415], r15w
je 0x140009461
mov r9d, dword [rsp + 0x38]
lea rax, [rsp + 0x2a0]
lea r8, str._r_n__Settingfileeintrag_mit_Index___d__freigegeben:__s__r_n
lea rcx, [rsp + 0xa0]
mov edx, 0x200
mov qword [rsp + 0x20], rax
call fcn.1400253f4
mov rcx, qword [0x140097028]
lea r9d, [r14 + 2]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0xa0]
call fcn.140025290
mov rcx, qword [0x140097028]
lea r9, [0x14006e304]
lea rdx, [rsp + 0xa0]
mov r8, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
mov r8d, 0x22c
mov rcx, rbp
call fcn.140025190
dec word [0x14006f250]
jmp 0x14000947d
xor r15d, r15d
mov rax, qword [0x14006e308]
cmp dword [rsi + rax + 0xe], r15d
jne 0x14000949d
lea rcx, [rsi + rax + 0xa]
xor edx, edx
mov r8d, 0x698
call fcn.140025190
call fcn.140021018
jmp 0x14000993e
movsx rsi, word [r12 + 2]
mov rcx, qword [0x14006e308]
mov rax, rsi
imul rax, rax, 0x69a
movzx edx, word [rax + rcx + 0x6a0]
cmp dx, word [rbx]
je 0x140009568
mov edi, 0xffffffe2
cmp word [rcx + 0x1aa415], r15w
je 0x140009542
movsx r9d, dx
lea r8, str.queueRead_SyncPoint:_SHMEM_QUEUE_MISSMATCH__Queue_Nr:__d__r_n
lea rcx, [rsp + 0xa0]
mov edx, 0x200
call fcn.1400253f4
mov rcx, qword [0x140097028]
lea r9d, [rdi + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0xa0]
call fcn.140025290
mov rcx, qword [0x140097028]
lea r9, [0x14006e304]
lea rdx, [rsp + 0xa0]
mov r8, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, str.queueRead_SyncPoint
mov ecx, r14d
mov r8d, r14d
mov edx, 0xc0001000
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call fcn.140002ac0
jmp 0x14000993e
lea rdx, [rsp + 0x40]
movzx ecx, si
call fcn.140003298
mov edi, eax
cmp eax, r15d
jne 0x140009915
mov rax, qword [0x14006e308]
cmp word [rax + 0x1aa415], r15w
je 0x140009915
xor r9d, r9d
lea r8, str.queueRead_SyncPoint_Fehler___retval_d__r_n
jmp 0x1400098ba
movsx rsi, word [r12 + 2]
mov rcx, qword [0x14006e308]
mov rax, rsi
imul rax, rax, 0x69a
movzx r8d, word [rax + rcx + 0x6a0]
cmp r8w, word [rbx]
je 0x140009649
mov edi, 0xffffffe2
cmp word [rcx + 0x1aa415], r15w
je 0x14000963d
movsx r9d, r8w
lea rcx, [rsp + 0xa0]
lea r8, str.queueRead_Write:_SHMEM_QUEUE_MISSMATCH__Queue_Nr:__d__r_n
mov edx, 0x200
call fcn.1400253f4
mov rcx, qword [0x140097028]
lea r9d, [rdi + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0xa0]
call fcn.140025290
mov rcx, qword [0x140097028]
lea r9, [0x14006e304]
lea rdx, [rsp + 0xa0]
mov r8, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, str.queueRead_Write
jmp 0x140009549
cmp dword [rbx + 0x11], r14d
je 0x1400096be
lea eax, [rbp + rdx]
add edi, eax
cmp edi, dword [rbx + 0xb]
jae 0x1400096be
mov cl, byte [rdi + rbx + 0x16]
mov eax, edi
mov al, cl
and al, 0x7f
cmp al, 3
je 0x140009670
cmp al, 4
je 0x140009670
cmp al, 5
jne 0x1400096be
lea eax, [rdi + 1]
cmp cl, r15b
mov dword [rsp + 0x30], r15d
lea rdx, [rax + rbx + 0x16]
lea rcx, [rsp + 0x30]
jle 0x140009699
mov r8d, 2
call fcn.140025900
mov ebp, 3
jmp 0x1400096a9
mov r8d, 4
call fcn.140025900
mov ebp, 5
mov edx, dword [rsp + 0x30]
add r13d, r14d
lea eax, [rbp + rdx]
add dword [rsp + 0x50], eax
cmp dword [rbx + 0x11], r13d
jne 0x14000964f
lea rdx, [rsp + 0x40]
movzx ecx, si
call fcn.140002ec8
mov edi, eax
cmp eax, r15d
je 0x140009748
mov rax, qword [0x14006e308]
cmp word [rax + 0x1aa415], r15w
je 0x140009748
lea r8, str.queueRead_Write_Fehler___retval_d__r_n
lea rcx, [rsp + 0xa0]
mov r9d, edi
mov edx, 0x200
call fcn.1400253f4
mov rcx, qword [0x140097028]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0xa0]
call fcn.140025290
mov rcx, qword [0x140097028]
lea r9, [0x14006e304]
lea rdx, [rsp + 0xa0]
mov r8, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x40]
mov r8d, 0x24
call fcn.140025900
mov r8d, r13d
jmp 0x14000992d
mov rax, qword [0x14006e308]
mov edi, 0xffffffe1
cmp word [rax + 0x1aa415], r15w
je 0x14000993e
lea r8, str.queueRead:_TRC_RESULT_INVALID_TFF_TYPE__type:__x__r_n
lea rcx, [rsp + 0xa0]
movsx r9d, sil
mov edx, 0x200
call fcn.1400253f4
mov rcx, qword [0x140097028]
lea r9d, [rdi + 0x21]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0xa0]
call fcn.140025290
mov rcx, qword [0x140097028]
lea r9, [0x14006e304]
lea rdx, [rsp + 0xa0]
mov r8, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14000993e
movsx rsi, word [r12 + 2]
mov rcx, qword [0x14006e308]
mov rax, rsi
imul rax, rax, 0x69a
movzx edx, word [rax + rcx + 0x6a0]
cmp dx, word [rbx]
je 0x14000988b
mov edi, 0xffffffe2
cmp word [rcx + 0x1aa415], r15w
je 0x14000987f
movsx r9d, dx
lea r8, str.queueRead_Open:_SHMEM_QUEUE_MISSMATCH__Queue_Nr:__d__r_n
lea rcx, [rsp + 0xa0]
mov edx, 0x200
call fcn.1400253f4
mov rcx, qword [0x140097028]
lea r9d, [rdi + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0xa0]
call fcn.140025290
mov rcx, qword [0x140097028]
lea r9, [0x14006e304]
lea rdx, [rsp + 0xa0]
mov r8, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, str.queueRead_Open
jmp 0x140009549
lea rdx, [rsp + 0x40]
movzx ecx, si
call fcn.140006760
mov edi, eax
cmp eax, r15d
je 0x140009915
mov rax, qword [0x14006e308]
cmp word [rax + 0x1aa415], r15w
je 0x140009915
mov r9d, edi
lea r8, str.queueRead_Open_Fehler___retval_d__r_n
lea rcx, [rsp + 0xa0]
mov edx, 0x200
call fcn.1400253f4
mov rcx, qword [0x140097028]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0xa0]
call fcn.140025290
mov rcx, qword [0x140097028]
lea r9, [0x14006e304]
lea rdx, [rsp + 0xa0]
mov r8, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
mov r8d, 0x24
call fcn.140025900
mov r8d, r14d
lea rdx, [rsp + 0x70]
movzx r9d, si
mov rcx, rbx
call fcn.140002278
mov dword [0x140092420], edi
mov eax, dword [rbx + 0x11]
mov dword [0x14009243c], eax
mov al, byte [rbx + 0x10]
mov byte [0x140092440], al
mov eax, dword [rbx + 7]
mov dword [0x140092434], eax
mov eax, dword [rbx + 3]
mov dword [0x140092430], eax
mov eax, dword [rbx + 0xb]
mov dword [0x140092438], eax
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140025570
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret