Function at 0x100d4b0
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 0x100d712
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 0x100d50e
lea rbp, [rcx + 0x78]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x800
lea r8, [0x01001980]
mov rdx, rsi
mov rcx, rbp
mov r9d, eax
call fcn.01006bd8
jmp 0x100d529
lea rbp, [rcx + 0x78]
mov esi, 0x800
lea r8, [0x01001978]
mov rcx, rbp
mov rdx, rsi
call fcn.01006bd8
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
cmp dword [r12 + 0x54], 0
lea rax, [0x010019e0]
not rcx
lea rbx, [0x010019d0]
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, [0x01001990]
mov rdx, r10
call fcn.01006bd8
cmp dword [r12 + 0x1c], 0
je 0x100d5a8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r10, qword [r12 + 8]
xor ebx, ebx
cmp r10, 0xffffffffffffffff
je 0x100d5df
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 0x100d61c
cdqe
cmp rax, 0x7ff
ja 0x100d61c
cmp rax, 0x7ff
jne 0x100d623
mov word [rbp + 0xffe], bx
jmp 0x100d623
mov word [rbp + 0xffe], bx
cmp dword [r12 + 0x1c], ebx
je 0x100d633
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r10, qword [r12 + 8]
cmp r10, 0xffffffffffffffff
je 0x100d668
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, [0x01001924]
mov rcx, rbp
sub rdx, rbp
nop
nop
nop
lea rax, [rsi + 0x7ffff7fe]
test rax, rax
je 0x100d6a4
movzx eax, word [rdx + rcx]
test ax, ax
je 0x100d6a4
mov word [rcx], ax
add rcx, 2
sub rsi, 1
jne 0x100d680
jmp 0x100d6a9
test rsi, rsi
jne 0x100d6ad
sub rcx, 2
mov rsi, qword [rsp + 0x58]
mov word [rcx], bx
cmp dword [r12 + 0x1c], ebx
je 0x100d6c5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r10, qword [r12 + 8]
cmp r10, 0xffffffffffffffff
je 0x100d6fa
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