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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x4b0
mov rsi, rcx
mov rax, qword [0x14017b750]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
lea rdi, [rcx + 8]
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140038190
mov r14, qword [rsp + 0x70]
add r14, qword [rsp + 0x68]
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
mov rax, qword [rsi + rax + 0x48]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x88], rcx
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x80]
call fcn.140034340
mov rbx, qword [rax]
mov dl, 0xa
mov rcx, rax
call qword [rbx + 0x40]
mov ebx, eax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140037ccd
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140037ccd
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rcx, rdi
mov edx, ebx
call fcn.140039160
mov rcx, rdi
call fcn.140006b42
lea rdi, [rsi + 0x10]
lea rbx, [rsp + 0x488]
mov rcx, rdi
mov rdx, rbx
call fcn.140039050
mov rax, qword [0x14017c7f0]
test rax, rax
je 0x140037d74
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
je 0x140037d74
mov rax, qword [rsp + 0x4a0]
cmp rax, 0x10
jb 0x1400380c1
mov rcx, qword [rsp + 0x488]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140037d6a
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x14003817c
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.14011a568
jmp 0x1400380c1
test byte [0x14017b508], 2
jne 0x140037dad
cmp dword [rsi], 2
jl 0x140037e21
mov ecx, 2
call fcn.14011ff28
mov rdx, qword [rsp + 0x498]
cmp qword [rsp + 0x4a0], 0xf
jbe 0x140037df9
mov rcx, qword [rsp + 0x488]
jmp 0x140037e01
cmp qword [rsp + 0x4a0], 0xf
mov rcx, rbx
jbe 0x140037dc3
mov rcx, qword [rsp + 0x488]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 2
call fcn.14011ff28
mov rdx, qword [rsp + 0x498]
cmp qword [rsp + 0x4a0], 0xf
jbe 0x140037dee
mov rbx, qword [rsp + 0x488]
mov r8d, 1
mov rcx, rbx
jmp 0x140037e07
lea rcx, [rsp + 0x488]
mov r8d, 1
mov r9, rax
call fcn.14012e988
mov ecx, 2
call fcn.14011ff28
mov rcx, rax
call fcn.14012da18
test byte [0x14017b508], 1
je 0x140037e76
call fcn.1400372a0
test al, al
je 0x140037e76
mov r8d, dword [rsp + 0x498]
cmp qword [rsp + 0x4a0], 0xf
jbe 0x140037e50
mov rdx, qword [rsp + 0x488]
jmp 0x140037e58
lea rdx, [rsp + 0x488]
mov rcx, qword [0x14017c828]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi], 3
jne 0x14003806e
mov rcx, qword [0x14017f5d8]
test rcx, rcx
je 0x140037ec4
mov rax, qword [rsp + 0x498]
cmp qword [rsp + 0x4a0], 0xf
jbe 0x140037ea8
mov rdx, qword [rsp + 0x488]
jmp 0x140037eb0
lea rdx, [rsp + 0x488]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x58]
call fcn.140078fc0
cmp qword [rsp + 0x4a0], 0xf
jbe 0x140037ed9
mov rdx, qword [rsp + 0x488]
jmp 0x140037ee1
lea rdx, [rsp + 0x488]
lea rbx, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rbx
call fcn.140044e60
mov rcx, rbx
call fcn.14000f680
mov rax, qword [0x14017c800]
test rax, rax
je 0x140037f68
mov rbx, qword [0x14017c800]
cmp rbx, 1
ja 0x140037f5e
lea rcx, [0x14017c800]
call fcn.140036ed0
test al, al
je 0x140037f57
xorps xmm0, xmm0
movups xmmword [0x14017c818], xmm0
movups xmmword [0x14017c808], xmm0
lea rbx, [0x14017c808]
lea rcx, [0x14017c800]
xor r8d, r8d
mov rdx, rbx
mov r9, rcx
call fcn.140036f90
jmp 0x140037f5e
mov rbx, qword [0x14017c800]
mov rax, qword [rbx + 0x10]
cmp rax, qword [rbx + 0x18]
jne 0x140037f72
call fcn.14007a8b0
jmp 0x14003806e
mov rbx, qword [0x14017c800]
cmp rbx, 1
ja 0x140037fc5
lea rcx, [0x14017c800]
call fcn.140036ed0
test al, al
je 0x140037fbe
xorps xmm0, xmm0
movups xmmword [0x14017c818], xmm0
movups xmmword [0x14017c808], xmm0
lea rbx, [0x14017c808]
lea rcx, [0x14017c800]
xor r8d, r8d
mov rdx, rbx
mov r9, rcx
call fcn.140036f90
jmp 0x140037fc5
mov rbx, qword [0x14017c800]
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x140037fd2
mov rax, qword [rbx + 8]
mov rcx, qword [rbx]
lea rdx, [rcx + rax*8]
add rdx, 0xfffffffffffffff8
lea rcx, [rsp + 0x50]
call fcn.140027b70
mov r15, qword [rsp + 0x50]
test r15, r15
je 0x140038064
cmp qword [rsp + 0x4a0], 0xf
jbe 0x140038006
mov rbx, qword [rsp + 0x488]
jmp 0x14003800e
lea rbx, [rsp + 0x488]
mov rcx, rbx
add rcx, r14
mov qword [rsp + 0x40], rcx
je 0x140038022
call fcn.140133270
jmp 0x140038024
xor eax, eax
mov qword [rsp + 0x48], rax
mov rax, qword [rsi + 0xf0]
sub r14, rax
add rbx, rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
mov r8d, dword [rsi + 0x100]
mov rdx, qword [rsi + 0xf8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rcx, r15
call qword [r15 + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x50]
call fcn.140027b50
mov rax, qword [rsp + 0x4a0]
cmp rax, 0x10
jb 0x1400380b5
mov rcx, qword [rsp + 0x488]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1400380b0
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x14003817c
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.14011a568
mov qword [rsp + 0x4a0], 0xf
mov ecx, dword [rsi + 0x104]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
lea rcx, [0x14014a020]
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, [0x1401498c0]
mov qword [rsi + 0x10], rax
mov rcx, rdi
call fcn.140024622
lea rax, [0x140149940]
mov qword [rsi + 0x10], rax
mov rdi, qword [rsi + 0x70]
lea rsi, [rsi + 0x90]
test rdi, rdi
je 0x14003814a
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140038142
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140038142
mov rbx, qword [rax]
mov edx, 1
mov rcx, rax
call qword [rbx]
mov rcx, rdi
call fcn.14011a560
lea rax, [0x1401498a8]
mov qword [rsi], rax
mov rcx, rsi
call fcn.14011b8ac
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.14011a890
nop
add rsp, 0x4b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140128920
ud2