Function at 0x1400074d0
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 0x140007b30
mov rax, qword [rsi + 0x48]
mov rbx, qword [rsi + 0x70]
cmp rbx, rax
jae 0x14000750f
mov qword [rsi + 0x70], rax
mov rbx, rax
mov rdi, qword [rsi + 0x40]
sub rbx, rdi
js 0x140007b0f
cmp rbx, r13
jae 0x140007b12
cmp rbx, 0x17
jae 0x140007540
lea r14, [rsp + 0x90]
mov byte [r14 + 0x17], bl
test rbx, rbx
jne 0x140007584
xor ebx, ebx
jmp 0x140007592
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.1400914ac
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.1400c3320
lea rdi, [rsi + 0x10]
mov byte [r14 + rbx], 0
movzx r12d, byte [rsp + 0xa7]
test r12b, r12b
jns 0x1400075b1
mov r12, qword [rsp + 0x98]
jns 0x1400075c0
mov rcx, qword [rsp + 0x90]
call fcn.1400914a4
mov rax, qword [rdi]
movsxd rax, dword [rax + 4]
mov rbx, qword [rdi + rax + 0x30]
lea r15, [0x1401238d0]
cmp rbx, r15
jne 0x140007b15
mov rax, qword [0x1401245d0]
cmp rax, 0xffffffffffffffff
jne 0x140007ba8
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 0x140007b0c
mov rcx, qword [rcx + rax*8 - 8]
test rcx, rcx
je 0x140007b0c
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
mov dl, 0xa
call qword [0x140109830]
mov ebp, eax
cmp rbx, r15
jne 0x140007b81
mov rcx, rdi
mov edx, ebp
call fcn.140025590
mov rcx, rdi
call fcn.140019660
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [0x1400f2c30]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsi + 0x78]
test al, 0x10
je 0x140007b5a
mov rax, qword [rsi + 0x48]
mov rdi, qword [rsi + 0x70]
cmp rdi, rax
jae 0x140007684
mov qword [rsi + 0x70], rax
mov rdi, rax
mov rbx, qword [rsi + 0x40]
sub rdi, rbx
js 0x140007b1e
cmp rdi, r13
jae 0x140007b21
cmp rdi, 0x17
jae 0x1400076b2
lea r14, [rsp + 0x30]
mov byte [r14 + 0x17], dil
test rdi, rdi
jne 0x1400076ed
xor edi, edi
jmp 0x1400076fb
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.1400914ac
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.1400c3320
mov byte [r14 + rdi], 0
mov rbp, qword [rsi + 0x118]
movzx ecx, byte [rsp + 0x47]
mov rax, rcx
test cl, cl
jns 0x140007718
mov rax, qword [rsp + 0x38]
mov rdi, rax
sub rdi, rbp
jb 0x140007b24
test cl, cl
js 0x14000772f
lea rbx, [rsp + 0x30]
jmp 0x140007734
mov rbx, qword [rsp + 0x30]
cmp rdi, r13
jae 0x140007b27
cmp rdi, 0x17
jae 0x140007753
lea r14, [rsp + 0x60]
mov byte [r14 + 0x17], dil
cmp rax, rbp
jne 0x14000778b
jmp 0x14000779c
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.1400914ac
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.1400c3320
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 0x140007a91
cmp byte [rsp + 0x77], 0
jns 0x1400077df
mov rcx, qword [rsp + 0x60]
call fcn.1400914a4
cmp dword [rsi + 8], 3
jne 0x1400077f2
cmp byte [0x1401247ec], 0
je 0x140007a37
mov eax, dword [0x140115568]
test al, 2
je 0x14000781b
cmp byte [rsp + 0x47], 0
js 0x14000780a
lea rcx, [rsp + 0x30]
jmp 0x14000780f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140115568]
test al, 4
jne 0x14000782c
test eax, 0xfffffffa
jne 0x140007870
cmp dword [rsi + 8], 2
jl 0x140007870
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 0x140007870
xor r14d, r14d
mov r8d, ebx
sub r8d, r14d
lea rdx, [rdi + r14]
mov ecx, 2
call fcn.1400a86d8
test eax, eax
js 0x14000786a
mov eax, eax
add r14, rax
cmp r14, rbx
jb 0x140007848
mov eax, dword [0x140115568]
test al, 1
jne 0x1400079ea
cmp dword [rsi + 8], 3
jne 0x1400079c4
lea rcx, [rsp + 0x90]
mov r8d, 0x400
mov dl, 0xaa
call fcn.1400c39c0
cmp byte [rsp + 0x47], 0
jns 0x1400078a5
mov rax, qword [rsp + 0x30]
jmp 0x1400078aa
lea rax, [rsp + 0x30]
xor ecx, ecx
mov dl, byte [rax + rcx]
mov byte [rsp + rcx + 0x90], dl
test dl, dl
je 0x1400078ce
inc rcx
cmp rcx, 0x400
jne 0x1400078ac
mov byte [rsp + 0x48f], 0
lea rcx, [rsp + 0x90]
call fcn.1400566e0
call fcn.1400de650
mov rax, qword [0x1401247d8]
cmp rax, qword [0x1401247e0]
je 0x140007b2a
call fcn.1400de650
mov rax, qword [0x1401247e0]
test rax, rax
mov rcx, qword [0x1401247d0]
cmove rax, rcx
lea rdx, [rax - 1]
cmp rcx, rdx
jb 0x140007b2d
mov rcx, qword [0x1401247c8]
mov rdi, qword [rcx + rax*8 - 8]
mov qword [rsp + 0x50], rdi
test rdi, rdi
je 0x1400079c4
mov eax, 1
lock xadd dword [rdi], eax
test eax, eax
jle 0x140007c30
cmp eax, 0x7fffffff
je 0x140007c33
cmp byte [rsp + 0x47], 0
js 0x14000795f
lea rbx, [rsp + 0x30]
jmp 0x140007964
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx + r12]
lea r14, [rsp + 0x60]
mov qword [r14], rcx
call fcn.1400ac570
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.1400de790
lock dec dword [rdi]
jne 0x1400079c4
mov rax, qword [rdi + 0x10]
mov rcx, rdi
call qword [0x140109830]
cmp byte [rsp + 0x47], 0
jns 0x1400079d5
mov rcx, qword [rsp + 0x30]
call fcn.1400914a4
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400de3a0
test al, al
je 0x140007878
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 0x140007878
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 0x140007ad7
lea rdi, [rsp + 0x90]
mov rcx, rsi
mov rdx, rdi
call fcn.1400de6c0
cmp byte [rdi + 0x17], 0
jns 0x140007a85
mov rcx, qword [rsp + 0x90]
call fcn.1400914a4
mov byte [0x1401247ec], 0
jmp 0x1400077f2
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.1400de990
jmp 0x1400077ce
lea rcx, [0x1401247f8]
call fcn.140091554
cmp dword [0x1401247f8], 0xffffffff
jne 0x140007a5f
mov qword [0x1401247f0], 0
lea rcx, [0x1401247f8]
call fcn.1400914e8
jmp 0x140007a5f
int3
int3
int3
lock inc dword [rbx + 8]
jmp 0x1400075dc
int3
int3
int3
int3
int3
int3
test al, 8
jne 0x140007b46
lea r14, [rsp + 0x90]
mov byte [r14 + 0x17], 0
jmp 0x14000753c
mov rdi, qword [rsi + 0x28]
mov rbx, qword [rsi + 0x38]
sub rbx, rdi
jns 0x14000751c
int3
test al, 8
jne 0x140007b6d
lea r14, [rsp + 0x30]
mov byte [r14 + 0x17], 0
jmp 0x1400076ae
mov rbx, qword [rsi + 0x28]
mov rdi, qword [rsi + 0x38]
sub rdi, rbx
jns 0x140007691
int3
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
test eax, eax
jne 0x140007638
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140109830]
jmp 0x140007638
lea rcx, [0x140122fc0]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x1401245d0]
cmp rax, 1
je 0x140007c48
mov rax, qword [0x1401245d0]
test rax, rax
jne 0x140007c36
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 0x1400075ed
int3
int3
lea rcx, [0x140122fc0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x1400075ed
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 0x140007bc6
jmp 0x140007c56