Function at 0x1400073f0
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 0x140007a50
mov rax, qword [rsi + 0x48]
mov rbx, qword [rsi + 0x70]
cmp rbx, rax
jae 0x14000742f
mov qword [rsi + 0x70], rax
mov rbx, rax
mov rdi, qword [rsi + 0x40]
sub rbx, rdi
js 0x140007a2f
cmp rbx, r13
jae 0x140007a32
cmp rbx, 0x17
jae 0x140007460
lea r14, [rsp + 0x90]
mov byte [r14 + 0x17], bl
test rbx, rbx
jne 0x1400074a4
xor ebx, ebx
jmp 0x1400074b2
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.14009208c
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.1400c3c30
lea rdi, [rsi + 0x10]
mov byte [r14 + rbx], 0
movzx r12d, byte [rsp + 0xa7]
test r12b, r12b
jns 0x1400074d1
mov r12, qword [rsp + 0x98]
jns 0x1400074e0
mov rcx, qword [rsp + 0x90]
call fcn.140092084
mov rax, qword [rdi]
movsxd rax, dword [rax + 4]
mov rbx, qword [rdi + rax + 0x30]
lea r15, [0x1401248d0]
cmp rbx, r15
jne 0x140007a35
mov rax, qword [0x1401255d0]
cmp rax, 0xffffffffffffffff
jne 0x140007ac8
movsxd rax, dword [0x1401255d8]
lea rdx, [rax - 1]
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
sub r8, rcx
sar r8, 3
cmp r8, rdx
jbe 0x140007a2c
mov rcx, qword [rcx + rax*8 - 8]
test rcx, rcx
je 0x140007a2c
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
mov dl, 0xa
call qword [str.P:_f_]
mov ebp, eax
cmp rbx, r15
jne 0x140007aa1
mov rcx, rdi
mov edx, ebp
call fcn.140025140
mov rcx, rdi
call fcn.140019570
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [0x1400f3bf0]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsi + 0x78]
test al, 0x10
je 0x140007a7a
mov rax, qword [rsi + 0x48]
mov rdi, qword [rsi + 0x70]
cmp rdi, rax
jae 0x1400075a4
mov qword [rsi + 0x70], rax
mov rdi, rax
mov rbx, qword [rsi + 0x40]
sub rdi, rbx
js 0x140007a3e
cmp rdi, r13
jae 0x140007a41
cmp rdi, 0x17
jae 0x1400075d2
lea r14, [rsp + 0x30]
mov byte [r14 + 0x17], dil
test rdi, rdi
jne 0x14000760d
xor edi, edi
jmp 0x14000761b
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.14009208c
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.1400c3c30
mov byte [r14 + rdi], 0
mov rbp, qword [rsi + 0x118]
movzx ecx, byte [rsp + 0x47]
mov rax, rcx
test cl, cl
jns 0x140007638
mov rax, qword [rsp + 0x38]
mov rdi, rax
sub rdi, rbp
jb 0x140007a44
test cl, cl
js 0x14000764f
lea rbx, [rsp + 0x30]
jmp 0x140007654
mov rbx, qword [rsp + 0x30]
cmp rdi, r13
jae 0x140007a47
cmp rdi, 0x17
jae 0x140007673
lea r14, [rsp + 0x60]
mov byte [r14 + 0x17], dil
cmp rax, rbp
jne 0x1400076ab
jmp 0x1400076bc
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.14009208c
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.1400c3c30
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 [0x140125656]
test al, al
jne 0x1400079b1
cmp byte [rsp + 0x77], 0
jns 0x1400076ff
mov rcx, qword [rsp + 0x60]
call fcn.140092084
cmp dword [rsi + 8], 3
jne 0x140007712
cmp byte [0x1401257ec], 0
je 0x140007957
mov eax, dword [0x140116568]
test al, 2
je 0x14000773b
cmp byte [rsp + 0x47], 0
js 0x14000772a
lea rcx, [rsp + 0x30]
jmp 0x14000772f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140116568]
test al, 4
jne 0x14000774c
test eax, 0xfffffffa
jne 0x140007790
cmp dword [rsi + 8], 2
jl 0x140007790
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 0x140007790
xor r14d, r14d
mov r8d, ebx
sub r8d, r14d
lea rdx, [rdi + r14]
mov ecx, 2
call fcn.1400a9198
test eax, eax
js 0x14000778a
mov eax, eax
add r14, rax
cmp r14, rbx
jb 0x140007768
mov eax, dword [0x140116568]
test al, 1
jne 0x14000790a
cmp dword [rsi + 8], 3
jne 0x1400078e4
lea rcx, [rsp + 0x90]
mov r8d, 0x400
mov dl, 0xaa
call fcn.1400c42d0
cmp byte [rsp + 0x47], 0
jns 0x1400077c5
mov rax, qword [rsp + 0x30]
jmp 0x1400077ca
lea rax, [rsp + 0x30]
xor ecx, ecx
mov dl, byte [rax + rcx]
mov byte [rsp + rcx + 0x90], dl
test dl, dl
je 0x1400077ee
inc rcx
cmp rcx, 0x400
jne 0x1400077cc
mov byte [rsp + 0x48f], 0
lea rcx, [rsp + 0x90]
call fcn.1400562d0
call fcn.1400df9d0
mov rax, qword [0x1401257d8]
cmp rax, qword [0x1401257e0]
je 0x140007a4a
call fcn.1400df9d0
mov rax, qword [0x1401257e0]
test rax, rax
mov rcx, qword [0x1401257d0]
cmove rax, rcx
lea rdx, [rax - 1]
cmp rcx, rdx
jb 0x140007a4d
mov rcx, qword [0x1401257c8]
mov rdi, qword [rcx + rax*8 - 8]
mov qword [rsp + 0x50], rdi
test rdi, rdi
je 0x1400078e4
mov eax, 1
lock xadd dword [rdi], eax
test eax, eax
jle 0x140007b50
cmp eax, 0x7fffffff
je 0x140007b53
cmp byte [rsp + 0x47], 0
js 0x14000787f
lea rbx, [rsp + 0x30]
jmp 0x140007884
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx + r12]
lea r14, [rsp + 0x60]
mov qword [r14], rcx
call fcn.1400ad030
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.1400dfb10
lock dec dword [rdi]
jne 0x1400078e4
mov rax, qword [rdi + 0x10]
mov rcx, rdi
call qword [str.P:_f_]
cmp byte [rsp + 0x47], 0
jns 0x1400078f5
mov rcx, qword [rsp + 0x30]
call fcn.140092084
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400df720
test al, al
je 0x140007798
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 [0x1401257b8]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140007798
mov byte [0x1401257ec], 1
mov eax, dword [0x1401257f8]
mov ecx, dword [0x140122718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400079f7
lea rdi, [rsp + 0x90]
mov rcx, rsi
mov rdx, rdi
call fcn.1400dfa40
cmp byte [rdi + 0x17], 0
jns 0x1400079a5
mov rcx, qword [rsp + 0x90]
call fcn.140092084
mov byte [0x1401257ec], 0
jmp 0x140007712
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.1400dfd10
jmp 0x1400076ee
lea rcx, [0x1401257f8]
call fcn.140092134
cmp dword [0x1401257f8], 0xffffffff
jne 0x14000797f
mov qword [0x1401257f0], 0
lea rcx, [0x1401257f8]
call fcn.1400920c8
jmp 0x14000797f
int3
int3
int3
lock inc dword [rbx + 8]
jmp 0x1400074fc
int3
int3
int3
int3
int3
int3
test al, 8
jne 0x140007a66
lea r14, [rsp + 0x90]
mov byte [r14 + 0x17], 0
jmp 0x14000745c
mov rdi, qword [rsi + 0x28]
mov rbx, qword [rsi + 0x38]
sub rbx, rdi
jns 0x14000743c
int3
test al, 8
jne 0x140007a8d
lea r14, [rsp + 0x30]
mov byte [r14 + 0x17], 0
jmp 0x1400075ce
mov rbx, qword [rsi + 0x28]
mov rdi, qword [rsi + 0x38]
sub rdi, rbx
jns 0x1400075b1
int3
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
test eax, eax
jne 0x140007558
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [str.P:_f_]
jmp 0x140007558
lea rcx, [0x140123fc0]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x1401255d0]
cmp rax, 1
je 0x140007b68
mov rax, qword [0x1401255d0]
test rax, rax
jne 0x140007b56
mov qword [0x1401255d0], 1
lea r14, [0x140123fc0]
mov rbp, qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, r14
call rbp
mov eax, 1
lock xadd dword [0x140124a24], eax
inc eax
mov dword [0x1401255d8], eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov qword [0x1401255d0], 0xffffffffffffffff
mov rcx, r14
call rbp
lea rcx, [0x140123fc8]
call qword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
jmp 0x14000750d
int3
int3
lea rcx, [0x140123fc0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x14000750d
lea rbp, [0x140123fc0]
mov r14, qword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
lea rcx, [0x140123fc8]
mov rdx, rbp
mov r8d, 0xffffffff
xor r9d, r9d
call r14
mov rax, qword [0x1401255d0]
cmp rax, 1
jne 0x140007ae6
jmp 0x140007b76