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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rdi, rcx
call fcn.14019aabc
mov esi, dword [rax]
call fcn.14019aabc
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x84], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x78]
movabs r13, 0x7ffffffffffffff8
test al, 0x10
mov dword [rsp + 0x88], esi
je 0x14000237b
mov rax, qword [rdi + 0x48]
mov rbx, qword [rdi + 0x70]
cmp rbx, rax
jae 0x140001f4d
mov qword [rdi + 0x70], rax
mov rbx, rax
mov r14, qword [rdi + 0x40]
sub rbx, r14
js 0x14000231e
cmp rbx, r13
jae 0x140002325
cmp rbx, 0x16
ja 0x140002110
lea rcx, [rsp + 0x50]
mov byte [rcx + 0x17], bl
lea rsi, [rcx + rbx]
cmp r14, rcx
jb 0x140001f87
cmp r14, rsi
jb 0x14000231e
test rbx, rbx
je 0x140001f97
mov rdx, r14
mov r8, rbx
call fcn.1401d6070
lea r14, [rdi + 0x10]
mov byte [rsi], 0
movsx rbx, byte [rsp + 0x67]
test rbx, rbx
jns 0x140001fae
mov rbx, qword [rsp + 0x58]
jns 0x140001fba
mov rcx, qword [rsp + 0x50]
call fcn.14019aab4
mov rax, qword [r14]
movsxd rax, dword [rax + 4]
mov r15, qword [r14 + rax + 0x30]
lea rsi, [0x1402c4540]
cmp r15, rsi
jne 0x14000232f
lea rax, [0x1402c5240]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1402c5240]
cmp rax, 0xffffffffffffffff
jne 0x1400023f3
movsxd rax, dword [0x1402c5248]
lea rdx, [rax - 1]
mov rcx, qword [r15 + 0x10]
mov r8, qword [r15 + 0x18]
sub r8, rcx
sar r8, 3
cmp r8, rdx
jbe 0x140002320
mov rcx, qword [rcx + rax*8 - 8]
test rcx, rcx
je 0x140002320
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
mov dl, 0xa
call qword [0x1402a4958]
mov ebp, eax
cmp r15, rsi
jne 0x1400023cb
mov rcx, r14
mov edx, ebp
call fcn.140002590
mov rcx, r14
call fcn.140008e90
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [0x140272a70]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rdi + 0x78]
test al, 0x10
je 0x140002398
mov rax, qword [rdi + 0x48]
mov r14, qword [rdi + 0x70]
cmp r14, rax
jae 0x14000208a
mov qword [rdi + 0x70], rax
mov r14, rax
mov r15, qword [rdi + 0x40]
sub r14, r15
js 0x14000231e
cmp r14, r13
jae 0x140002339
cmp r14, 0x16
ja 0x14000214d
lea rcx, [rsp + 0x30]
mov byte [rcx + 0x17], r14b
lea rsi, [rcx + r14]
cmp r15, rcx
jb 0x1400020c5
cmp r15, rsi
jb 0x14000231e
test r14, r14
je 0x1400020d5
mov rdx, r15
mov r8, r14
call fcn.1401d6070
mov byte [rsi], 0
mov rbp, qword [rdi + 0x118]
movsx rax, byte [rsp + 0x47]
mov rsi, rax
test rax, rax
jns 0x1400020f2
mov rsi, qword [rsp + 0x38]
mov r14, rsi
sub r14, rbp
jb 0x140002343
test al, al
js 0x1400021c4
lea r15, [rsp + 0x30]
jmp 0x1400021c9
mov rax, rbx
or rax, 7
lea rcx, [rax + 1]
cmp rax, 0x17
mov r15d, Ordinal_26
cmovne r15, rcx
mov rcx, r15
call fcn.14019aa78
mov rcx, rax
mov qword [rsp + 0x50], rax
bts r15, 0x3f
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], rbx
jmp 0x140001f75
mov rax, r14
or rax, 7
lea rcx, [rax + 1]
cmp rax, 0x17
mov r12d, Ordinal_26
cmovne r12, rcx
mov rcx, r12
call fcn.14019aa78
mov rcx, rax
mov qword [rsp + 0x30], rax
bts r12, 0x3f
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r14
jmp 0x1400020b3
mov rax, r14
or rax, 7
lea rcx, [rax + 1]
cmp rax, 0x17
mov r12d, Ordinal_26
cmovne r12, rcx
mov rcx, r12
call fcn.14019aa78
mov rcx, rax
mov qword [rsp + 0x68], rax
bts r12, 0x3f
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], r14
jmp 0x1400021e4
mov r15, qword [rsp + 0x30]
cmp r14, r13
jae 0x14000234d
add r15, rbp
cmp r14, 0x16
ja 0x14000218a
lea rcx, [rsp + 0x68]
mov byte [rcx + 0x17], r14b
lea r12, [rcx + r14]
cmp r15, rcx
jb 0x1400021f6
cmp r15, r12
jb 0x14000231e
cmp rsi, rbp
je 0x140002206
mov rdx, r15
mov r8, r14
call fcn.1401d6070
mov byte [r12], 0
mov eax, dword [rdi + 0x128]
mov rcx, qword [rdi + 0x120]
mov dword [rsp + 0x8c], eax
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0x90], 0x57
mov al, byte [0x1402c52a7]
test al, al
jne 0x14000246a
cmp byte [rsp + 0x7f], 0
jns 0x140002252
mov rcx, qword [rsp + 0x68]
call fcn.14019aab4
cmp dword [rdi + 8], 3
je 0x1400024b6
mov eax, dword [0x1402b56d8]
test al, 2
jne 0x140002357
test al, 4
jne 0x1400022cd
test eax, 0xfffffffa
jne 0x14000227b
cmp dword [rdi + 8], 2
jge 0x1400022cd
test al, 1
jne 0x140002420
cmp dword [rdi + 8], 3
mov esi, dword [rsp + 0x88]
je 0x1400023b6
cmp byte [rsp + 0x47], 0
jns 0x1400022a5
mov rcx, qword [rsp + 0x30]
call fcn.14019aab4
mov ecx, dword [rsp + 0x84]
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14019aabc
mov dword [rax], esi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x30]
movsx r14, byte [rsi + 0x17]
test r14, r14
cmovs r14, qword [rsi + 8]
cmovs rsi, qword [rsi]
test r14, r14
je 0x14000227b
xor r15d, r15d
mov r8d, r14d
sub r8d, r15d
lea rdx, [rsi + r15]
mov ecx, 2
call fcn.14019ab14
test eax, eax
setns cl
mov eax, eax
add r15, rax
cmp r15, r14
setb al
test cl, al
jne 0x1400022eb
mov eax, dword [0x1402b56d8]
jmp 0x14000227b
ud2
call fcn.1401db860
lea rcx, [rsp + 0x50]
call fcn.1401da290
lock inc dword [r15 + 8]
jmp 0x140001fd6
lea rcx, [rsp + 0x30]
call fcn.1401da290
lea rcx, [rsp + 0x68]
call fcn.1401da2f0
lea rcx, [rsp + 0x68]
call fcn.1401da290
cmp byte [rsp + 0x47], 0
js 0x140002365
lea rcx, [rsp + 0x30]
jmp 0x14000236a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402b56d8]
jmp 0x14000226a
xor r14d, r14d
mov ebx, 0
test al, 8
je 0x140001f6d
mov r14, qword [rdi + 0x28]
mov rbx, qword [rdi + 0x38]
jmp 0x140001f51
xor r14d, r14d
mov r15d, 0
test al, 8
je 0x1400020aa
mov r15, qword [rdi + 0x28]
mov r14, qword [rdi + 0x38]
jmp 0x14000208e
lea r8, [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
call fcn.140202a20
jmp 0x140002294
mov eax, 0xffffffff
lock xadd dword [r15 + 8], eax
test eax, eax
jne 0x14000203e
mov rax, qword [r15]
mov rax, qword [rax + 8]
mov rcx, r15
call qword [0x1402a4958]
jmp 0x14000203e
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x50]
mov qword [rcx], rax
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
lea rcx, [0x1402c5240]
lea r8, [0x14009c090]
call fcn.14004b910
jmp 0x140001ff3
call fcn.1402025f0
test al, al
je 0x140002283
lea r9, [rsp + 0x50]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x30]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x1402c5560]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140002283
movzx ecx, al
lea rax, [rsp + 0x98]
lea r9, [rsp + 0x50]
mov qword [r9], rax
lea rax, [rsp + 0x8c]
mov qword [r9 + 8], rax
lea rax, [rsp + 0x68]
mov qword [r9 + 0x10], rax
lea rax, str.LogMessage
lea r8, [rsp + 0xa0]
mov qword [r8], rax
lea rdx, [rsp + 0x90]
call fcn.140203030
jmp 0x140002241
cmp byte [0x1402c55a4], 0
jne 0x14000225c
mov byte [0x1402c55a4], 1
mov eax, dword [0x1402c55b0]
mov ecx, dword [0x1402c2098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140002544
lea r14, [rsp + 0x50]
mov rcx, rdi
mov rdx, r14
call fcn.140202940
movsx rax, byte [r14 + 0x17]
test rax, rax
jns 0x14000250f
mov rax, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
lea rdx, [rsp + 0x68]
mov qword [rdx], r14
mov qword [rdx + 8], rax
mov rcx, qword [0x1402c55a8]
call fcn.14000afe0
cmp byte [rsp + 0x67], 0
jns 0x140002538
mov rcx, qword [rsp + 0x50]
call fcn.14019aab4
mov byte [0x1402c55a4], 0
jmp 0x14000225c
lea rcx, [0x1402c55b0]
call fcn.14019ae60
cmp dword [0x1402c55b0], 0xffffffff
jne 0x1400024eb
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140008fa0
mov qword [0x1402c55a8], rax
lea rcx, [0x1402c55b0]
call fcn.14019ad84
jmp 0x1400024eb