Function at 0x14006ac10
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x1b0
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x14012a4f8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rsi, rcx
mov qword [r11 - 0x98], 7
xor ebp, ebp
mov qword [r11 - 0xa0], rbp
mov word [rsp + 0x108], bp
mov qword [r11 - 0xe8], 0xffffffffffffffff
mov qword [r11 - 0xc0], 7
mov qword [r11 - 0xc8], rbp
mov word [rsp + 0xe0], bp
mov edi, ebp
lea rbx, [0x140131230]
nop word [rax + rax]
mov edx, dword [rsi + 0x10]
lea rcx, [rsp + 0x128]
call fcn.140051bd0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.140025740
nop
cmp qword [rsp + 0x148], 8
jb 0x14006ace1
mov rcx, qword [rsp + 0x130]
call fcn.1400ad0b8
mov qword [rsp + 0x148], 7
mov qword [rsp + 0x140], rbp
mov word [rsp + 0x130], bp
cmp dword [0x140131218], 0
je 0x14006ad79
mov rcx, qword [0x140131228]
test rcx, rcx
jne 0x14006ad66
mov qword [rsp + 0x40], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp qword [0x140131228], 0
jne 0x14006ad56
mov ecx, 0x68
call fcn.1400aee14
mov qword [rsp + 0xc0], rax
test rax, rax
je 0x14006ad4c
mov rcx, rax
call fcn.14004dbd0
jmp 0x14006ad4f
mov rax, rbp
mov qword [0x140131228], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x140131228]
lea r8, str.statistics::FileMgr::Init
lea rdx, [0x1400fccb8]
call fcn.14004de70
mov rcx, qword [rsp + 0xd0]
cmp rcx, 0xffffffffffffffff
je 0x14006ad99
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xd0], 0xffffffffffffffff
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0xd8]
call fcn.140025740
lea rcx, [rsp + 0x108]
cmp qword [rsp + 0x120], 8
cmovae rcx, qword [rsp + 0x108]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xd0], rax
cmp rax, 0xffffffffffffffff
jne 0x14006ae0f
inc edi
cmp edi, 0xa
je 0x14006ae5d
jmp 0x14006aca0
cmp dword [0x140131218], 0
je 0x14006ae58
lea rbx, [rsp + 0x108]
cmp qword [rsp + 0x120], 8
cmovae rbx, qword [rsp + 0x108]
call fcn.14004e530
mov rcx, rax
mov r9, rbx
lea r8, str.statistics::EndTask::InTimeCachePost
lea rdx, str._s__in_time_file_:__s
call fcn.14004de70
mov rax, qword [rsp + 0xd0]
cmp edi, 0xa
jne 0x14006aecd
cmp rax, 0xffffffffffffffff
je 0x14006ae78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xd0], 0xffffffffffffffff
cmp qword [rsp + 0xf8], 8
jb 0x14006ae90
mov rcx, qword [rsp + 0xe0]
call fcn.1400ad0b8
mov qword [rsp + 0xf8], 7
mov qword [rsp + 0xf0], rbp
mov word [rsp + 0xe0], bp
cmp qword [rsp + 0x120], 8
jb 0x14006b25c
mov rcx, qword [rsp + 0x108]
call fcn.1400ad0b8
jmp 0x14006b25c
lea rdx, [rsp + 0x150]
mov rcx, rsi
call fcn.14006b290
nop
lea rdx, [rsp + 0x178]
mov rcx, qword [rsi + 8]
call fcn.1400419c0
nop
mov rax, qword [rsi + 8]
mov ecx, dword [rax + 0xfc]
cmp ecx, 2
je 0x14006afbe
cmp ecx, 1
je 0x14006afbe
mov r9d, 2
lea r8, [0x1400fcde0]
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.140042430
lea r8, [rsp + 0x150]
lea rdx, [rsp + 0x178]
lea rcx, [rsp + 0x48]
call fcn.140048e20
mov rbx, rax
mov rcx, qword [rsp + 0xd0]
cmp rcx, 0xffffffffffffffff
je 0x14006afa3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [rsp + 0x40], ebp
mov rax, qword [rbx + 0x18]
cmp qword [rbx + 0x20], 0x10
jb 0x14006af84
mov rdx, qword [rbx + 8]
jmp 0x14006af88
lea rdx, [rbx + 8]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov r8d, eax
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rsp + 0x68], 0x10
jb 0x14006b16f
mov rcx, qword [rsp + 0x50]
call fcn.1400ad0b8
jmp 0x14006b16f
mov qword [rsp + 0x148], 0xf
mov qword [rsp + 0x140], rbp
mov byte [rsp + 0x130], 0
mov r8d, 2
lea rdx, [0x1400fcdd8]
lea rcx, [rsp + 0x128]
call fcn.140004cb0
nop
mov rcx, qword [rsi + 8]
add rcx, 0x438
lea r8, [rsp + 0x150]
lea rdx, [rsp + 0x70]
call fcn.140069c70
nop
lea r8, str.1E385666
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140048d60
nop
lea r8, [0x1400fcddc]
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.140048d60
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x128]
call fcn.1400222f0
nop
cmp qword [rsp + 0xb8], 0x10
jb 0x14006b070
mov rcx, qword [rsp + 0xa0]
call fcn.1400ad0b8
mov qword [rsp + 0xb8], 0xf
mov qword [rsp + 0xb0], rbp
mov byte [rsp + 0xa0], 0
cmp qword [rsp + 0x68], 0x10
jb 0x14006b09e
mov rcx, qword [rsp + 0x50]
call fcn.1400ad0b8
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], rbp
mov byte [rsp + 0x50], 0
cmp qword [rsp + 0x90], 0x10
jb 0x14006b0c6
mov rcx, qword [rsp + 0x78]
call fcn.1400ad0b8
lea r8, [rsp + 0x128]
lea rdx, [rsp + 0x178]
lea rcx, [rsp + 0x70]
call fcn.140048e20
mov rbx, rax
mov rcx, qword [rsp + 0xd0]
cmp rcx, 0xffffffffffffffff
je 0x14006b141
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [rsp + 0x40], ebp
mov rax, qword [rbx + 0x18]
cmp qword [rbx + 0x20], 0x10
jb 0x14006b122
mov rdx, qword [rbx + 8]
jmp 0x14006b126
lea rdx, [rbx + 8]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov r8d, eax
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rsp + 0x90], 0x10
jb 0x14006b157
mov rcx, qword [rsp + 0x78]
call fcn.1400ad0b8
nop
cmp qword [rsp + 0x148], 0x10
jb 0x14006b16f
mov rcx, qword [rsp + 0x130]
call fcn.1400ad0b8
mov rcx, qword [rsi + 8]
add rcx, 0x428
lea rdx, [rsp + 0x100]
call fcn.14004ce40
nop
cmp qword [rsp + 0x198], 0x10
jb 0x14006b1a0
mov rcx, qword [rsp + 0x180]
call fcn.1400ad0b8
mov qword [rsp + 0x198], 0xf
mov qword [rsp + 0x190], rbp
mov byte [rsp + 0x180], 0
cmp qword [rsp + 0x170], 0x10
jb 0x14006b1d4
mov rcx, qword [rsp + 0x158]
call fcn.1400ad0b8
mov qword [rsp + 0x170], 0xf
mov qword [rsp + 0x168], rbp
mov byte [rsp + 0x158], 0
mov rcx, qword [rsp + 0xd0]
cmp rcx, 0xffffffffffffffff
je 0x14006b210
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xd0], 0xffffffffffffffff
cmp qword [rsp + 0xf8], 8
jb 0x14006b228
mov rcx, qword [rsp + 0xe0]
call fcn.1400ad0b8
mov qword [rsp + 0xf8], 7
mov qword [rsp + 0xf0], rbp
mov word [rsp + 0xe0], bp
cmp qword [rsp + 0x120], 8
jb 0x14006b25c
mov rcx, qword [rsp + 0x108]
call fcn.1400ad0b8
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1400ad2c0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret