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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push r12
sub rsp, 0x70
cmp dword [rcx + 0x50], 0
mov r12, rcx
je 0x100f682
cmp dword [rcx + 0x28], 0
mov qword [rax - 0x10], rbx
mov qword [rax - 0x18], rbp
mov qword [rax - 0x20], rsi
mov qword [rax - 0x28], rdi
je 0x100f47e
lea rbp, [rcx + 0x78]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x800
lea r8, [0x01003300]
mov rdx, rsi
mov rcx, rbp
mov r9d, eax
call fcn.010079d0
jmp 0x100f499
lea rbp, [rcx + 0x78]
mov esi, 0x800
lea r8, [0x010032f8]
mov rcx, rbp
mov rdx, rsi
call fcn.010079d0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
cmp dword [r12 + 0x54], 0
lea rax, [0x01003360]
not rcx
lea rbx, [0x01003350]
lea rdi, [rcx - 1]
cmovne rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, dword [r12 + 0x38]
mov edx, eax
mov rax, qword [r12 + 0x68]
mov qword [rsp + 0x38], rax
mov eax, dword [r12 + 0x4c]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
mov r10, rsi
sub r10, rdi
lea rcx, [r12 + rdi*2 + 0x78]
lea r8, [0x01003310]
mov rdx, r10
call fcn.010079d0
cmp dword [r12 + 0x1c], 0
je 0x100f518
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r10, qword [r12 + 8]
xor ebx, ebx
cmp r10, 0xffffffffffffffff
je 0x100f54f
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
lea r9, [rsp + 0x40]
mov rdx, rbp
not rcx
mov qword [rsp + 0x20], rbx
lea r8d, [rcx + rcx - 2]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8, qword [rsp + 0x88]
lea r9, [rsp + 0x90]
mov edx, 0x7ff
mov rcx, rbp
call qword [sym.imp.MSVCR80.dll__vsnwprintf]
test eax, eax
js 0x100f58c
cdqe
cmp rax, 0x7ff
ja 0x100f58c
cmp rax, 0x7ff
jne 0x100f593
mov word [rbp + 0xffe], bx
jmp 0x100f593
mov word [rbp + 0xffe], bx
cmp dword [r12 + 0x1c], ebx
je 0x100f5a3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r10, qword [r12 + 8]
cmp r10, 0xffffffffffffffff
je 0x100f5d8
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
lea r9, [rsp + 0x40]
mov rdx, rbp
not rcx
mov qword [rsp + 0x20], rbx
lea r8d, [rcx + rcx - 2]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [0x010032a4]
mov rcx, rbp
sub rdx, rbp
nop
nop
nop
lea rax, [rsi + 0x7ffff7fe]
test rax, rax
je 0x100f614
movzx eax, word [rdx + rcx]
test ax, ax
je 0x100f614
mov word [rcx], ax
add rcx, 2
sub rsi, 1
jne 0x100f5f0
jmp 0x100f619
test rsi, rsi
jne 0x100f61d
sub rcx, 2
mov rsi, qword [rsp + 0x58]
mov word [rcx], bx
cmp dword [r12 + 0x1c], ebx
je 0x100f635
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r10, qword [r12 + 8]
cmp r10, 0xffffffffffffffff
je 0x100f66a
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
lea r9, [rsp + 0x40]
mov rdx, rbp
not rcx
mov qword [rsp + 0x20], rbx
lea r8d, [rcx + rcx - 2]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x70
pop r12
ret
xor eax, eax
add rsp, 0x70
pop r12
ret