Function at 0x140042750
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, 0x488
mov r12, rcx
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x480], rax
lea rax, [0x1400febe8]
mov qword [rcx], rax
lea r15, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
movsxd rcx, dword [rax + 4]
test byte [r12 + rcx + 0x30], 5
jne 0x1400429b4
mov rcx, qword [r15 + rcx + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov dword [rsp + 0x20], 0x10
lea rbx, [rsp + 0x80]
mov rdx, rbx
xor r8d, r8d
mov r9d, 1
call qword [0x140135008]
mov r13, qword [rbx + 8]
mov rax, qword [r15]
movsxd rcx, dword [rax + 4]
add rcx, r15
lea rsi, [rsp + 0x80]
mov rdx, rsi
call fcn.1400674f0
lea rdx, [0x140125d98]
mov rcx, rsi
call fcn.140067d00
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, rdi
call qword [0x140135008]
mov ebx, eax
mov rcx, rsi
call fcn.140067600
mov rcx, r15
mov edx, ebx
call fcn.14001aa00
mov rcx, r15
call fcn.140019db0
lea r14, [r12 + 0x18]
movabs rsi, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x10], rsi
movaps xmm0, xmmword [0x1400ffac0]
movaps xmmword [rbx], xmm0
mov rcx, r14
mov rdx, rbx
call fcn.14001aca0
test byte [0x1401218e0], 0x19
jne 0x1400429c0
mov rax, qword [0x140127538]
test rax, rax
je 0x140042898
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 [0x140135008]
test al, al
jne 0x1400428d3
mov eax, dword [0x1401213c0]
test al, 2
jne 0x1400429e0
test al, 4
jne 0x140042968
cmp dword [r12 + 8], 2
jl 0x1400428bf
cmp eax, 1
jbe 0x140042968
test al, 1
jne 0x140042a00
cmp dword [r12 + 8], 3
je 0x140042a4d
cmp byte [rsp + 0x77], 0
jns 0x1400428e4
mov rcx, qword [rsp + 0x60]
call fcn.1400897f8
lea rcx, [r12 + 0x12c]
call fcn.14007c6f0
lea rbx, [r12 + 0x80]
mov rax, qword [r12 + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1400fe860]
mov qword [r12 + rax + 0x10], rcx
lea rax, [0x1400fea90]
mov qword [r12 + 0x18], rax
cmp byte [r12 + 0x6f], 0
jns 0x14004292b
mov rcx, qword [r15 + 0x48]
call fcn.1400897f8
mov rcx, r14
call fcn.14005d760
mov rcx, r14
call fcn.14005da50
mov rcx, rbx
call fcn.14005d750
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14008ab00
nop
add rsp, 0x488
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdi, [rsp + 0x60]
movzx ebx, byte [rdi + 0x17]
test bl, bl
cmovs rbx, qword [rdi + 8]
cmovs rdi, qword [rdi]
test rbx, rbx
je 0x1400428bf
xor ebp, ebp
mov r8d, ebx
sub r8d, ebp
lea rdx, [rdi + rbp]
mov ecx, 2
call fcn.1400a48bc
test eax, eax
js 0x1400429a9
mov eax, eax
add rbp, rax
cmp rbx, rbp
ja 0x140042987
mov eax, dword [0x1401213c0]
jmp 0x1400428bf
mov r13, 0xffffffffffffffff
jmp 0x1400427cf
lea rdx, [rsp + 0x80]
mov qword [rdx], r12
mov qword [rdx + 8], rbx
lea rcx, str.LogMessage
call fcn.1400dcd00
jmp 0x140042860
cmp byte [rsp + 0x77], 0
jns 0x1400429ec
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1401213c0]
jmp 0x1400428a6
call fcn.1400dca10
test al, al
je 0x1400428c7
lea r9, [rsp + 0x80]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x60]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x140127550]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400428c7
mov rcx, qword [0x140127620]
test rcx, rcx
je 0x140042a82
lea rax, [rsp + 0x60]
movzx ebp, byte [rax + 0x17]
test bpl, bpl
mov rbx, qword [rax]
cmovns rbx, rax
lea rdx, [rsp + 0x50]
mov qword [rdx], rbx
cmovs rbp, qword [rax + 8]
mov qword [rdx + 8], rbp
call fcn.1400df750
lea rbx, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.14008cc30
cmp byte [rsp + 0x77], 0
jns 0x140042aa8
mov rdx, qword [rsp + 0x60]
jmp 0x140042aad
lea rdx, [rsp + 0x60]
mov r8d, 0x400
mov rcx, rbx
call fcn.14006fd90
mov rcx, rbx
call fcn.14005da50
call fcn.1400dcc90
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 0x18]
je 0x140042b90
mov qword [rsp + 0x48], rsi
call fcn.1400dcc90
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x18]
test rdx, rdx
cmove rdx, rcx
dec rdx
cmp rcx, rdx
jb 0x140042b93
shl rdx, 3
add rdx, qword [rax]
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.14006f230
mov rbx, qword [rsi]
test rbx, rbx
je 0x140042b81
cmp byte [rsp + 0x77], 0
jns 0x140042b25
mov rsi, qword [rsp + 0x60]
jmp 0x140042b2a
lea rsi, [rsp + 0x60]
mov rcx, rsi
add rcx, r13
mov qword [rsp + 0x38], rcx
je 0x140042b96
call fcn.1400a86e0
lea rcx, [rsp + 0x38]
mov qword [rcx + 8], rax
mov rax, qword [r12 + 0x118]
sub r13, rax
add rsi, rax
lea r9, [rsp + 0x28]
mov qword [r9], rsi
mov qword [r9 + 8], r13
mov r8d, dword [r12 + 0x128]
mov rdx, qword [r12 + 0x120]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [0x140135008]
lea rcx, [rsp + 0x48]
call fcn.14006f210
jmp 0x1400428d3
int3
int3
int3