Function at 0x140007350
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, 0x498
mov rsi, rcx
mov eax, dword [rcx + 0x78]
movabs r13, 0x7ffffffffffffff8
test al, 0x10
je 0x1400079b3
mov rax, qword [rsi + 0x48]
mov rbx, qword [rsi + 0x70]
cmp rbx, rax
jae 0x14000738f
mov qword [rsi + 0x70], rax
mov rbx, rax
mov rdi, qword [rsi + 0x40]
sub rbx, rdi
js 0x140007992
cmp rbx, r13
jae 0x140007995
cmp rbx, 0x17
jae 0x1400073c0
lea r14, [rsp + 0x90]
mov byte [r14 + 0x17], bl
test rbx, rbx
jne 0x140007404
xor ebx, ebx
jmp 0x140007412
mov rax, rbx
and rax, r13
add rax, 8
mov r15, rbx
or r15, 7
cmp r15, 0x17
cmove r15, rax
inc r15
mov rcx, r15
call fcn.1400910bc
mov r14, rax
mov qword [rsp + 0x90], rax
bts r15, 0x3f
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0x98], rbx
mov rcx, r14
mov rdx, rdi
mov r8, rbx
call fcn.1400c2c60
lea rdi, [rsi + 0x10]
mov byte [r14 + rbx], 0
movzx r12d, byte [rsp + 0xa7]
test r12b, r12b
jns 0x140007431
mov r12, qword [rsp + 0x98]
jns 0x140007440
mov rcx, qword [rsp + 0x90]
call fcn.1400910b4
mov rax, qword [rdi]
movsxd rax, dword [rax + 4]
mov rbx, qword [rdi + rax + 0x30]
lea r15, [0x1401238d0]
cmp rbx, r15
jne 0x140007998
mov rax, qword [0x1401245d0]
cmp rax, 0xffffffffffffffff
jne 0x140007a2b
movsxd rax, dword [0x1401245d8]
lea rdx, [rax - 1]
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
sub r8, rcx
sar r8, 3
cmp r8, rdx
jbe 0x14000798f
mov rcx, qword [rcx + rax*8 - 8]
test rcx, rcx
je 0x14000798f
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
mov dl, 0xa
call qword [0x1401093a8]
mov ebp, eax
cmp rbx, r15
jne 0x140007a04
mov rcx, rdi
mov edx, ebp
call fcn.140024ff0
mov rcx, rdi
call fcn.140019410
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
vbroadcastss xmm0, dword [0x1400f27f0]
vmovaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsi + 0x78]
test al, 0x10
je 0x1400079dd
mov rax, qword [rsi + 0x48]
mov rdi, qword [rsi + 0x70]
cmp rdi, rax
jae 0x140007507
mov qword [rsi + 0x70], rax
mov rdi, rax
mov rbx, qword [rsi + 0x40]
sub rdi, rbx
js 0x1400079a1
cmp rdi, r13
jae 0x1400079a4
cmp rdi, 0x17
jae 0x140007535
lea r14, [rsp + 0x30]
mov byte [r14 + 0x17], dil
test rdi, rdi
jne 0x140007570
xor edi, edi
jmp 0x14000757e
mov rax, rdi
and rax, r13
add rax, 8
mov r15, rdi
or r15, 7
cmp r15, 0x17
cmove r15, rax
inc r15
mov rcx, r15
call fcn.1400910bc
mov r14, rax
mov qword [rsp + 0x30], rax
bts r15, 0x3f
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], rdi
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call fcn.1400c2c60
mov byte [r14 + rdi], 0
mov rbp, qword [rsi + 0x118]
movzx ecx, byte [rsp + 0x47]
mov rax, rcx
test cl, cl
jns 0x14000759b
mov rax, qword [rsp + 0x38]
mov rdi, rax
sub rdi, rbp
jb 0x1400079a7
test cl, cl
js 0x1400075b2
lea rbx, [rsp + 0x30]
jmp 0x1400075b7
mov rbx, qword [rsp + 0x30]
cmp rdi, r13
jae 0x1400079aa
cmp rdi, 0x17
jae 0x1400075d6
lea r14, [rsp + 0x60]
mov byte [r14 + 0x17], dil
cmp rax, rbp
jne 0x14000760e
jmp 0x14000761f
and r13, rdi
add r13, 8
mov r15, rdi
or r15, 7
cmp r15, 0x17
cmove r15, r13
inc r15
mov rcx, r15
call fcn.1400910bc
mov r14, rax
mov qword [rsp + 0x60], rax
bts r15, 0x3f
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x68], rdi
add rbx, rbp
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call fcn.1400c2c60
mov byte [r14 + rdi], 0
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0x5c], eax
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x78], 0x56
mov al, byte [0x140124656]
test al, al
jne 0x140007914
cmp byte [rsp + 0x77], 0
jns 0x140007662
mov rcx, qword [rsp + 0x60]
call fcn.1400910b4
cmp dword [rsi + 8], 3
jne 0x140007675
cmp byte [0x1401247ec], 0
je 0x1400078ba
mov eax, dword [0x140115568]
test al, 2
je 0x14000769e
cmp byte [rsp + 0x47], 0
js 0x14000768d
lea rcx, [rsp + 0x30]
jmp 0x140007692
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140115568]
test al, 4
jne 0x1400076af
test eax, 0xfffffffa
jne 0x1400076f3
cmp dword [rsi + 8], 2
jl 0x1400076f3
lea rdi, [rsp + 0x30]
movzx ebx, byte [rdi + 0x17]
test bl, bl
cmovs rbx, qword [rdi + 8]
cmovs rdi, qword [rdi]
test rbx, rbx
je 0x1400076f3
xor r14d, r14d
mov r8d, ebx
sub r8d, r14d
lea rdx, [rdi + r14]
mov ecx, 2
call fcn.1400a81c8
test eax, eax
js 0x1400076ed
mov eax, eax
add r14, rax
cmp r14, rbx
jb 0x1400076cb
mov eax, dword [0x140115568]
test al, 1
jne 0x14000786d
cmp dword [rsi + 8], 3
jne 0x140007847
lea rcx, [rsp + 0x90]
mov r8d, 0x400
mov dl, 0xaa
call fcn.1400c3300
cmp byte [rsp + 0x47], 0
jns 0x140007728
mov rax, qword [rsp + 0x30]
jmp 0x14000772d
lea rax, [rsp + 0x30]
xor ecx, ecx
mov dl, byte [rax + rcx]
mov byte [rsp + rcx + 0x90], dl
test dl, dl
je 0x140007751
inc rcx
cmp rcx, 0x400
jne 0x14000772f
mov byte [rsp + 0x48f], 0
lea rcx, [rsp + 0x90]
call fcn.1400552a0
call fcn.1400dec00
mov rax, qword [0x1401247d8]
cmp rax, qword [0x1401247e0]
je 0x1400079ad
call fcn.1400dec00
mov rax, qword [0x1401247e0]
test rax, rax
mov rcx, qword [0x1401247d0]
cmove rax, rcx
lea rdx, [rax - 1]
cmp rcx, rdx
jb 0x1400079b0
mov rcx, qword [0x1401247c8]
mov rdi, qword [rcx + rax*8 - 8]
mov qword [rsp + 0x50], rdi
test rdi, rdi
je 0x140007847
mov eax, 1
lock xadd dword [rdi], eax
test eax, eax
jle 0x140007ab3
cmp eax, 0x7fffffff
je 0x140007ab6
cmp byte [rsp + 0x47], 0
js 0x1400077e2
lea rbx, [rsp + 0x30]
jmp 0x1400077e7
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx + r12]
lea r14, [rsp + 0x60]
mov qword [r14], rcx
call fcn.1400ac060
mov qword [r14 + 8], rax
mov rax, qword [rsi + 0x118]
sub r12, rax
add rbx, rax
lea r9, [rsp + 0x80]
mov qword [r9], rbx
mov qword [r9 + 8], r12
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov qword [rsp + 0x20], r14
lea rcx, [rsp + 0x50]
call fcn.1400ded30
lock dec dword [rdi]
jne 0x140007847
mov rax, qword [rdi + 0x10]
mov rcx, rdi
call qword [0x1401093a8]
cmp byte [rsp + 0x47], 0
jns 0x140007858
mov rcx, qword [rsp + 0x30]
call fcn.1400910b4
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400de940
test al, al
je 0x1400076fb
lea r9, [rsp + 0x90]
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 [0x1401247b8]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400076fb
mov byte [0x1401247ec], 1
mov eax, dword [0x1401247f8]
mov ecx, dword [0x140121718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000795a
lea rdi, [rsp + 0x90]
mov rcx, rsi
mov rdx, rdi
call fcn.1400dec60
cmp byte [rdi + 0x17], 0
jns 0x140007908
mov rcx, qword [rsp + 0x90]
call fcn.1400910b4
mov byte [0x1401247ec], 0
jmp 0x140007675
movzx ecx, al
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x90]
mov qword [r9], rax
lea rax, [rsp + 0x5c]
mov qword [r9 + 8], rax
lea rax, [rsp + 0x60]
mov qword [r9 + 0x10], rax
lea rax, str.LogMessage
lea r8, [rsp + 0x80]
mov qword [r8], rax
lea rdx, [rsp + 0x78]
call fcn.1400def30
jmp 0x140007651
lea rcx, [0x1401247f8]
call fcn.140091164
cmp dword [0x1401247f8], 0xffffffff
jne 0x1400078e2
mov qword [0x1401247f0], 0
lea rcx, [0x1401247f8]
call fcn.1400910f8
jmp 0x1400078e2
int3
int3
int3
lock inc dword [rbx + 8]
jmp 0x14000745c
int3
int3
int3
int3
int3
int3
test al, 8
jne 0x1400079c9
lea r14, [rsp + 0x90]
mov byte [r14 + 0x17], 0
jmp 0x1400073bc
mov rdi, qword [rsi + 0x28]
mov rbx, qword [rsi + 0x38]
sub rbx, rdi
jns 0x14000739c
int3
test al, 8
jne 0x1400079f0
lea r14, [rsp + 0x30]
mov byte [r14 + 0x17], 0
jmp 0x140007531
mov rbx, qword [rsi + 0x28]
mov rdi, qword [rsi + 0x38]
sub rdi, rbx
jns 0x140007514
int3
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
test eax, eax
jne 0x1400074b8
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x1401093a8]
jmp 0x1400074b8
lea rcx, [0x140122fc0]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x1401245d0]
cmp rax, 1
je 0x140007acb
mov rax, qword [0x1401245d0]
test rax, rax
jne 0x140007ab9
mov qword [0x1401245d0], 1
lea r14, [0x140122fc0]
mov rbp, qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, r14
call rbp
mov eax, 1
lock xadd dword [0x140123a24], eax
inc eax
mov dword [0x1401245d8], eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov qword [0x1401245d0], 0xffffffffffffffff
mov rcx, r14
call rbp
lea rcx, [0x140122fc8]
call qword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
jmp 0x14000746d
int3
int3
lea rcx, [0x140122fc0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x14000746d
lea rbp, [0x140122fc0]
mov r14, qword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
lea rcx, [0x140122fc8]
mov rdx, rbp
mov r8d, 0xffffffff
xor r9d, r9d
call r14
mov rax, qword [0x1401245d0]
cmp rax, 1
jne 0x140007a49
jmp 0x140007ad9