Function at 0x140001c60
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 [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x4f8], rax
lea rax, [0x1402552c8]
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 0x140001ce2
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, [0x140295158]
mov qword [rsp + 0xe0], rax
lea rax, [0x140059e40]
mov qword [rsp + 0xe8], rax
mov rax, qword [0x140295158]
cmp rax, 0xffffffffffffffff
jne 0x140002461
movsxd rax, dword [0x140295160]
lea rdx, [rax - 1]
mov rcx, qword [rbx + 0x10]
mov rbp, qword [rbx + 0x18]
sub rbp, rcx
sar rbp, 3
cmp rbp, rdx
jbe 0x14000245c
mov rcx, qword [rcx + rax*8 - 8]
test rcx, rcx
je 0x14000245c
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 0x1400020ed
mov rcx, rdi
mov edx, ebp
call fcn.140147b18
mov rcx, rdi
call fcn.140147a1a
lea r15, [rsi + 0x18]
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], r12
movaps xmm6, xmmword [0x140257270]
movaps xmmword [rbx], xmm6
mov rcx, r15
mov rdx, rbx
call fcn.140070eb8
test byte [0x140291670], 0x19
jne 0x14000209d
mov eax, dword [0x140291088]
test al, 2
je 0x140001deb
cmp byte [rsp + 0x97], 0
jns 0x140001dd7
mov rcx, qword [rsp + 0x80]
jmp 0x140001ddf
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140291088]
test al, 4
jne 0x140001dfa
cmp dword [rsi + 8], 2
jl 0x140001e41
cmp eax, 1
ja 0x140001e41
mov ecx, 2
call fcn.1400ca474
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.1400cb76c
mov ecx, 2
call fcn.1400ca474
mov rcx, rax
call fcn.1400cb7f0
mov eax, dword [0x140291088]
test al, 1
je 0x140001e8c
call fcn.140059f20
test al, al
je 0x140001e8c
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 [0x140295f00]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
je 0x140001f32
cmp byte [rsp + 0x97], 0
jns 0x140001ead
mov rcx, qword [rsp + 0x80]
call fcn.1400c9cac
lea rcx, [rsi + 0x12c]
call fcn.1400c3a00
lea rbx, [rsi + 0x80]
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x140254870]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x140254880]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x140001eee
mov rcx, qword [rdi + 0x48]
call fcn.1400c9cac
mov rcx, r15
call fcn.140070832
mov rcx, r15
call fcn.140078fa0
mov rcx, rbx
call fcn.14007082c
mov rcx, qword [rsp + 0x4f8]
xor rcx, rsp
call fcn.1400ccfe0
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 [0x140297e98]
test rcx, rcx
je 0x140001f6a
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.14018fa20
lea rbx, [rsp + 0xe0]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.1400cf750
cmp byte [rsp + 0x97], 0
jns 0x140001f96
mov rdx, qword [rsp + 0x80]
jmp 0x140001f9e
lea rdx, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rbx
call fcn.1400c3a20
mov rcx, rbx
call fcn.140078fa0
call fcn.14017d3a0
mov rax, qword [0x140295f18]
cmp rax, qword [0x140295f20]
je 0x140002497
mov qword [rsp + 0xc8], r12
call fcn.14017d3a0
mov rdx, qword [0x140295f20]
test rdx, rdx
mov rax, qword [0x140295f10]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x14000249a
shl rdx, 3
add rdx, qword [0x140295f08]
lea rbx, [rsp + 0xc8]
mov rcx, rbx
call fcn.140008160
mov rbx, qword [rbx]
test rbx, rbx
je 0x14000208b
cmp byte [rsp + 0x97], 0
jns 0x140002032
mov rbp, qword [rsp + 0x80]
jmp 0x14000203a
lea rbp, [rsp + 0x80]
mov rcx, rbp
add rcx, r14
mov qword [rsp + 0x60], rcx
je 0x14000204e
call fcn.1400ed270
jmp 0x140002050
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 + 8]
lea rcx, [rsp + 0xc8]
call fcn.14008f650
jmp 0x140001e96
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, [0x140291670]
lea r9, str.LogMessage
mov rcx, rbp
mov dl, 0x49
call fcn.140086650
mov rax, qword [rbp]
test rax, rax
jne 0x1400020fb
lea rcx, [rsp + 0xb0]
call fcn.1400b5040
jmp 0x140001db9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
jmp 0x140001d6b
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.140066000
movups xmm0, xmmword [rbp + 8]
movups xmmword [r13 + 8], xmm0
mov rcx, qword [r13 + 8]
mov edx, 0x15
call fcn.140086662
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.14008c240
mov r13, rax
mov qword [rsp + 0x38], rbp
xor eax, eax
cmp qword [rbp + 0x10], rax
jne 0x140002414
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 0x140002344
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 0x140002432
cmp ebp, 2
jne 0x1400023c8
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 0x14000221c
mov r13, qword [rsp + 0x88]
mov rbp, qword [rsi + 0x118]
sub r13, rbp
jb 0x14000249d
test al, al
jns 0x140002238
mov rbx, qword [rsp + 0x80]
cmp r13, 0xfffffffffffffff0
jae 0x1400024a0
cmp r13, 0x17
jae 0x14000238a
mov byte [rsp + 0xf7], r13b
test r13, r13
je 0x14000226c
add rbx, rbp
mov rcx, qword [rsp + 0x48]
mov rdx, rbx
mov r8, r13
call fcn.1400cf0a0
mov rax, qword [rsp + 0x48]
mov byte [rax + r13], 0
lea rcx, [rsp + 0xc8]
lea rdx, [rsp + 0xe0]
call fcn.14017d470
mov rbx, rax
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x10], 0
jne 0x140002423
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 0x140002367
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 0x140002447
cmp ebp, 2
jne 0x1400023dc
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 0x140002325
mov rcx, qword [rsp + 0xe0]
call fcn.1400c9cac
lea rcx, [rsp + 0xc8]
call fcn.1400b5052
lea rcx, [rsp + 0x98]
call fcn.1400b5052
jmp 0x1400020db
mov rbp, r13
mov edx, ebp
or dl, 0x80
mov byte [rcx], dl
shr r13, 7
inc rcx
cmp rbp, 0x3fff
ja 0x140002344
lea rbp, [rcx - 1]
jmp 0x1400021b4
mov rbp, rbx
mov edx, ebp
or dl, 0x80
mov byte [rcx], dl
shr rbx, 7
inc rcx
cmp rbp, 0x3fff
ja 0x140002367
lea rbp, [rcx - 1]
jmp 0x1400022c8
lea rcx, [r13 + 0x10]
and rcx, 0xfffffffffffffff0
mov qword [rsp + 0x40], rcx
call fcn.1400c9cbc
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 0x140002259
cmp ebp, 3
jne 0x1400023f0
mov al, byte [rsp + 0x4ea]
mov byte [rcx + 2], al
jmp 0x1400021e9
cmp ebp, 3
jne 0x140002402
mov al, byte [rsp + 0x4ea]
mov byte [rcx + 2], al
jmp 0x1400022f7
lea rdx, [rsp + 0x4e8]
call fcn.1400cf0a0
jmp 0x1400021f4
lea rdx, [rsp + 0x4e8]
call fcn.1400cf0a0
jmp 0x140002302
mov rcx, qword [rsp + 0x38]
call fcn.140086876
jmp 0x14000218a
mov rcx, qword [rsp + 0x38]
call fcn.140086876
jmp 0x14000229e
lea rdx, [rsp + 0x4e8]
mov rcx, r13
call fcn.140065a26
jmp 0x1400021fd
lea rdx, [rsp + 0x4e8]
mov rcx, rbx
call fcn.140065a26
jmp 0x140002306
call fcn.14014ef75
lea rax, [rsp + 0xe0]
lea rcx, [rsp + 0xc8]
mov qword [rcx], rax
lea rdx, [rsp + 0xb0]
mov qword [rdx], rcx
lea rcx, [0x140295158]
lea r8, [0x1400c9220]
call fcn.140090668
jmp 0x140001d1e
int3
int3
int3
lea rcx, [rsp + 0xe0]
call fcn.140113fe4
int3