Function at 0x140017450
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [0x140125058]
xor rax, rbp
mov qword [rbp + 0x410], rax
lea rdi, [rcx + 8]
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.140017940
mov r14, qword [rbp - 0x10]
add r14, qword [rbp - 0x18]
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
mov rax, qword [rsi + rax + 0x48]
mov rcx, qword [rax + 8]
mov qword [rbp - 0x10], rcx
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rbp - 0x18]
call fcn.140016470
mov rbx, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [rbx + 0x40]
mov ebx, eax
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400174e6
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400174e6
mov r8, qword [rax]
mov rcx, rax
mov edx, 1
call qword [r8]
mov rcx, rdi
mov edx, ebx
call fcn.1400190f0
mov rcx, rdi
call fcn.1400013a0
lea r15, [rsi + 0x10]
lea rbx, [rbp + 0x3f0]
mov rcx, r15
mov rdx, rbx
call fcn.140018ef0
mov rax, qword [0x140128a68]
test rax, rax
je 0x140017540
mov r9, qword [rsi + 0xf0]
mov r8d, dword [rsi + 0x100]
mov rdx, qword [rsi + 0xf8]
mov ecx, dword [rsi]
mov qword [rsp + 0x20], rbx
call rax
test al, al
jne 0x140017826
test byte [section..data], 2
jne 0x140017576
cmp dword [rsi], 2
jl 0x1400175e4
mov ecx, 2
call fcn.1400cba30
mov rdx, qword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x1400175bd
mov rcx, qword [rbp + 0x3f0]
jmp 0x1400175c4
cmp qword [rbp + 0x408], 0xf
mov rcx, rbx
jbe 0x14001758a
mov rcx, qword [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 2
call fcn.1400cba30
mov rdx, qword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x1400175b2
mov rbx, qword [rbp + 0x3f0]
mov r8d, 1
mov rcx, rbx
jmp 0x1400175ca
lea rcx, [rbp + 0x3f0]
mov r8d, 1
mov r9, rax
call fcn.1400d9d30
mov ecx, 2
call fcn.1400cba30
mov rcx, rax
call fcn.1400d9250
test byte [section..data], 1
je 0x140017631
call fcn.140016af0
test al, al
je 0x140017631
mov r8d, dword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x140017610
mov rdx, qword [rbp + 0x3f0]
jmp 0x140017617
lea rdx, [rbp + 0x3f0]
mov rcx, qword [0x140128aa8]
mov qword [rsp + 0x20], 0
lea r9, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi], 3
jne 0x140017826
mov rcx, qword [0x140128e48]
test rcx, rcx
je 0x140017678
mov rax, qword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x140017660
mov rdx, qword [rbp + 0x3f0]
jmp 0x140017667
lea rdx, [rbp + 0x3f0]
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x28]
call fcn.14002b0a0
mov dword [rbp - 0x18], 0xbedead01
mov dword [rbp + 0x3ec], 0x5050dead
cmp qword [rbp + 0x408], 0xf
jbe 0x14001769c
mov rdx, qword [rbp + 0x3f0]
jmp 0x1400176a3
lea rdx, [rbp + 0x3f0]
lea rcx, [rbp - 0x14]
mov r8d, 0x400
call fcn.140023890
lea rcx, [rbp - 0x18]
call fcn.140004c50
mov rax, qword [0x140128a80]
test rax, rax
je 0x140017926
mov rbx, qword [0x140128a80]
cmp rbx, 1
ja 0x14001771e
lea rcx, [0x140128a80]
call fcn.140029140
test al, al
je 0x140017717
xorps xmm0, xmm0
movups xmmword [0x140128a98], xmm0
movups xmmword [0x140128a88], xmm0
lea rbx, [0x140128a88]
lea rcx, [0x140128a80]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.1400291f0
jmp 0x14001771e
mov rbx, qword [0x140128a80]
mov rax, qword [rbx + 0x10]
cmp rax, qword [rbx + 0x18]
je 0x140017926
mov rbx, qword [0x140128a80]
cmp rbx, 1
ja 0x14001777f
lea rcx, [0x140128a80]
call fcn.140029140
test al, al
je 0x140017778
xorps xmm0, xmm0
movups xmmword [0x140128a98], xmm0
movups xmmword [0x140128a88], xmm0
lea rbx, [0x140128a88]
lea rcx, [0x140128a80]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.1400291f0
jmp 0x14001777f
mov rbx, qword [0x140128a80]
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x18]
test rdx, rdx
cmove rdx, rax
add rdx, 0xffffffffffffffff
cmp rax, rdx
jb 0x14001792d
shl rdx, 3
add rdx, qword [rbx]
lea rcx, [rbp - 0x30]
call fcn.14000cdf0
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x14001781d
cmp qword [rbp + 0x408], 0xf
jbe 0x1400177c7
mov rdi, qword [rbp + 0x3f0]
jmp 0x1400177ce
lea rdi, [rbp + 0x3f0]
mov rcx, rdi
add rcx, r14
mov qword [rbp - 0x40], rcx
je 0x1400177e1
call fcn.1400dde20
jmp 0x1400177e3
xor eax, eax
mov qword [rbp - 0x38], rax
mov rax, qword [rsi + 0xf0]
sub r14, rax
add rdi, rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], r14
mov r8d, dword [rsi + 0x100]
mov rdx, qword [rsi + 0xf8]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
mov rcx, rbx
call qword [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.14000cdd0
mov rax, qword [rbp + 0x408]
cmp rax, 0x10
jb 0x14001786b
mov rcx, qword [rbp + 0x3f0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140017866
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140017934
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.1400a68b0
lea rcx, [rsi + 0x104]
call fcn.140029250
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
lea rcx, [0x1400f37f0]
mov qword [rsi + rax + 8], rcx
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0x88]
mov dword [rsi + rax + 4], ecx
lea rax, [0x1400f3800]
mov qword [rsi + 0x10], rax
mov rcx, r15
call fcn.1400186f0
lea rax, [0x1400f3880]
mov qword [rsi + 0x10], rax
mov rdi, qword [rsi + 0x70]
lea rsi, [rsi + 0x90]
test rdi, rdi
je 0x1400178f4
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400178ec
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400178ec
mov rbx, qword [rax]
mov rcx, rax
mov edx, 1
call qword [rbx]
mov rcx, rdi
call fcn.1400a68a0
lea rax, [0x1400f38f8]
mov qword [rsi], rax
mov rcx, rsi
call fcn.1400a88f0
mov rcx, qword [rbp + 0x410]
xor rcx, rbp
call fcn.1400a6c00
nop
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
int3
int3
call fcn.1400d7230
ud2