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 [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x4f8], rax
lea rax, [0x1400e1b10]
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, [0x1400fe398]
mov qword [rsp + 0xe0], rax
lea rax, [0x140026330]
mov qword [rsp + 0xe8], rax
mov rax, qword [0x1400fe398]
cmp rax, 0xffffffffffffffff
jne 0x14000268d
movsxd rax, dword [0x1400fe3a0]
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.1400d11c8
mov rcx, r14
call fcn.1400a260c
lea r15, [rsi + 0x18]
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], r12
movaps xmm6, xmmword [0x1400e2ad0]
movaps xmmword [rbx], xmm6
mov rcx, r15
mov rdx, rbx
call fcn.140034198
test byte [0x1400fb430], 0x19
jne 0x140002295
cmp dword [rsi + 8], 2
jl 0x140001f4a
mov ecx, 2
call fcn.14006313c
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.140063df8
mov ecx, 2
call fcn.14006313c
mov rcx, rax
call fcn.140063e7c
mov ecx, 0x18
call fcn.140062b88
mov rbx, rax
lea rdi, [rsp + 0xe0]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140067750
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.140062f08
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.140062b88
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.1400670a0
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.140062708
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.14003d882
cmp dword [rsi + 8], 3
je 0x14000212a
cmp byte [rsp + 0x97], 0
jns 0x1400020a5
mov rcx, qword [rsp + 0x80]
call fcn.140062b78
lea rcx, [rsi + 0x12c]
call fcn.14005e6f0
lea rdi, [rsi + 0x80]
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1400e1c20]
mov qword [rsi + rax + 0x10], rcx
lea rax, str.p_n_
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x1400020e6
mov rcx, qword [r14 + 0x48]
call fcn.140062b78
mov rcx, r15
call fcn.140033b12
mov rcx, r15
call fcn.140034b00
mov rcx, rdi
call fcn.140033b0c
mov rcx, qword [rsp + 0x4f8]
xor rcx, rsp
call fcn.140065120
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 [0x1401006c0]
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.1400beab0
lea rdi, [rsp + 0xe0]
mov r8d, 0x400
mov rcx, rdi
mov dl, 0xaa
call fcn.140067750
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.14005eb40
mov rcx, rdi
call fcn.140034b00
call fcn.1400b9f80
mov rax, qword [0x1400ff130]
cmp rax, qword [0x1400ff138]
je 0x1400026c3
mov qword [rsp + 0xc8], r12
call fcn.1400b9f80
mov rdx, qword [0x1400ff138]
test rdx, rdx
mov rax, qword [0x1400ff128]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x1400026c6
shl rdx, 3
add rdx, qword [0x1400ff120]
lea rdi, [rsp + 0xc8]
mov rcx, rdi
call fcn.140006830
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.14007a960
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 + 8]
lea rcx, [rsp + 0xc8]
call fcn.14003b2f0
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, [0x1400fb430]
lea r9, str.LogMessage
mov rcx, rdi
mov dl, 0x49
call fcn.14002d910
mov rax, qword [rdi]
test rax, rax
jne 0x1400022f1
lea rcx, [rsp + 0xb0]
call fcn.14004dcb0
jmp 0x140001f03
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
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.140028e40
movups xmm0, xmmword [rdi + 8]
movups xmmword [r14 + 8], xmm0
mov rcx, qword [r14 + 8]
mov edx, 0x15
call fcn.14003a7c4
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.14004dee0
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.1400670a0
mov byte [r12 + rbp], 0
lea rcx, [rsp + 0xc8]
lea rdx, [rsp + 0xe0]
call fcn.1400ba050
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.140062b78
lea rcx, [rsp + 0xc8]
call fcn.14004dcc2
lea rcx, [rsp + 0x98]
call fcn.14004dcc2
lea rcx, [rsp + 0xb0]
call fcn.14004dcb0
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.140062b88
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.140091a84
lea rdx, [rsp + 0x4e8]
call fcn.1400670a0
jmp 0x1400023f3
lea rdx, [rsp + 0x4e8]
call fcn.1400670a0
jmp 0x1400024f7
mov rcx, rbx
call fcn.14008d4b6
mov rcx, r14
call fcn.140035b5a
jmp 0x140002389
mov rcx, r14
call fcn.140035b5a
jmp 0x14000248d
lea rdx, [rsp + 0x4e8]
mov rcx, rdi
call fcn.14002828c
jmp 0x1400023f7
lea rdx, [rsp + 0x4e8]
mov rcx, rdi
call fcn.14002828c
jmp 0x1400024fb
call fcn.1400a270a
lea rax, [rsp + 0xe0]
lea rcx, [rsp + 0xc8]
mov qword [rcx], rax
lea rdx, [rsp + 0xb0]
mov qword [rdx], rcx
lea rcx, [0x1400fe398]
lea r8, [0x140062670]
call fcn.14003fc2f
jmp 0x140001e5e
int3
int3
int3
lea rcx, [rsp + 0xe0]
call fcn.140091a84
int3