Function at 0x140076510
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 r12, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rax, [0x14032bba0]
mov qword [rcx], rax
lea rsi, [rcx + 0x10]
lea r14, [rcx + 0x18]
lea rdi, [rsp + 0x90]
mov rcx, r14
mov rdx, rdi
call fcn.14003afb0
movzx eax, byte [rdi + 0x17]
mov r13d, eax
and r13d, 0x7f
test al, al
jns 0x140076574
mov r13, qword [rsp + 0x98]
jns 0x140076583
mov rcx, qword [rsp + 0x90]
call fcn.1401b9ce8
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
lea r15, [rsp + 0x90]
mov rdx, r15
call fcn.14015b5c0
lea rdx, [0x1403b3ae0]
mov rcx, r15
call fcn.14015b850
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, rdi
call qword [0x1403de008]
mov ebx, eax
mov rcx, r15
call fcn.14015b6d0
mov rcx, rsi
mov edx, ebx
call fcn.14003ad10
mov rcx, rsi
call fcn.140039a00
movabs rbp, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x10], rbp
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rbx], xmm0
mov rcx, r14
mov rdx, rbx
call fcn.14003afb0
test byte [0x1403a27e0], 0x19
jne 0x140076774
cmp dword [r12 + 8], 3
je 0x140076794
mov rax, qword [0x1403b48f8]
test rax, rax
je 0x140076656
mov r9, qword [r12 + 0x118]
mov r8d, dword [r12 + 0x128]
mov rdx, qword [r12 + 0x120]
mov ecx, dword [r12 + 8]
mov qword [rsp + 0x20], rbx
call qword [0x1403de008]
test al, al
jne 0x140076691
mov eax, dword [0x1403a2248]
test al, 2
jne 0x140076837
test al, 4
jne 0x140076723
cmp dword [r12 + 8], 2
jl 0x14007667d
cmp eax, 1
jbe 0x140076723
test al, 1
jne 0x140076857
cmp dword [r12 + 8], 3
je 0x1400768a9
cmp byte [rsp + 0x77], 0
jns 0x1400766a2
mov rcx, qword [rsp + 0x60]
call fcn.1401b9ce8
lea rcx, [r12 + 0x12c]
call fcn.14017db60
mov rax, qword [r12 + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x14032b2f0]
mov qword [r12 + rax + 0x10], rcx
lea rax, [0x14032b300]
mov qword [r12 + 0x18], rax
cmp byte [r12 + 0x6f], 0
jns 0x1400766e2
mov rcx, qword [r12 + 0x58]
call fcn.1401b9ce8
sub r12, 0xffffffffffffff80
mov rcx, r14
call fcn.140155420
mov rcx, r14
call fcn.140155a00
mov rcx, r12
call fcn.140155410
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1401bb0d0
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdi, [rsp + 0x60]
movzx ecx, byte [rdi + 0x17]
mov ebx, ecx
and ebx, 0x7f
test cl, cl
cmovs rbx, qword [rdi + 8]
cmovs rdi, qword [rdi]
test rbx, rbx
je 0x14007667d
xor esi, esi
mov r8d, ebx
sub r8d, esi
lea rdx, [rdi + rsi]
mov ecx, 2
call fcn.1401d7e2c
test eax, eax
js 0x140076769
mov eax, eax
add rsi, rax
cmp rbx, rsi
ja 0x140076747
mov eax, dword [0x1403a2248]
jmp 0x14007667d
lea rdx, [rsp + 0x90]
mov qword [rdx], r12
mov qword [rdx + 8], rbx
lea rcx, str.LogMessage
call fcn.140224210
jmp 0x140076612
cmp byte [0x1403b4944], 0
jne 0x14007661e
mov byte [0x1403b4944], 1
mov eax, dword [0x1403b4950]
mov ecx, dword [0x1403b1c84]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400769fd
mov rcx, r12
mov rdx, r15
call fcn.1402243f0
movzx eax, byte [rsp + 0xa7]
mov ecx, eax
and ecx, 0x7f
test al, al
cmovs r15, qword [rsp + 0x90]
cmovs rcx, qword [rsp + 0x98]
lea rdx, [rsp + 0x80]
mov qword [rdx], r15
mov qword [rdx + 8], rcx
mov rcx, qword [0x1403b4948]
call fcn.14017df60
cmp byte [rsp + 0xa7], 0
jns 0x14007682b
mov rcx, qword [rsp + 0x90]
call fcn.1401b9ce8
mov byte [0x1403b4944], 0
jmp 0x14007661e
cmp byte [rsp + 0x77], 0
jns 0x140076843
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1403a2248]
jmp 0x140076664
call fcn.140223f00
test al, al
je 0x140076685
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 [0x1403b4910]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140076685
mov rcx, qword [0x1403baa40]
test rcx, rcx
je 0x1400768e2
lea rax, [rsp + 0x60]
movzx edx, byte [rax + 0x17]
mov ebx, edx
and ebx, 0x7f
test dl, dl
mov rdi, qword [rax]
cmovns rdi, rax
lea rdx, [rsp + 0x50]
mov qword [rdx], rdi
cmovs rbx, qword [rax + 8]
mov qword [rdx + 8], rbx
call fcn.14028d430
lea rdi, [rsp + 0x90]
mov r8d, 0x400
mov rcx, rdi
mov dl, 0xaa
call fcn.1401bd200
cmp byte [rsp + 0x77], 0
jns 0x140076908
mov rdx, qword [rsp + 0x60]
jmp 0x14007690d
lea rdx, [rsp + 0x60]
mov r8d, 0x400
mov rcx, rdi
call fcn.140169040
mov rcx, rdi
call fcn.140155a00
call fcn.1402241a0
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 0x18]
je 0x140076a3f
mov qword [rsp + 0x80], rbp
call fcn.1402241a0
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x18]
test rdx, rdx
cmove rdx, rcx
dec rdx
cmp rcx, rdx
jb 0x140076a42
shl rdx, 3
add rdx, qword [rax]
lea rsi, [rsp + 0x80]
mov rcx, rsi
call fcn.14015d780
mov rdi, qword [rsi]
test rdi, rdi
je 0x1400769eb
cmp byte [rsp + 0x77], 0
jns 0x14007698b
mov rsi, qword [rsp + 0x60]
jmp 0x140076990
lea rsi, [rsp + 0x60]
mov rcx, rsi
add rcx, r13
mov qword [rsp + 0x40], rcx
je 0x140076a45
call fcn.1401e25c0
lea rcx, [rsp + 0x40]
mov qword [rcx + 8], rax
mov rax, qword [r12 + 0x118]
sub r13, rax
add rsi, rax
lea r9, [rsp + 0x30]
mov qword [r9], rsi
mov qword [r9 + 8], r13
mov r8d, dword [r12 + 0x128]
mov rdx, qword [r12 + 0x120]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [0x1403de008]
lea rcx, [rsp + 0x80]
call fcn.14015d760
jmp 0x140076691
lea rcx, [0x1403b4950]
call fcn.1401b9e00
cmp dword [0x1403b4950], 0xffffffff
jne 0x1400767cd
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.1400cf900
mov qword [0x1403b4948], rax
lea rcx, [0x1403b4950]
call fcn.1401b9e98
jmp 0x1400767cd
int3
int3
int3