Function at 0x1400ad9f0
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, 0x4a8
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rax, [0x1401e9728]
mov qword [rcx], rax
lea rbx, [rcx + 0x10]
lea rdi, [rcx + 0x18]
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call fcn.140026a84
movzx r12d, byte [rsp + 0xb7]
test r12b, r12b
jns 0x1400ada5d
mov rcx, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
call fcn.14019d34c
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 4]
add rcx, rbx
lea r14, [rsp + 0xa0]
mov rdx, r14
call fcn.140054806
lea rdx, [0x140233768]
mov rcx, r14
call fcn.140069e9c
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x140251008]
mov ebp, eax
mov rcx, r14
call fcn.1400568aa
mov rcx, rbx
mov edx, ebp
call fcn.140026384
mov rcx, rbx
call fcn.140025080
movabs r13, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], r13
movaps xmm0, xmmword [0x1401e7440]
movaps xmmword [rsp + 0x60], xmm0
lea rbx, [rsp + 0x60]
mov rcx, rdi
mov rdx, rbx
call fcn.140026a84
movzx ecx, byte [rsp + 0x77]
mov rax, rcx
test cl, cl
jns 0x1400adaf4
mov rax, qword [rsp + 0x68]
mov rdx, qword [rsi + 0x118]
cmp rax, rdx
jb 0x1400ae0ea
test cl, cl
mov rcx, qword [rsp + 0x60]
cmovns rcx, rbx
add rcx, rdx
mov qword [rsp + 0x50], rcx
sub rax, rdx
mov qword [rsp + 0x58], rax
js 0x1400ae0ed
lea r15, [rsp + 0x88]
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.140033fc8
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0x84], eax
mov qword [rsp + 0x78], rcx
test byte [0x140221750], 0x19
jne 0x1400adb71
cmp byte [rsp + 0x9f], 0
js 0x1400adbb4
cmp dword [rsi + 8], 3
je 0x1400adbcb
jmp 0x1400adceb
lea rax, [rsp + 0x78]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x84]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], r15
lea rcx, str.LogMessage
lea rdx, [rsp + 0xa0]
call fcn.1400ae680
cmp byte [rsp + 0x9f], 0
jns 0x1400adb66
mov rcx, qword [rsp + 0x88]
call fcn.14019d34c
cmp dword [rsi + 8], 3
jne 0x1400adceb
cmp byte [0x140234b14], 0
jne 0x1400adceb
mov byte [0x140234b14], 1
mov eax, dword [0x140234b20]
mov ecx, dword [0x14022f5ac]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ae0a8
mov rcx, rdi
mov rdx, r14
call fcn.140026a84
cmp byte [rsp + 0xb7], 0
jns 0x1400adc21
mov r14, qword [rsp + 0xa0]
add r14, qword [rsi + 0x118]
mov ebp, dword [rsi + 0x128]
mov r15, qword [rsi + 0x120]
test r15, r15
je 0x1400adc54
mov rcx, r15
mov edx, 0x5c
call fcn.1401a10c8
lea r8, [rax + 1]
test rax, rax
cmove r8, r15
jmp 0x1400adc57
xor r8d, r8d
mov qword [rsp + 0x20], r14
lea rdx, str._s:_d:__s
lea r14, [rsp + 0x88]
mov rcx, r14
mov r9d, ebp
call fcn.14009f5e0
cmp byte [rsp + 0xb7], 0
jns 0x1400adc8d
mov rcx, qword [rsp + 0xa0]
call fcn.14019d34c
movzx eax, byte [rsp + 0x9f]
test al, al
cmovs r14, qword [rsp + 0x88]
cmovs rax, qword [rsp + 0x90]
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0xa8], rax
mov rcx, qword [0x140234b18]
lea rdx, [rsp + 0xa0]
call fcn.1400ecbe0
cmp byte [rsp + 0x9f], 0
jns 0x1400adce4
mov rcx, qword [rsp + 0x88]
call fcn.14019d34c
mov byte [0x140234b14], 0
mov rax, qword [0x140234ac8]
test rax, rax
je 0x1400add22
mov r9, qword [rsi + 0x118]
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov ecx, dword [rsi + 8]
mov qword [rsp + 0x20], rbx
call qword [0x140251008]
test al, al
jne 0x1400adfa6
mov eax, dword [0x140222878]
test al, 2
je 0x1400add47
cmp byte [rsp + 0x77], 0
jns 0x1400add38
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140222878]
test al, 4
jne 0x1400add56
cmp eax, 1
ja 0x1400adda8
cmp dword [rsi + 8], 2
jl 0x1400adda8
movzx ebx, byte [rsp + 0x77]
test bl, bl
cmovs rbx, qword [rsp + 0x68]
lea r14, [rsp + 0x60]
cmovs r14, qword [rsp + 0x60]
test rbx, rbx
je 0x1400adda8
xor r15d, r15d
nop word cs:[rax + rax]
mov r8d, ebx
sub r8d, r15d
lea rdx, [r14 + r15]
mov ecx, 2
call fcn.1401bbda8
test eax, eax
js 0x1400adda2
mov eax, eax
add r15, rax
cmp r15, rbx
jb 0x1400add80
mov eax, dword [0x140222878]
test al, 1
je 0x1400addf8
call fcn.1400ad0f0
test al, al
je 0x1400addf8
mov dword [rsp + 0xa0], 0xaaaaaaaa
movzx r8d, byte [rsp + 0x77]
test r8b, r8b
cmovs r8d, dword [rsp + 0x68]
lea rdx, [rsp + 0x60]
cmovs rdx, qword [rsp + 0x60]
mov rcx, qword [0x140234ae0]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
jne 0x1400adfa6
lea rbx, [rsp + 0xa0]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.1401a0cc0
cmp byte [rsp + 0x77], 0
jns 0x1400ade28
mov rdx, qword [rsp + 0x60]
jmp 0x1400ade2d
lea rdx, [rsp + 0x60]
mov r8d, 0x400
mov rcx, rbx
call fcn.1400a1280
mov rcx, rbx
call fcn.140024db0
mov eax, dword [0x140234b10]
mov ecx, dword [0x14022f5ac]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ae032
mov rax, qword [0x140234b00]
cmp rax, qword [0x140234b08]
je 0x1400ae0f0
mov qword [rsp + 0x88], r13
mov eax, dword [0x140234b10]
mov ecx, dword [0x14022f5ac]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ae06d
mov rdx, qword [0x140234b08]
test rdx, rdx
mov rax, qword [0x140234af8]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x1400ae0f3
shl rdx, 3
add rdx, qword [0x140234af0]
lea rcx, [rsp + 0x88]
call fcn.1400afde0
mov rbx, qword [rsp + 0x88]
test rbx, rbx
je 0x1400adf99
cmp byte [rsp + 0x77], 0
jns 0x1400adf01
mov r14, qword [rsp + 0x60]
jmp 0x1400adf06
lea r14, [rsp + 0x60]
mov rcx, r14
add rcx, r12
mov qword [rsp + 0x40], rcx
je 0x1400ae0f6
call fcn.1401c2af0
mov qword [rsp + 0x48], rax
mov rax, qword [rsi + 0x118]
add r14, rax
mov qword [rsp + 0x30], r14
sub r12, rax
mov qword [rsp + 0x38], r12
js 0x1400ae0f9
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov eax, 1
lock xadd dword [rbx], eax
test eax, eax
jle 0x1400ae0fc
cmp eax, 0x7fffffff
je 0x1400ae0ff
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
mov rcx, rbx
call qword [0x140251008]
lock dec dword [rbx]
jne 0x1400adf99
mov rcx, rbx
call fcn.1400afd30
lea rcx, [rsp + 0x88]
call fcn.1400afe10
cmp byte [rsp + 0x77], 0
jns 0x1400adfb7
mov rcx, qword [rsp + 0x60]
call fcn.14019d34c
lea rcx, [rsi + 0x12c]
call fcn.1400fcc20
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1401e90b0]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x1401e90c0]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x1400adff1
mov rcx, qword [rsi + 0x58]
call fcn.14019d34c
sub rsi, 0xffffffffffffff80
mov rcx, rdi
call fcn.140024d4e
mov rcx, rdi
call fcn.140024db0
mov rcx, rsi
call fcn.140024d48
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.14019eb90
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140234b10]
call fcn.14019d470
cmp dword [0x140234b10], 0xffffffff
jne 0x1400ade68
xorps xmm0, xmm0
movups xmmword [0x140234b00], xmm0
movups xmmword [0x140234af0], xmm0
lea rcx, [0x140234b10]
call fcn.14019d508
jmp 0x1400ade68
lea rcx, [0x140234b10]
call fcn.14019d470
cmp dword [0x140234b10], 0xffffffff
jne 0x1400adea9
xorps xmm0, xmm0
movups xmmword [0x140234b00], xmm0
movups xmmword [0x140234af0], xmm0
lea rcx, [0x140234b10]
call fcn.14019d508
jmp 0x1400adea9
lea rcx, [0x140234b20]
call fcn.14019d470
cmp dword [0x140234b20], 0xffffffff
jne 0x1400adc04
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.1400ecbc0
mov qword [0x140234b18], rax
lea rcx, [0x140234b20]
call fcn.14019d508
jmp 0x1400adc04
int3
int3
int3
int3
int3
int3
int3
int3