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

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov rax, qword [0x140112ac0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov eax, dword [0x1401148b4]
mov rdi, rcx
cmp dword [rcx], eax
jl 0x14004017f
mov qword [r11 + 0x10], rbx
mov dl, 0xa
add rcx, 8
mov qword [r11 + 0x18], rsi
call fcn.14003f7e0
lea rcx, [rdi + 8]
call fcn.140005720
lea rdx, [rsp + 0x60]
lea rcx, [rdi + 0x10]
call fcn.14002faf0
mov r11, qword [0x1401148e8]
test r11, r11
je 0x14003ff30
mov ecx, dword [rdi]
lea rdx, [rsp + 0x60]
call r11
test al, al
je 0x14003ff30
cmp qword [rsp + 0x80], 0x10
jmp 0x140040163
mov eax, dword [0x140112198]
cmp eax, 2
je 0x14003ff85
cmp eax, 3
je 0x14003ff85
cmp dword [rdi], 2
jl 0x14003ffd9
cmp qword [rsp + 0x80], 0x10
lea rbx, [rsp + 0x68]
cmovae rbx, qword [rsp + 0x68]
call fcn.1400aeb68
lea rdx, [0x1400eae1c]
lea rcx, [rax + 0x60]
mov r8, rbx
call fcn.1400ae948
call fcn.1400aeb68
lea rcx, [rax + 0x60]
call fcn.1400ae8f8
jmp 0x14003ffd9
cmp qword [rsp + 0x80], 0x10
lea rcx, [rsp + 0x68]
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp qword [rsp + 0x80], 0x10
lea rbx, [rsp + 0x68]
cmovae rbx, qword [rsp + 0x68]
call fcn.1400aeb68
lea rdx, [0x1400eae1c]
lea rcx, [rax + 0x60]
mov r8, rbx
call fcn.1400ae948
call fcn.1400aeb68
lea rcx, [rax + 0x60]
call fcn.1400ae8f8
xor edx, edx
xor ecx, ecx
call fcn.14003ea10
mov r11d, dword [0x140112198]
test r11d, r11d
je 0x14004009c
cmp r11d, 2
je 0x14004009c
cmp dword [0x1401148f8], 0
jne 0x140040017
mov rcx, qword [0x140114900]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140040023
mov rcx, qword [0x1401148f0]
call sub.KERNEL32.dll_EnterCriticalSection
call fcn.14003ece0
test al, al
je 0x140040078
mov rcx, qword [0x1401148c8]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp qword [rsp + 0x80], 0x10
mov r8d, dword [rsp + 0x78]
mov rcx, qword [0x1401148c8]
lea rdx, [rsp + 0x68]
lea r9, [rsp + 0x58]
cmovae rdx, qword [rsp + 0x68]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x1401148f8], 0
jne 0x140040090
mov rcx, qword [0x140114900]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x14004009c
mov rcx, qword [0x1401148f0]
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [rdi]
cmp eax, 4
jne 0x1400400f4
call fcn.140065f30
test al, al
je 0x1400400b6
call fcn.140065f50
jmp 0x14004015a
cmp qword [0x1401148d8], 0
je 0x1400400ed
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x10]
call fcn.14002faf0
lea rcx, [rsp + 0x30]
call qword [0x1401148d8]
cmp qword [rsp + 0x50], 0x10
jb 0x14004015a
mov rcx, qword [rsp + 0x38]
call fcn.1400ab7f0
jmp 0x14004015a
call fcn.140065f50
jmp 0x14004015a
cmp eax, 3
jne 0x14004015a
cmp qword [0x1401148e0], 0
je 0x140040130
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x10]
call fcn.14002faf0
lea rcx, [rsp + 0x30]
call qword [0x1401148e0]
cmp qword [rsp + 0x50], 0x10
jb 0x14004015a
mov rcx, qword [rsp + 0x38]
call fcn.1400ab7f0
jmp 0x14004015a
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x10]
call fcn.14002faf0
lea rcx, [rsp + 0x30]
call fcn.14003e690
cmp qword [rsp + 0x50], 0x10
jb 0x14004015a
mov rcx, qword [rsp + 0x38]
call fcn.1400ab7f0
cmp qword [rsp + 0x80], 0x10
jb 0x14004016f
mov rcx, qword [rsp + 0x68]
call fcn.1400ab7f0
mov rbx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xb0]
mov ecx, dword [rdi + 0xf8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rdi + 8]
call fcn.14002ef30
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400ac220
add rsp, 0x90
pop rdi
ret