Function at 0x14003c960
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 [0x1401e3a68]
xor rax, rbp
mov qword [rbp + 0x410], rax
lea rdi, [rcx + 8]
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.14003ce50
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 + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x18]
call fcn.140037970
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 0x14003c9f6
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14003c9f6
mov r8, qword [rax]
mov rcx, rax
mov edx, 1
call qword [r8]
mov rcx, rdi
mov edx, ebx
call fcn.14003d610
mov rcx, rdi
call fcn.140006c00
lea r15, [rsi + 0x10]
lea rbx, [rbp + 0x3f0]
mov rcx, r15
mov rdx, rbx
call fcn.140015320
mov rax, qword [0x1401e67d8]
test rax, rax
je 0x14003ca50
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 0x14003cd36
test byte [0x1401e2280], 2
jne 0x14003ca86
cmp dword [rsi], 2
jl 0x14003caf4
mov ecx, 2
call fcn.14016ff30
mov rdx, qword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x14003cacd
mov rcx, qword [rbp + 0x3f0]
jmp 0x14003cad4
cmp qword [rbp + 0x408], 0xf
mov rcx, rbx
jbe 0x14003ca9a
mov rcx, qword [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 2
call fcn.14016ff30
mov rdx, qword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x14003cac2
mov rbx, qword [rbp + 0x3f0]
mov r8d, 1
mov rcx, rbx
jmp 0x14003cada
lea rcx, [rbp + 0x3f0]
mov r8d, 1
mov r9, rax
call fcn.14017f9d0
mov ecx, 2
call fcn.14016ff30
mov rcx, rax
call fcn.14017e730
test byte [0x1401e2280], 1
je 0x14003cb41
call fcn.14003bfd0
test al, al
je 0x14003cb41
mov r8d, dword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x14003cb20
mov rdx, qword [rbp + 0x3f0]
jmp 0x14003cb27
lea rdx, [rbp + 0x3f0]
mov rcx, qword [0x1401e6818]
mov qword [rsp + 0x20], 0
lea r9, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi], 3
jne 0x14003cd36
mov rcx, qword [0x1401e9358]
test rcx, rcx
je 0x14003cb88
mov rax, qword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x14003cb70
mov rdx, qword [rbp + 0x3f0]
jmp 0x14003cb77
lea rdx, [rbp + 0x3f0]
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x28]
call fcn.14008dfc0
mov dword [rbp - 0x18], 0xbedead01
mov dword [rbp + 0x3ec], 0x5050dead
cmp qword [rbp + 0x408], 0xf
jbe 0x14003cbac
mov rdx, qword [rbp + 0x3f0]
jmp 0x14003cbb3
lea rdx, [rbp + 0x3f0]
lea rcx, [rbp - 0x14]
mov r8d, 0x400
call fcn.14004c550
lea rcx, [rbp - 0x18]
call fcn.1400120e0
mov rax, qword [0x1401e67f0]
test rax, rax
je 0x14003ce36
mov rbx, qword [0x1401e67f0]
cmp rbx, 1
ja 0x14003cc2e
lea rcx, [0x1401e67f0]
call fcn.14003bc10
test al, al
je 0x14003cc27
xorps xmm0, xmm0
movups xmmword [0x1401e6808], xmm0
movups xmmword [0x1401e67f8], xmm0
lea rbx, [0x1401e67f8]
lea rcx, [0x1401e67f0]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.14003bcc0
jmp 0x14003cc2e
mov rbx, qword [0x1401e67f0]
mov rax, qword [rbx + 0x10]
cmp rax, qword [rbx + 0x18]
je 0x14003ce36
mov rbx, qword [0x1401e67f0]
cmp rbx, 1
ja 0x14003cc8f
lea rcx, [0x1401e67f0]
call fcn.14003bc10
test al, al
je 0x14003cc88
xorps xmm0, xmm0
movups xmmword [0x1401e6808], xmm0
movups xmmword [0x1401e67f8], xmm0
lea rbx, [0x1401e67f8]
lea rcx, [0x1401e67f0]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.14003bcc0
jmp 0x14003cc8f
mov rbx, qword [0x1401e67f0]
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x18]
test rdx, rdx
cmove rdx, rax
add rdx, 0xffffffffffffffff
cmp rax, rdx
jb 0x14003ce3d
shl rdx, 3
add rdx, qword [rbx]
lea rcx, [rbp - 0x30]
call fcn.14002b410
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x14003cd2d
cmp qword [rbp + 0x408], 0xf
jbe 0x14003ccd7
mov rdi, qword [rbp + 0x3f0]
jmp 0x14003ccde
lea rdi, [rbp + 0x3f0]
mov rcx, rdi
add rcx, r14
mov qword [rbp - 0x40], rcx
je 0x14003ccf1
call fcn.1401859f0
jmp 0x14003ccf3
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 + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x30]
call fcn.14002b3f0
mov rax, qword [rbp + 0x408]
cmp rax, 0x10
jb 0x14003cd7b
mov rcx, qword [rbp + 0x3f0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14003cd76
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x14003ce44
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.14014a880
lea rcx, [rsi + 0x104]
call fcn.14008ba10
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
lea rcx, [0x140198fd0]
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, [0x140198fe0]
mov qword [rsi + 0x10], rax
mov rcx, r15
call fcn.140014ba0
lea rax, vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov qword [rsi + 0x10], rax
mov rdi, qword [rsi + 0x70]
lea rsi, [rsi + 0x90]
test rdi, rdi
je 0x14003ce04
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003cdfc
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14003cdfc
mov rbx, qword [rax]
mov rcx, rax
mov edx, 1
call qword [rbx]
mov rcx, rdi
call fcn.14014a870
lea rax, vtable.std::ios_base.0
mov qword [rsi], rax
mov rcx, rsi
call fcn.14014b200
mov rcx, qword [rbp + 0x410]
xor rcx, rbp
call fcn.14014ac50
nop
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
int3
int3
call fcn.140178800
ud2