Function at 0x14004e2b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140300b88]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r15, rdx
mov r14, rcx
cmp qword [0x140301cc0], 0
je 0x14004e63e
xor r12d, r12d
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r12w
call fcn.140013560
mov rcx, qword [rax]
or rcx, 2
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
mov r9, r14
xor r8d, r8d
xor edx, edx
call fcn.140217e90
mov r13, 0xffffffffffffffff
test eax, eax
cmovs eax, r13d
movsxd rdi, eax
test eax, eax
je 0x14004e427
lfence
add rdi, 3
mov eax, 2
mul rdi
mov rbx, rax
cmovo rbx, r13
mov rcx, rbx
call fcn.140209a80
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14020dff0
mov qword [rbp - 0x48], rsi
test rsi, rsi
je 0x14004e41f
lfence
mov r9, r15
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.14004d0c0
movsxd rcx, eax
lea rbx, [rsi + rcx*2]
sub rdi, rcx
lea r9d, [r12 + 2]
lea r8, [0x1402d6704]
mov rdx, rdi
mov rcx, rbx
call fcn.140227aac
mov word [rbx + 4], r12w
mov rdx, r13
nop dword [rax]
inc rdx
cmp word [rsi + rdx*2], 0
jne 0x14004e3c0
mov rcx, qword [rbp - 0x70]
mov rax, qword [rbp - 0x68]
sub rax, rcx
lfence
cmp rdx, rax
ja 0x14004e40d
mov rdi, qword [rbp - 0x70]
add rdi, rdx
mov qword [rbp - 0x70], rdi
lea rbx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rbx, qword [rbp - 0x80]
lea rcx, [rbx + rcx*2]
lea r8, [rdx + rdx]
mov rdx, rsi
call fcn.14020d920
mov word [rbx + rdi*2], r12w
jmp 0x14004e41f
mov qword [rsp + 0x20], rdx
mov r9, rsi
lea rcx, [rbp - 0x80]
call fcn.140015840
nop
mov rcx, rsi
call fcn.1402090c4
lea rax, vtable.AutoLock.0
mov qword [rsp + 0x70], rax
lea r15, [0x140308810]
mov qword [rsp + 0x78], r15
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rax, [0x140301c70]
cmp qword [0x140301c88], 8
cmovae rax, qword [0x140301c70]
lea r9, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae r9, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x70]
cmp rcx, qword [0x140301c80]
jne 0x14004e4bb
test rcx, rcx
je 0x14004e5f8
movzx edx, word [r9]
movzx r8d, word [rax]
cmp dx, r8w
jb 0x14004e4bb
sub r9, rax
cmp dx, r8w
ja 0x14004e4bb
cmp rcx, 1
je 0x14004e5f8
dec rcx
add rax, 2
movzx edx, word [rax + r9]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x14004e499
lea rcx, [0x140301cb0]
cmp qword [0x140301cc8], 8
cmovae rcx, qword [0x140301cb0]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
lea edx, [r9 + 4]
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rbp - 0x40], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14004e5e4
lea rcx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rbp - 0x4a]
movzx edx, word [rbp - 0x4c]
movzx r9d, word [rbp - 0x4e]
movzx r10d, word [rbp - 0x50]
movzx r11d, word [rbp - 0x52]
movzx edi, word [rbp - 0x56]
movzx esi, word [rbp - 0x58]
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
lea r9, str._04u__02u__02uT_02u:_02u:_02u._03uZ___6u:_6u_
mov r8, r13
mov edx, 0x40
lea rcx, [rbp - 0x30]
call fcn.14004dd90
lea r8d, [rax + rax]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x60]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbp - 0x70]
lea r8d, [rax + rax]
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
lea rcx, [0x140301c70]
call fcn.140001e70
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004e5f8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14004e63e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004e639
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004e665
call fcn.1402090c4
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140208e10
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140212258
int3