Function at 0x140001da0
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, 0x518
movaps xmmword [rsp + 0x500], xmm6
mov rsi, rcx
mov rax, qword [0x140100028]
xor rax, rsp
mov qword [rsp + 0x4f8], rax
lea rax, [0x1400e8e30]
mov qword [rcx], rax
lea rdi, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
movsxd rcx, dword [rax + 4]
mov r14, 0xffffffffffffffff
test byte [rsi + rcx + 0x30], 5
jne 0x140001e22
mov rcx, qword [rdi + rcx + 0x28]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 0x10
lea rbx, [rsp + 0xe0]
mov rdx, rbx
xor r8d, r8d
mov r9d, 1
call qword [rax + 0x18]
mov r14, qword [rbx + 8]
mov rax, qword [rdi]
movsxd rax, dword [rax + 4]
mov rbx, qword [rdi + rax + 0x30]
lock inc dword [rbx + 8]
lea rax, [0x140105458]
mov qword [rsp + 0xe0], rax
lea rax, [0x140027820]
mov qword [rsp + 0xe8], rax
mov rax, qword [0x140105458]
cmp rax, 0xffffffffffffffff
jne 0x1400025a1
movsxd rax, dword [0x140105460]
lea rdx, [rax - 1]
mov rcx, qword [rbx + 0x10]
mov rbp, qword [rbx + 0x18]
sub rbp, rcx
sar rbp, 3
cmp rbp, rdx
jbe 0x14000259c
mov rcx, qword [rcx + rax*8 - 8]
test rcx, rcx
je 0x14000259c
mov rax, qword [rcx]
mov dl, 0xa
call qword [rax + 0x38]
mov ebp, eax
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
test eax, eax
je 0x14000222d
mov rcx, rdi
mov edx, ebp
call fcn.1400d8af8
mov rcx, rdi
call fcn.1400a81dc
lea r15, [rsi + 0x18]
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], r12
movaps xmm6, xmmword [0x1400e9af0]
movaps xmmword [rbx], xmm6
mov rcx, r15
mov rdx, rbx
call fcn.1400359e8
test byte [0x140102450], 0x19
jne 0x1400021dd
mov eax, dword [0x140101e98]
test al, 2
je 0x140001f2b
cmp byte [rsp + 0x97], 0
jns 0x140001f17
mov rcx, qword [rsp + 0x80]
jmp 0x140001f1f
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140101e98]
test al, 4
jne 0x140001f3a
cmp dword [rsi + 8], 2
jl 0x140001f81
cmp eax, 1
ja 0x140001f81
mov ecx, 2
call fcn.140067964
lea rcx, [rsp + 0x80]
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.140068578
mov ecx, 2
call fcn.140067964
mov rcx, rax
call fcn.1400685fc
mov eax, dword [0x140101e98]
test al, 1
je 0x140001fcc
call fcn.140027c40
test al, al
je 0x140001fcc
lea r9, [rsp + 0xe0]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x80]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x1401061f0]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
je 0x140002072
cmp byte [rsp + 0x97], 0
jns 0x140001fed
mov rcx, qword [rsp + 0x80]
call fcn.1400672f8
lea rcx, [rsi + 0x12c]
call fcn.1400629a0
lea rbx, [rsi + 0x80]
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1400e8b50]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x1400e8d10]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x14000202e
mov rcx, qword [rdi + 0x48]
call fcn.1400672f8
mov rcx, r15
call fcn.140035362
mov rcx, r15
call fcn.140036350
mov rcx, rbx
call fcn.14003535c
mov rcx, qword [rsp + 0x4f8]
xor rcx, rsp
call fcn.140069890
movaps xmm6, xmmword [rsp + 0x500]
add rsp, 0x518
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [0x140106270]
test rcx, rcx
je 0x1400020aa
lea rax, [rsp + 0x80]
movzx ebp, byte [rax + 0x17]
test bpl, bpl
mov rbx, qword [rax]
cmovns rbx, rax
lea rdx, [rsp + 0x70]
mov qword [rdx], rbx
cmovs rbp, qword [rax + 8]
mov qword [rdx + 8], rbp
call fcn.1400c3770
lea rbx, [rsp + 0xe0]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.14006bec0
cmp byte [rsp + 0x97], 0
jns 0x1400020d6
mov rdx, qword [rsp + 0x80]
jmp 0x1400020de
lea rdx, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rbx
call fcn.1400629c0
mov rcx, rbx
call fcn.140036350
call fcn.1400bebe0
mov rax, qword [0x140106208]
cmp rax, qword [0x140106210]
je 0x1400025d7
mov qword [rsp + 0xc8], r12
call fcn.1400bebe0
mov rdx, qword [0x140106210]
test rdx, rdx
mov rax, qword [0x140106200]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x1400025da
shl rdx, 3
add rdx, qword [0x1401061f8]
lea rbx, [rsp + 0xc8]
mov rcx, rbx
call fcn.140006d20
mov rbx, qword [rbx]
test rbx, rbx
je 0x1400021cb
cmp byte [rsp + 0x97], 0
jns 0x140002172
mov rbp, qword [rsp + 0x80]
jmp 0x14000217a
lea rbp, [rsp + 0x80]
mov rcx, rbp
add rcx, r14
mov qword [rsp + 0x60], rcx
je 0x14000218e
call fcn.14007db40
jmp 0x140002190
xor eax, eax
lea rcx, [rsp + 0x60]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x118]
sub r14, rax
add rbp, rax
lea r9, [rsp + 0x50]
mov qword [r9], rbp
mov qword [r9 + 8], r14
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [rbx + VariantCopy]
lea rcx, [rsp + 0xc8]
call fcn.14003f310
jmp 0x140001fd6
lea rbp, [rsp + 0xb0]
mov qword [rbp + 0x10], r12
movaps xmmword [rbp], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x140102450]
lea r9, str.LogMessage
mov rcx, rbp
mov dl, 0x49
call fcn.14002f150
mov rax, qword [rbp]
test rax, rax
jne 0x14000223b
lea rcx, [rsp + 0xb0]
call fcn.14004d200
jmp 0x140001ef9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
jmp 0x140001eab
mov rcx, qword [rsp + 0xb8]
xor edx, edx
lea rbp, [rsp + 0x98]
mov qword [rbp], rdx
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rcx
lea r13, [rsp + 0xc8]
mov rcx, r13
mov rdx, rbp
call fcn.14002a680
movups xmm0, xmmword [rbp + 8]
movups xmmword [r13 + 8], xmm0
mov rcx, qword [r13 + 8]
mov edx, 0x15
call fcn.14003e7f0
mov rbp, rax
movsxd r8, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
lea rdx, [rsp + 0xe0]
xor eax, eax
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov qword [rdx + 0x10], r8
mov rcx, r13
mov qword [rsp + 0x48], rdx
call fcn.14004d430
mov r13, rax
mov qword [rsp + 0x38], rbp
xor eax, eax
cmp qword [rbp + 0x10], rax
jne 0x140002554
lea rax, [rsp + 0x4e8]
mov qword [rax], r12
mov qword [rax + 7], r12
mov byte [rax], 8
lea rcx, [rsp + 0x4e9]
cmp r13, 0x80
jae 0x140002484
mov rbp, rax
mov byte [rcx], r13b
sub rbp, rax
add rbp, 2
mov rax, qword [rsp + 0x38]
mov r13, qword [rax]
mov r8d, ebp
mov rcx, qword [r13 + 0x18]
lea rax, [rcx + r8]
mov qword [rsp + 0x40], rax
cmp rax, qword [r13 + 0x10]
ja 0x140002572
cmp ebp, 2
jne 0x140002508
movzx eax, word [rsp + 0x4e8]
mov word [rcx], ax
mov rax, qword [rsp + 0x40]
mov qword [r13 + 0x18], rax
mov rax, qword [rsp + 0x38]
add dword [rax + 0x20], ebp
movzx eax, byte [rsp + 0x97]
mov r13, rax
test al, al
jns 0x14000235c
mov r13, qword [rsp + 0x88]
mov rbp, qword [rsi + 0x118]
sub r13, rbp
jb 0x1400025dd
test al, al
jns 0x140002378
mov rbx, qword [rsp + 0x80]
cmp r13, 0xfffffffffffffff0
jae 0x1400025e0
cmp r13, 0x17
jae 0x1400024ca
mov byte [rsp + 0xf7], r13b
test r13, r13
je 0x1400023ac
add rbx, rbp
mov rcx, qword [rsp + 0x48]
mov rdx, rbx
mov r8, r13
call fcn.14006b810
mov rax, qword [rsp + 0x48]
mov byte [rax + r13], 0
lea rcx, [rsp + 0xc8]
lea rdx, [rsp + 0xe0]
call fcn.1400beda0
mov rbx, rax
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x10], 0
jne 0x140002563
lea rax, [rsp + 0x4e8]
mov qword [rax], r12
mov qword [rax + 7], r12
mov byte [rax], 0x10
lea rcx, [rsp + 0x4e9]
cmp rbx, 0x80
jae 0x1400024a7
mov rbp, rax
mov byte [rcx], bl
sub rbp, rax
add rbp, 2
mov rax, qword [rsp + 0x38]
mov rbx, qword [rax]
mov r8d, ebp
mov rcx, qword [rbx + 0x18]
lea r13, [rcx + r8]
cmp r13, qword [rbx + 0x10]
ja 0x140002587
cmp ebp, 2
jne 0x14000251c
movzx eax, word [rsp + 0x4e8]
mov word [rcx], ax
mov qword [rbx + 0x18], r13
mov rax, qword [rsp + 0x38]
add dword [rax + 0x20], ebp
cmp byte [rsp + 0xf7], 0
jns 0x140002465
mov rcx, qword [rsp + 0xe0]
call fcn.1400672f8
lea rcx, [rsp + 0xc8]
call fcn.14004d212
lea rcx, [rsp + 0x98]
call fcn.14004d212
jmp 0x14000221b
mov rbp, r13
mov edx, ebp
or dl, 0x80
mov byte [rcx], dl
shr r13, 7
inc rcx
cmp rbp, 0x3fff
ja 0x140002484
lea rbp, [rcx - 1]
jmp 0x1400022f4
mov rbp, rbx
mov edx, ebp
or dl, 0x80
mov byte [rcx], dl
shr rbx, 7
inc rcx
cmp rbp, 0x3fff
ja 0x1400024a7
lea rbp, [rcx - 1]
jmp 0x140002408
lea rcx, [r13 + 0x10]
and rcx, 0xfffffffffffffff0
mov qword [rsp + 0x40], rcx
call fcn.140067308
mov qword [rsp + 0x48], rax
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x40]
bts rax, 0x3f
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xe8], r13
jmp 0x140002399
cmp ebp, 3
jne 0x140002530
mov al, byte [rsp + 0x4ea]
mov byte [rcx + 2], al
jmp 0x140002329
cmp ebp, 3
jne 0x140002542
mov al, byte [rsp + 0x4ea]
mov byte [rcx + 2], al
jmp 0x140002437
lea rdx, [rsp + 0x4e8]
call fcn.14006b810
jmp 0x140002334
lea rdx, [rsp + 0x4e8]
call fcn.14006b810
jmp 0x140002442
mov rcx, qword [rsp + 0x38]
call fcn.1400373aa
jmp 0x1400022ca
mov rcx, qword [rsp + 0x38]
call fcn.1400373aa
jmp 0x1400023de
lea rdx, [rsp + 0x4e8]
mov rcx, r13
call fcn.140029acc
jmp 0x14000233d
lea rdx, [rsp + 0x4e8]
mov rcx, rbx
call fcn.140029acc
jmp 0x140002446
call fcn.1400a82da
lea rax, [rsp + 0xe0]
lea rcx, [rsp + 0xc8]
mov qword [rcx], rax
lea rdx, [rsp + 0xb0]
mov qword [rdx], rcx
lea rcx, [0x140105458]
lea r8, [0x140066c10]
call fcn.140041bff
jmp 0x140001e5e
int3
int3
int3
lea rcx, [rsp + 0xe0]
call fcn.1400955a0
int3