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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x488
mov rsi, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x480], rax
lea rax, [0x1401e7108]
mov qword [rcx], rax
lea r15, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
movsxd rcx, dword [rax + 4]
test byte [rsi + rcx + 0x30], 5
jne 0x14004a7f5
mov rcx, qword [r15 + rcx + 0x28]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 0x10
lea rbx, [rsp + 0x80]
mov rdx, rbx
xor r8d, r8d
mov r9d, 1
call qword [rax + 0x18]
mov r12, qword [rbx + 8]
mov rax, qword [r15]
movsxd rcx, dword [rax + 4]
add rcx, r15
lea rdi, [rsp + 0x80]
mov rdx, rdi
call fcn.1400e2d10
lea rdx, [0x140220ec0]
mov rcx, rdi
call fcn.1400e34e0
mov rbx, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [rbx + 0x38]
mov ebx, eax
mov rcx, rdi
call fcn.1400e2e20
mov rcx, r15
mov edx, ebx
call fcn.14001af50
mov rcx, r15
call fcn.140019cd0
lea r14, [rsi + 0x18]
movabs rdi, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x10], rdi
movaps xmm0, xmmword [0x1401e90c0]
movaps xmmword [rbx], xmm0
mov rcx, r14
mov rdx, rbx
call fcn.14001b1a0
test byte [0x14021dca0], 0x19
jne 0x14004a801
mov rax, qword [0x140221ca0]
test rax, rax
je 0x14004a6e9
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 rax
test al, al
jne 0x14004a720
mov eax, dword [0x14021d288]
test al, 2
jne 0x14004a821
test al, 4
jne 0x14004a7ac
cmp dword [rsi + 8], 2
jl 0x14004a70e
cmp eax, 1
jbe 0x14004a7ac
test al, 1
jne 0x14004a841
cmp dword [rsi + 8], 3
je 0x14004a88e
cmp byte [rsp + 0x77], 0
jns 0x14004a731
mov rcx, qword [rsp + 0x60]
call fcn.1401109f8
lea rcx, [rsi + 0x12c]
call fcn.1400f4c00
lea rbx, [rsi + 0x80]
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1401e6600]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x1401e6610]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x14004a772
mov rcx, qword [r15 + 0x48]
call fcn.1401109f8
mov rcx, r14
call fcn.1400dc820
mov rcx, r14
call fcn.140019a90
mov rcx, rbx
call fcn.1400dc810
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140111870
nop
add rsp, 0x488
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 2
call fcn.1401150e8
lea rcx, [rsp + 0x60]
movzx edx, byte [rcx + 0x17]
test dl, dl
cmovs rdx, qword [rcx + 8]
cmovs rcx, qword [rcx]
mov r8d, 1
mov r9, rax
call fcn.14012a080
mov ecx, 2
call fcn.1401150e8
mov rcx, rax
call fcn.1401292f8
mov eax, dword [0x14021d288]
jmp 0x14004a70e
mov r12, 0xffffffffffffffff
jmp 0x14004a634
lea rdx, [rsp + 0x80]
mov qword [rdx], rsi
mov qword [rdx + 8], rbx
lea rcx, str.LogMessage
call fcn.14015f040
jmp 0x14004a6ba
cmp byte [rsp + 0x77], 0
jns 0x14004a82d
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14021d288]
jmp 0x14004a6f7
call fcn.14015ecb0
test al, al
je 0x14004a716
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 [0x140221cb8]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14004a716
mov rcx, qword [0x1402240d0]
test rcx, rcx
je 0x14004a8c3
lea r8, [rsp + 0x60]
movzx ebx, byte [r8 + 0x17]
test bl, bl
mov rax, qword [r8]
cmovns rax, r8
lea rdx, [rsp + 0x50]
mov qword [rdx], rax
cmovs rbx, qword [r8 + 8]
mov qword [rdx + 8], rbx
call fcn.1401795a0
lea rbx, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.140114200
cmp byte [rsp + 0x77], 0
jns 0x14004a8e9
mov rdx, qword [rsp + 0x60]
jmp 0x14004a8ee
lea rdx, [rsp + 0x60]
mov r8d, 0x400
mov rcx, rbx
call fcn.1400ec740
mov rcx, rbx
call fcn.1400df050
call fcn.14015efd0
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 0x18]
je 0x14004a9c7
mov qword [rsp + 0x48], rdi
call fcn.14015efd0
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x18]
test rdx, rdx
cmove rdx, rcx
dec rdx
cmp rcx, rdx
jb 0x14004a9ca
shl rdx, 3
add rdx, qword [rax]
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.1400e5610
mov rbx, qword [rdi]
test rbx, rbx
je 0x14004a9b8
cmp byte [rsp + 0x77], 0
jns 0x14004a966
mov rdi, qword [rsp + 0x60]
jmp 0x14004a96b
lea rdi, [rsp + 0x60]
mov rcx, rdi
add rcx, r12
mov qword [rsp + 0x38], rcx
je 0x14004a9cd
call fcn.14012c0f0
lea rcx, [rsp + 0x38]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x118]
sub r12, rax
add rdi, rax
lea r9, [rsp + 0x28]
mov qword [r9], rdi
mov qword [r9 + 8], r12
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x48]
call fcn.1400e55f0
jmp 0x14004a720
int3
int3
mov qword [rsp + 0x40], 0
int3