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 [0x140131038]
xor rax, rsp
mov qword [rsp + 0x4f8], rax
lea rax, [0x140113670]
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, [0x140136858]
mov qword [rsp + 0xe0], rax
lea rax, [0x14002e4e0]
mov qword [rsp + 0xe8], rax
mov rax, qword [0x140136858]
cmp rax, 0xffffffffffffffff
jne 0x1400026b2
movsxd rax, dword [0x140136860]
lea rdx, [rax - 1]
mov rcx, qword [rbx + 0x10]
mov rbp, qword [rbx + 0x18]
sub rbp, rcx
sar rbp, 3
cmp rbp, rdx
jbe 0x1400026ad
mov rcx, qword [rcx + rax*8 - 8]
test rcx, rcx
je 0x1400026ad
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 0x14000231e
mov rcx, r14
mov edx, edi
call fcn.1400c6626
mov rcx, r14
call fcn.1400c6528
lea r15, [rsi + 0x18]
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], r12
movaps xmm6, xmmword [0x1401146a0]
movaps xmmword [rbx], xmm6
mov rcx, r15
mov rdx, rbx
call fcn.14003da38
test byte [0x140133760], 0x19
jne 0x1400022d0
mov rax, qword [0x1401375d8]
test rax, rax
je 0x140001f34
mov r9, qword [rsi + 0x118]
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov ecx, dword [rsi + 8]
lea rbp, [rsp + 0x80]
mov qword [rsp + 0x20], rbp
call rax
test al, al
jne 0x1400020c9
cmp dword [rsi + 8], 2
jl 0x140001f7b
mov ecx, 2
call fcn.14007762c
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.1400789e8
mov ecx, 2
call fcn.14007762c
mov rcx, rax
call fcn.140078a6c
movabs rbp, 0x8000000000000000
mov ecx, 0x18
call fcn.140076ec8
mov rbx, rax
lea rdi, [rsp + 0xe0]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14007c4d0
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.140077408
mov rdi, rax
lea rax, [rbp - 0x11]
cmp rdi, rax
ja 0x140002659
cmp rdi, 0xb
jae 0x140001fee
mov byte [rbx + 0x17], dil
mov rbp, rbx
test rdi, rdi
jne 0x140002037
jmp 0x14000204d
mov qword [rsp + 0x38], rsi
mov rsi, r12
mov r12, r14
mov r14, r15
mov r15, r13
lea r13, [rdi + 8]
and r13, 0xfffffffffffffff8
mov rcx, r13
add rcx, r13
call fcn.140076ec8
mov rcx, rbp
mov rbp, rax
mov qword [rbx], rax
or r13, rcx
mov qword [rbx + 0x10], r13
mov r13, r15
mov r15, r14
mov r14, r12
mov r12, 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.14007be20
mov word [rbp + rdi*2], 0
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
jns 0x140002062
mov r8, qword [rbx + 8]
mov rcx, rbx
mov dx, 0x5c
call fcn.14005ee0a
cmp rax, 0xffffffffffffffff
je 0x1400020b0
movzx ecx, byte [rbx + 0x17]
mov rdx, rcx
test cl, cl
jns 0x140002083
mov rdx, qword [rbx + 8]
cmp rdx, rax
jbe 0x140002661
mov rdx, rax
inc rdx
test cl, cl
js 0x1400020a2
mov word [rbx + rax*2 + 2], 0
mov byte [rbx + 0x17], dl
jmp 0x1400020b0
mov rcx, qword [rbx]
mov word [rcx + rax*2 + 2], 0
mov qword [rbx + 8], rdx
lea rdx, [0x140117478]
mov rcx, rbx
call fcn.140052c64
cmp dword [rsi + 8], 3
je 0x140002165
cmp byte [rsp + 0x97], 0
jns 0x1400020e0
mov rcx, qword [rsp + 0x80]
call fcn.140076eb8
lea rcx, [rsi + 0x12c]
call fcn.140072620
lea rdi, [rsi + 0x80]
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x140113268]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x1401135a0]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x140002121
mov rcx, qword [r14 + 0x48]
call fcn.140076eb8
mov rcx, r15
call fcn.14003d3b2
mov rcx, r15
call fcn.14003e3a0
mov rcx, rdi
call fcn.14003d3ac
mov rcx, qword [rsp + 0x4f8]
xor rcx, rsp
call fcn.140079ea0
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 [0x140138090]
test rcx, rcx
je 0x14000219d
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.1400e92e0
lea rdi, [rsp + 0xe0]
mov r8d, 0x400
mov rcx, rdi
mov dl, 0xaa
call fcn.14007c4d0
cmp byte [rsp + 0x97], 0
jns 0x1400021c9
mov rdx, qword [rsp + 0x80]
jmp 0x1400021d1
lea rdx, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rdi
call fcn.140072640
mov rcx, rdi
call fcn.14003e3a0
call fcn.1400e2450
mov rax, qword [0x1401375f0]
cmp rax, qword [0x1401375f8]
je 0x1400026e8
mov qword [rsp + 0xc8], r12
call fcn.1400e2450
mov rdx, qword [0x1401375f8]
test rdx, rdx
mov rax, qword [0x1401375e8]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x1400026eb
shl rdx, 3
add rdx, qword [0x1401375e0]
lea rdi, [rsp + 0xc8]
mov rcx, rdi
call fcn.1400070f0
mov rbx, qword [rdi]
test rbx, rbx
je 0x1400022be
cmp byte [rsp + 0x97], 0
jns 0x140002265
mov rdi, qword [rsp + 0x80]
jmp 0x14000226d
lea rdi, [rsp + 0x80]
mov rcx, rdi
add rcx, r13
mov qword [rsp + 0x60], rcx
je 0x140002281
call fcn.1400933b0
jmp 0x140002283
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.140049880
jmp 0x1400020c9
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, [0x140133760]
lea r9, str.LogMessage
mov rcx, rdi
mov dl, 0x49
call fcn.1400371b0
mov rax, qword [rdi]
test rax, rax
jne 0x14000232c
lea rcx, [rsp + 0xb0]
call fcn.140065c80
jmp 0x140001ef9
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 r14d, r14d
lea rdi, [rsp + 0x98]
mov qword [rdi], r14
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rcx
lea rbp, [rsp + 0xc8]
mov rcx, rbp
mov rdx, rdi
call fcn.1400326e0
movups xmm0, xmmword [rdi + 8]
movups xmmword [rbp + 8], xmm0
mov rcx, qword [rbp + 8]
mov edx, 0x15
call fcn.140048d60
mov r12, rax
movsxd rax, dword [rsi + 0x128]
mov qword [rsp + 0x38], rsi
mov rcx, qword [rsi + 0x120]
lea rdx, [rsp + 0xe0]
mov qword [rdx], r14
mov qword [rdx + 8], rcx
mov qword [rdx + 0x10], rax
mov rcx, rbp
mov r15, rdx
call fcn.140065eb0
mov rdi, rax
mov rsi, r12
cmp qword [r12 + 0x10], r14
jne 0x140002669
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 0x140002592
mov rbp, rax
mov byte [rcx], dil
sub rbp, rax
add rbp, 2
mov rdi, qword [rsi]
mov r8d, ebp
mov rcx, qword [rdi + 0x18]
lea r12, [rcx + r8]
cmp r12, qword [rdi + 0x10]
ja 0x140002683
cmp ebp, 2
jne 0x14000260d
movzx eax, word [rsp + 0x4e8]
mov word [rcx], ax
mov qword [rdi + 0x18], r12
add dword [rsi + 0x20], ebp
movzx eax, byte [rsp + 0x97]
mov rbp, rax
test al, al
jns 0x14000244a
mov rbp, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x38]
mov rdi, qword [rcx + 0x118]
sub rbp, rdi
jb 0x1400026ee
test al, al
jns 0x14000246b
mov rbx, qword [rsp + 0x80]
cmp rbp, 0xfffffffffffffff0
jae 0x1400026f1
cmp rbp, 0x17
jae 0x1400025d8
mov byte [rsp + 0xf7], bpl
test rbp, rbp
je 0x14000249d
add rbx, rdi
mov rcx, r15
mov rdx, rbx
mov r8, rbp
call fcn.14007be20
mov byte [r15 + rbp], 0
lea rcx, [rsp + 0xc8]
lea rdx, [rsp + 0xe0]
call fcn.1400e2600
mov rdi, rax
cmp qword [rsi + 0x10], 0
jne 0x140002676
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 0x1400025b5
mov rbx, rax
mov byte [rcx], dil
sub rbx, rax
add rbx, 2
mov rdi, qword [rsi]
mov r8d, ebx
mov rcx, qword [rdi + 0x18]
lea rbp, [rcx + r8]
cmp rbp, qword [rdi + 0x10]
ja 0x140002698
cmp ebx, 2
jne 0x140002621
movzx eax, word [rsp + 0x4e8]
mov word [rcx], ax
mov qword [rdi + 0x18], rbp
add dword [rsi + 0x20], ebx
cmp byte [rsp + 0xf7], 0
jns 0x14000254d
mov rcx, qword [rsp + 0xe0]
call fcn.140076eb8
lea rcx, [rsp + 0xc8]
call fcn.140065c92
lea rcx, [rsp + 0x98]
call fcn.140065c92
lea rcx, [rsp + 0xb0]
call fcn.140065c80
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
movabs r12, 0xaaaaaaaaaaaaaaaa
mov rsi, qword [rsp + 0x38]
jmp 0x140001ef9
mov rbp, rdi
mov edx, ebp
or dl, 0x80
mov byte [rcx], dl
shr rdi, 7
inc rcx
cmp rbp, 0x3fff
ja 0x140002592
lea rbp, [rcx - 1]
jmp 0x1400023f6
mov rdx, rdi
mov ebx, edx
or bl, 0x80
mov byte [rcx], bl
shr rdi, 7
inc rcx
cmp rdx, 0x3fff
ja 0x1400025b5
lea rbx, [rcx - 1]
jmp 0x1400024f9
lea r12, [rbp + 0x10]
and r12, 0xfffffffffffffff0
mov rcx, r12
call fcn.140076ec8
mov r15, rax
mov qword [rsp + 0xe0], rax
bts r12, 0x3f
mov qword [rsp + 0xf0], r12
mov qword [rsp + 0xe8], rbp
jmp 0x14000248c
cmp ebp, 3
jne 0x140002635
mov al, byte [rsp + 0x4ea]
mov byte [rcx + 2], al
jmp 0x140002421
cmp ebx, 3
jne 0x140002647
mov al, byte [rsp + 0x4ea]
mov byte [rcx + 2], al
jmp 0x140002524
lea rdx, [rsp + 0x4e8]
call fcn.14007be20
jmp 0x14000242c
lea rdx, [rsp + 0x4e8]
call fcn.14007be20
jmp 0x14000252f
mov rcx, rbx
call fcn.1400ac2dc
mov rcx, rbx
call fcn.1400a4ec6
mov rcx, rsi
call fcn.14003f3fa
jmp 0x1400023c2
mov rcx, rsi
call fcn.14003f3fa
jmp 0x1400024c5
lea rdx, [rsp + 0x4e8]
mov rcx, rdi
call fcn.140031abc
jmp 0x140002430
lea rdx, [rsp + 0x4e8]
mov rcx, rdi
call fcn.140031abc
jmp 0x140002533
call fcn.1400c86e2
lea rax, [rsp + 0xe0]
lea rcx, [rsp + 0xc8]
mov qword [rcx], rax
lea rdx, [rsp + 0xb0]
mov qword [rdx], rcx
lea rcx, [0x140136858]
lea r8, [0x140076890]
call fcn.14004dcff
jmp 0x140001e5e
int3
int3
int3
lea rcx, [rsp + 0xe0]
call fcn.1400ac2dc
int3