Function at 0x14000fde0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400469b0]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rdi, rcx
mov dl, 0xa
add rcx, 8
call fcn.140010f70
lea rcx, [rdi + 8]
call fcn.140004530
lea rdx, [rsp + 0x38]
lea rcx, [rdi + 0x10]
call fcn.140009800
mov rax, qword [0x140048400]
test rax, rax
je 0x14000fe6a
mov r9, qword [rdi + 0xf0]
mov r8d, dword [rdi + 0x100]
mov rdx, qword [rdi + 0xf8]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rdi]
call rax
test al, al
jne 0x14001003b
test byte [0x140046038], 2
je 0x14000fe8c
cmp qword [rsp + 0x50], 0x10
lea rcx, [rsp + 0x38]
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000fe91
cmp dword [rdi], 2
jl 0x14000fec8
cmp qword [rsp + 0x50], 0x10
lea rbx, [rsp + 0x38]
cmovae rbx, qword [rsp + 0x38]
call fcn.14001b6f0
lea rdx, [0x140034a70]
lea rcx, [rax + 0x60]
mov r8, rbx
call fcn.14001ba04
call fcn.14001b6f0
lea rcx, [rax + 0x60]
call fcn.14001b8d8
xor edx, edx
xor ecx, ecx
call fcn.140010c00
test byte [0x140046038], 1
je 0x14000ff7b
cmp dword [0x140048418], 0
jne 0x14000fef9
mov rcx, qword [0x140048410]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14000ff05
mov rcx, qword [0x140048408]
call sub.KERNEL32.dll_EnterCriticalSection
call fcn.140010e50
test al, al
je 0x14000ff57
mov rcx, qword [0x1400483e0]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp qword [rsp + 0x50], 0x10
mov r8d, dword [rsp + 0x48]
mov rcx, qword [0x1400483e0]
lea rdx, [rsp + 0x38]
lea r9, [rsp + 0x30]
cmovae rdx, qword [rsp + 0x38]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x140048418], 0
jne 0x14000ff6f
mov rcx, qword [0x140048410]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x14000ff7b
mov rcx, qword [0x140048408]
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [rdi]
cmp eax, 4
jne 0x14000fff0
mov r8d, 0x400
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x48], r8
cmovb r8, qword [rsp + 0x48]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
test r8, r8
je 0x14000ffb2
lea rcx, [rbp - 0x80]
call fcn.14001a320
lea rcx, [rbp - 0x80]
call fcn.140015820
call fcn.1400157d0
test al, al
je 0x14000ffcb
call fcn.1400157f0
jmp 0x14001003b
cmp qword [0x1400483f0], 0
je 0x14000ffc4
lea rdx, [rsp + 0x58]
lea rcx, [rdi + 0x10]
call fcn.140009800
lea rcx, [rsp + 0x58]
call qword [0x1400483f0]
jmp 0x140010029
cmp eax, 3
jne 0x14001003b
cmp qword [0x1400483f8], 0
lea rdx, [rsp + 0x58]
lea rcx, [rdi + 0x10]
je 0x14001001a
call fcn.140009800
lea rcx, [rsp + 0x58]
call qword [0x1400483f8]
jmp 0x140010029
call fcn.140009800
lea rcx, [rsp + 0x58]
call fcn.140010610
cmp qword [rsp + 0x70], 0x10
jb 0x14001003b
mov rcx, qword [rsp + 0x58]
call fcn.14001a194
cmp qword [rsp + 0x50], 0x10
jb 0x14001004d
mov rcx, qword [rsp + 0x38]
call fcn.14001a194
mov ecx, dword [rdi + 0x104]
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rdi + 0x90]
call fcn.1400083c0
lea rax, [0x1400344f0]
lea rcx, [rdi + 0x90]
mov qword [rdi + 0x90], rax
call fcn.140019f9c
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14001ac10
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret