Function at 0x1400079b0
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 rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rax, [0x1402704e0]
mov qword [rcx], rax
lea r14, [rcx + 0x10]
lea rdi, [rcx + 0x18]
lea rbx, [rsp + 0x90]
mov rcx, rdi
mov rdx, rbx
call fcn.1400ee750
movzx r12d, byte [rbx + 0x17]
test r12b, r12b
jns 0x140007a0f
mov r12, qword [rsp + 0x98]
jns 0x140007a1e
mov rcx, qword [rsp + 0x90]
call fcn.140184dbc
mov rax, qword [r14]
movsxd rax, dword [rax + 4]
mov rax, qword [r14 + rax + 0x30]
lea rbx, [rsp + 0x90]
mov qword [rbx], rax
lock inc dword [rax + 8]
lea rdx, [0x1402b6fe8]
mov rcx, rbx
call fcn.140165a20
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x1402ca008]
mov ebp, eax
mov rcx, qword [rbx]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
je 0x140007c34
mov rcx, r14
mov edx, ebp
call fcn.140008070
mov rcx, r14
call fcn.140007f50
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x10], r13
movaps xmm0, xmmword [0x14026dc70]
movaps xmmword [r14], xmm0
mov rcx, rdi
mov rdx, r14
call fcn.1400ee750
mov r8, qword [rsi + 0x118]
mov qword [rsp + 0x20], rbx
lea r15, [rsp + 0x48]
mov rcx, r15
mov rdx, r14
mov r9, 0xffffffffffffffff
call fcn.140028680
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0x8c], eax
mov qword [rsp + 0x80], rcx
test byte [0x1402aae70], 0x19
jne 0x140007c66
cmp byte [rsp + 0x5f], 0
jns 0x140007b0c
mov rcx, qword [rsp + 0x48]
call fcn.140184dbc
cmp dword [rsi + 8], 3
je 0x140007c93
mov eax, dword [0x1402abf58]
test al, 2
jne 0x140007c46
test al, 4
jne 0x140007be6
cmp eax, 1
ja 0x140007b3b
cmp dword [rsi + 8], 2
jge 0x140007be6
test al, 1
jne 0x140007cef
cmp dword [rsi + 8], 3
je 0x140007d41
cmp byte [rsp + 0x77], 0
jns 0x140007b5e
mov rcx, qword [rsp + 0x60]
call fcn.140184dbc
mov ecx, dword [rsi + 0x130]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [rsi + 0x12c]
call fcn.140184e94
mov dword [rax], ebx
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x14026ff40]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x14026ff60]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x140007ba5
mov rcx, qword [rsi + 0x58]
call fcn.140184dbc
sub rsi, 0xffffffffffffff80
mov rcx, rdi
call fcn.1400ee700
mov rcx, rdi
call fcn.1400ddc50
mov rcx, rsi
call fcn.1400ee610
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1401879f0
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x60]
movzx ecx, byte [rbx + 0x17]
mov r14d, ecx
and r14d, 0x7f
test cl, cl
cmovs r14, qword [rbx + 8]
cmovs rbx, qword [rbx]
test r14, r14
je 0x140007b3b
xor r15d, r15d
mov r8d, r14d
sub r8d, r15d
lea rdx, [rbx + r15]
mov ecx, 2
call fcn.140184ec0
test eax, eax
jns 0x140007df3
mov eax, dword [0x1402abf58]
jmp 0x140007b3b
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1402ca008]
jmp 0x140007a74
cmp byte [rsp + 0x77], 0
jns 0x140007c52
mov r14, qword [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402abf58]
jmp 0x140007b24
lea rax, [rsp + 0x80]
lea rcx, [rsp + 0x90]
mov qword [rcx], rax
lea rax, [rsp + 0x8c]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], r15
call fcn.1401fa7f0
jmp 0x140007afb
cmp byte [0x1402b761c], 0
jne 0x140007b16
mov byte [0x1402b761c], 1
mov eax, dword [0x1402b7628]
mov ecx, dword [0x1402ac5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140007eed
mov rcx, rsi
mov rdx, rbx
call fcn.1401fa420
movzx eax, byte [rsp + 0xa7]
test al, al
js 0x140007e88
and eax, 0x7f
jmp 0x140007e98
call fcn.1401fa080
test al, al
je 0x140007b43
lea r9, [rsp + 0x90]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x60]
movzx eax, byte [rdx + 0x17]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x1402b75e8]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140007b43
lea rbx, [rsp + 0x90]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.140189b30
cmp byte [rsp + 0x77], 0
js 0x140007d67
lea rdx, [rsp + 0x60]
jmp 0x140007d6c
mov rdx, qword [rsp + 0x60]
mov r8d, 0x400
mov rcx, rbx
call fcn.140183980
mov rcx, rbx
call fcn.1400ddc50
call fcn.1401fa340
mov rax, qword [0x1402b7608]
cmp rax, qword [0x1402b7610]
je 0x140007f2f
mov qword [rsp + 0x48], r13
call fcn.1401fa340
mov rdx, qword [0x1402b7610]
test rdx, rdx
mov rax, qword [0x1402b7600]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x140007f32
shl rdx, 3
add rdx, qword [0x1402b75f8]
lea rbx, [rsp + 0x48]
mov rcx, rbx
call fcn.140183ed0
cmp qword [rbx], 0
jne 0x140007e06
lea rcx, [rsp + 0x48]
call fcn.140183f00
jmp 0x140007b4d
mov eax, eax
add r15, rax
cmp r15, r14
jb 0x140007c0d
jmp 0x140007c29
cmp byte [rsp + 0x77], 0
js 0x140007e14
lea rbx, [rsp + 0x60]
jmp 0x140007e19
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
add rcx, r12
mov qword [rsp + 0x38], rcx
je 0x140007f38
call fcn.1401ac4b0
mov qword [rsp + 0x40], rax
mov rax, qword [rsi + 0x118]
add rbx, rax
mov qword [rsp + 0x28], rbx
sub r12, rax
mov qword [rsp + 0x30], r12
js 0x140007f3b
je 0x140007e5c
test rbx, rbx
je 0x140007f41
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x48]
lea r9, [rsp + 0x28]
call fcn.1401fa3b0
jmp 0x140007de4
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rax
test rax, rax
js 0x140007f35
test rbx, rbx
jne 0x140007eb9
test rax, rax
jne 0x140007f3e
mov rcx, qword [0x1402b7620]
lea rdx, [rsp + 0x48]
call fcn.140009920
cmp byte [rsp + 0xa7], 0
jns 0x140007ee1
mov rcx, qword [rsp + 0x90]
call fcn.140184dbc
mov byte [0x1402b761c], 0
jmp 0x140007b16
lea rcx, [0x1402b7628]
call fcn.140184f58
cmp dword [0x1402b7628], 0xffffffff
jne 0x140007ccc
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140008060
mov qword [0x1402b7620], rax
lea rcx, [0x1402b7628]
call fcn.140184fc0
jmp 0x140007ccc
int3
int3
int3
int3
int3
int3
int3