Function at 0x140001da0
Capabilities:
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 [0x1400ff028]
xor rax, rsp
mov qword [rsp + 0x4f8], rax
lea rax, [0x1400e7e30]
mov qword [rcx], rax
lea r14, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
movsxd rcx, dword [rax + 4]
mov r13, 0xffffffffffffffff
test byte [rsi + rcx + 0x30], 5
jne 0x140001e22
mov rcx, qword [r14 + rcx + 0x28]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 0x10
lea rdi, [rsp + 0xe0]
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [rax + 0x18]
mov r13, qword [rdi + 8]
mov rax, qword [r14]
movsxd rax, dword [rax + 4]
mov rbx, qword [r14 + rax + 0x30]
lock inc dword [rbx + 8]
lea rax, [0x140104338]
mov qword [rsp + 0xe0], rax
lea rax, [0x1400277f0]
mov qword [rsp + 0xe8], rax
mov rax, qword [0x140104338]
cmp rax, 0xffffffffffffffff
jne 0x14000268d
movsxd rax, dword [0x140104340]
lea rdx, [rax - 1]
mov rcx, qword [rbx + 0x10]
mov rbp, qword [rbx + 0x18]
sub rbp, rcx
sar rbp, 3
cmp rbp, rdx
jbe 0x140002688
mov rcx, qword [rcx + rax*8 - 8]
test rcx, rcx
je 0x140002688
mov rax, qword [rcx]
mov dl, 0xa
call qword [rax + 0x38]
mov edi, eax
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
test eax, eax
je 0x1400022e3
movabs rbp, 0x8000000000000000
mov rcx, r14
mov edx, edi
call fcn.1400d7598
mov rcx, r14
call fcn.1400a80cc
lea r15, [rsi + 0x18]
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], r12
movaps xmm6, xmmword [0x1400e8af0]
movaps xmmword [rbx], xmm6
mov rcx, r15
mov rdx, rbx
call fcn.1400354d8
test byte [0x140101460], 0x19
jne 0x140002295
cmp dword [rsi + 8], 2
jl 0x140001f4a
mov ecx, 2
call fcn.140067bf8
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.140068868
mov ecx, 2
call fcn.140067bf8
mov rcx, rax
call fcn.1400688ec
mov ecx, 0x18
call fcn.140067648
mov rbx, rax
lea rdi, [rsp + 0xe0]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14006c1b0
xor ecx, ecx
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movups xmmword [rbx], xmm6
mov qword [rbx + 0x10], r12
mov rcx, rdi
call fcn.140067aac
mov rdi, rax
lea rax, [rbp - 0x11]
cmp rdi, rax
ja 0x140002610
cmp rdi, 0xb
jae 0x140001fb3
mov byte [rbx + 0x17], dil
mov rbp, rbx
test rdi, rdi
jne 0x140001ffc
jmp 0x140002012
mov qword [rsp + 0x38], rsi
mov rsi, r14
mov r14, r15
mov r15, r12
mov r12, r13
lea r13, [rdi + 8]
and r13, 0xfffffffffffffff8
mov rcx, r13
add rcx, r13
call fcn.140067648
mov rcx, rbp
mov rbp, rax
mov qword [rbx], rax
or r13, rcx
mov qword [rbx + 0x10], r13
mov r13, r12
mov r12, r15
mov r15, r14
mov r14, rsi
mov rsi, qword [rsp + 0x38]
mov qword [rbx + 8], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0xe0]
mov rcx, rbp
call fcn.14006bb00
mov word [rbp + rdi*2], 0
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
jns 0x140002027
mov r8, qword [rbx + 8]
mov rcx, rbx
mov dx, 0x5c
call fcn.140067048
cmp rax, 0xffffffffffffffff
je 0x140002075
movzx ecx, byte [rbx + 0x17]
mov rdx, rcx
test cl, cl
jns 0x140002048
mov rdx, qword [rbx + 8]
cmp rdx, rax
jbe 0x14000263c
mov rdx, rax
inc rdx
test cl, cl
js 0x140002067
mov word [rbx + rax*2 + 2], 0
mov byte [rbx + 0x17], dl
jmp 0x140002075
mov rcx, qword [rbx]
mov word [rcx + rax*2 + 2], 0
mov qword [rbx + 8], rdx
lea rdx, str.debug.log
mov rcx, rbx
call fcn.140042ca8
cmp dword [rsi + 8], 3
je 0x14000212a
cmp byte [rsp + 0x97], 0
jns 0x1400020a5
mov rcx, qword [rsp + 0x80]
call fcn.140067638
lea rcx, [rsi + 0x12c]
call fcn.140063710
lea rdi, [rsi + 0x80]
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1400e7b68]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x1400e7c80]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x1400020e6
mov rcx, qword [r14 + 0x48]
call fcn.140067638
mov rcx, r15
call fcn.140034e52
mov rcx, r15
call fcn.140035e40
mov rcx, rdi
call fcn.140034e4c
mov rcx, qword [rsp + 0x4f8]
xor rcx, rsp
call fcn.140069b80
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 [0x140105178]
test rcx, rcx
je 0x140002162
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.1400c2a10
lea rdi, [rsp + 0xe0]
mov r8d, 0x400
mov rcx, rdi
mov dl, 0xaa
call fcn.14006c1b0
cmp byte [rsp + 0x97], 0
jns 0x14000218e
mov rdx, qword [rsp + 0x80]
jmp 0x140002196
lea rdx, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rdi
call fcn.140063730
mov rcx, rdi
call fcn.140035e40
call fcn.1400bea40
mov rax, qword [0x1401050c0]
cmp rax, qword [0x1401050c8]
je 0x1400026c3
mov qword [rsp + 0xc8], r12
call fcn.1400bea40
mov rdx, qword [0x1401050c8]
test rdx, rdx
mov rax, qword [0x1401050b8]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x1400026c6
shl rdx, 3
add rdx, qword [0x1401050b0]
lea rdi, [rsp + 0xc8]
mov rcx, rdi
call fcn.140006bd0
mov rbx, qword [rdi]
test rbx, rbx
je 0x140002283
cmp byte [rsp + 0x97], 0
jns 0x14000222a
mov rdi, qword [rsp + 0x80]
jmp 0x140002232
lea rdi, [rsp + 0x80]
mov rcx, rdi
add rcx, r13
mov qword [rsp + 0x60], rcx
je 0x140002246
call fcn.14007e0c0
jmp 0x140002248
xor eax, eax
lea rcx, [rsp + 0x60]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x118]
sub r13, rax
add rdi, rax
lea r9, [rsp + 0x50]
mov qword [r9], rdi
mov qword [r9 + 8], r13
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.14003f260
jmp 0x14000208e
lea rdi, [rsp + 0xb0]
mov qword [rdi + 0x10], r12
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x140101460]
lea r9, str.LogMessage
mov rcx, rdi
mov dl, 0x49
call fcn.14002ec50
mov rax, qword [rdi]
test rax, rax
jne 0x1400022f1
lea rcx, [rsp + 0xb0]
call fcn.140051970
jmp 0x140001f03
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
jmp 0x140001eab
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
mov rcx, qword [rsp + 0xb8]
xor edx, edx
lea rdi, [rsp + 0x98]
mov qword [rdi], rdx
xor r15d, r15d
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rcx
lea r14, [rsp + 0xc8]
mov rcx, r14
mov rdx, rdi
call fcn.14002a180
movups xmm0, xmmword [rdi + 8]
movups xmmword [r14 + 8], xmm0
mov rcx, qword [r14 + 8]
mov edx, 0x15
call fcn.14003e740
mov rbp, rax
movsxd rax, dword [rsi + 0x128]
mov qword [rsp + 0x38], rsi
mov rcx, qword [rsi + 0x120]
lea rdx, [rsp + 0xe0]
mov qword [rdx], r15
mov qword [rdx + 8], rcx
mov qword [rdx + 0x10], rax
mov rcx, r14
mov r12, rdx
call fcn.140051ba0
mov rdi, rax
mov r14, rbp
cmp qword [rbp + 0x10], r15
jne 0x140002644
lea rax, [rsp + 0x4e8]
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rax], rcx
mov qword [rax + 7], rcx
mov byte [rax], 8
lea rcx, [rsp + 0x4e9]
cmp rdi, 0x80
jae 0x140002565
mov rbp, rax
mov byte [rcx], dil
sub rbp, rax
add rbp, 2
mov rdi, qword [r14]
mov r8d, ebp
mov rcx, qword [rdi + 0x18]
lea rsi, [rcx + r8]
cmp rsi, qword [rdi + 0x10]
ja 0x14000265e
cmp ebp, 2
jne 0x1400025e8
movzx eax, word [rsp + 0x4e8]
mov word [rcx], ax
mov qword [rdi + 0x18], rsi
add dword [r14 + 0x20], ebp
movzx eax, byte [rsp + 0x97]
mov rbp, rax
test al, al
jns 0x140002412
mov rbp, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x38]
mov rdi, qword [rcx + 0x118]
sub rbp, rdi
jb 0x1400026c9
test al, al
jns 0x140002433
mov rbx, qword [rsp + 0x80]
cmp rbp, 0xfffffffffffffff0
jae 0x1400026cc
cmp rbp, 0x17
jae 0x1400025ab
mov byte [rsp + 0xf7], bpl
test rbp, rbp
je 0x140002465
add rbx, rdi
mov rcx, r12
mov rdx, rbx
mov r8, rbp
call fcn.14006bb00
mov byte [r12 + rbp], 0
lea rcx, [rsp + 0xc8]
lea rdx, [rsp + 0xe0]
call fcn.1400bec00
mov rdi, rax
cmp qword [r14 + 0x10], 0
jne 0x140002651
lea rax, [rsp + 0x4e8]
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rax], rcx
mov qword [rax + 7], rcx
mov byte [rax], 0x10
lea rcx, [rsp + 0x4e9]
cmp rdi, 0x80
jae 0x140002588
mov rbx, rax
mov byte [rcx], dil
sub rbx, rax
add rbx, 2
mov rdi, qword [r14]
mov r8d, ebx
mov rcx, qword [rdi + 0x18]
lea rbp, [rcx + r8]
cmp rbp, qword [rdi + 0x10]
ja 0x140002673
cmp ebx, 2
jne 0x1400025fc
movzx eax, word [rsp + 0x4e8]
mov word [rcx], ax
mov qword [rdi + 0x18], rbp
add dword [r14 + 0x20], ebx
cmp byte [rsp + 0xf7], 0
jns 0x140002516
mov rcx, qword [rsp + 0xe0]
call fcn.140067638
lea rcx, [rsp + 0xc8]
call fcn.140051982
lea rcx, [rsp + 0x98]
call fcn.140051982
lea rcx, [rsp + 0xb0]
call fcn.140051970
movabs r12, 0xaaaaaaaaaaaaaaaa
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x38]
movabs rbp, 0x8000000000000000
jmp 0x140001f03
mov rbp, rdi
mov edx, ebp
or dl, 0x80
mov byte [rcx], dl
shr rdi, 7
inc rcx
cmp rbp, 0x3fff
ja 0x140002565
lea rbp, [rcx - 1]
jmp 0x1400023bd
mov rdx, rdi
mov ebx, edx
or bl, 0x80
mov byte [rcx], bl
shr rdi, 7
inc rcx
cmp rdx, 0x3fff
ja 0x140002588
lea rbx, [rcx - 1]
jmp 0x1400024c1
lea rsi, [rbp + 0x10]
and rsi, 0xfffffffffffffff0
mov rcx, rsi
call fcn.140067648
mov r12, rax
mov qword [rsp + 0xe0], rax
movabs rax, 0x8000000000000000
or rsi, rax
mov qword [rsp + 0xf0], rsi
mov qword [rsp + 0xe8], rbp
jmp 0x140002454
cmp ebp, 3
jne 0x140002618
mov al, byte [rsp + 0x4ea]
mov byte [rcx + 2], al
jmp 0x1400023e8
cmp ebx, 3
jne 0x14000262a
mov al, byte [rsp + 0x4ea]
mov byte [rcx + 2], al
jmp 0x1400024ec
mov rcx, rbx
call fcn.14009617c
lea rdx, [rsp + 0x4e8]
call fcn.14006bb00
jmp 0x1400023f3
lea rdx, [rsp + 0x4e8]
call fcn.14006bb00
jmp 0x1400024f7
mov rcx, rbx
call fcn.140090d36
mov rcx, r14
call fcn.140036e9a
jmp 0x140002389
mov rcx, r14
call fcn.140036e9a
jmp 0x14000248d
lea rdx, [rsp + 0x4e8]
mov rcx, rdi
call fcn.1400295cc
jmp 0x1400023f7
lea rdx, [rsp + 0x4e8]
mov rcx, rdi
call fcn.1400295cc
jmp 0x1400024fb
call fcn.1400a81ca
lea rax, [rsp + 0xe0]
lea rcx, [rsp + 0xc8]
mov qword [rcx], rax
lea rdx, [rsp + 0xb0]
mov qword [rdx], rcx
lea rcx, [0x140104338]
lea r8, [0x140066fb0]
call fcn.1400420ff
jmp 0x140001e5e
int3
int3
int3
lea rcx, [rsp + 0xe0]
call fcn.14009617c
int3