Function at 0x14000bec0
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 [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x4f8], rax
lea rax, [0x140149e48]
mov qword [rcx], rax
lea rdi, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
movsxd rcx, dword [rax + 4]
mov r13, 0xffffffffffffffff
test byte [rsi + rcx + 0x30], 5
jne 0x14000bf42
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 r13, 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, [0x140174d10]
mov qword [rsp + 0xe0], rax
lea rax, [0x140079da0]
mov qword [rsp + 0xe8], rax
mov rax, qword [0x140174d10]
cmp rax, 0xffffffffffffffff
jne 0x14000c7ea
movsxd rax, dword [0x140174d18]
lea rdx, [rax - 1]
mov rcx, qword [rbx + 0x10]
mov rbp, qword [rbx + 0x18]
sub rbp, rcx
sar rbp, 3
cmp rbp, rdx
jbe 0x14000c7e5
mov rcx, qword [rcx + rax*8 - 8]
test rcx, rcx
je 0x14000c7e5
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 0x14000c352
mov rcx, rdi
mov edx, ebp
call fcn.140132c84
mov rcx, rdi
call fcn.1400d9e86
lea r15, [rsi + 0x18]
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], r12
movaps xmm6, xmmword [0x140147b90]
movaps xmmword [rbx], xmm6
mov rcx, r15
mov rdx, rbx
call fcn.140079b8e
test byte [0x140170500], 0x19
jne 0x14000c302
mov eax, dword [0x14016ff48]
test al, 2
je 0x14000c04b
cmp byte [rsp + 0x97], 0
jns 0x14000c037
mov rcx, qword [rsp + 0x80]
jmp 0x14000c03f
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14016ff48]
test al, 4
jne 0x14000c05a
cmp eax, 1
ja 0x14000c0a1
cmp dword [rsi + 8], 2
jl 0x14000c0a1
mov ecx, 2
call fcn.14007b300
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.14007c018
mov ecx, 2
call fcn.14007b300
mov rcx, rax
call fcn.14007c09c
mov eax, dword [0x14016ff48]
test al, 1
je 0x14000c0ec
call fcn.14002ea70
test al, al
je 0x14000c0ec
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 [0x140175ab8]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
je 0x14000c196
lea rbp, [rsp + 0x80]
cmp byte [rbp + 0x17], 0
jns 0x14000c111
mov rcx, qword [rsp + 0x80]
call fcn.14007a98c
lea rcx, [rsi + 0x138]
call fcn.140075f50
lea rbx, [rsi + 0x80]
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x140147f88]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x140147fa0]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x14000c152
mov rcx, qword [rdi + 0x48]
call fcn.14007a98c
mov rcx, r15
call fcn.140073996
mov rcx, r15
call fcn.14003ef40
mov rcx, rbx
call fcn.1400739aa
mov rcx, qword [rsp + 0x4f8]
xor rcx, rsp
call fcn.14007d5a0
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 [0x140175b58]
lea rbp, [rsp + 0x80]
test rcx, rcx
je 0x14000c1ce
movzx eax, byte [rbp + 0x17]
test al, al
mov rbx, qword [rbp]
cmovns rbx, rbp
lea rdx, [rsp + 0x70]
mov qword [rdx], rbx
cmovs rax, qword [rbp + 8]
mov qword [rdx + 8], rax
call fcn.1400fd2d0
lea rbx, [rsp + 0xe0]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.14007f940
cmp byte [rsp + 0x97], 0
jns 0x14000c1fa
mov rdx, qword [rsp + 0x80]
jmp 0x14000c202
lea rdx, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rbx
call fcn.140075f70
mov rcx, rbx
call fcn.14003ef40
call fcn.1400f6030
mov rax, qword [0x140175ad0]
cmp rax, qword [0x140175ad8]
je 0x14000c820
mov qword [rsp + 0xc8], r12
call fcn.1400f6030
mov rdx, qword [0x140175ad8]
test rdx, rdx
mov rax, qword [0x140175ac8]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x14000c823
shl rdx, 3
add rdx, qword [0x140175ac0]
lea rbx, [rsp + 0xc8]
mov rcx, rbx
call fcn.14000f2e0
mov r14, qword [rbx]
test r14, r14
je 0x14000c2f0
cmp byte [rsp + 0x97], 0
jns 0x14000c296
mov rbx, qword [rsp + 0x80]
jmp 0x14000c29e
lea rbx, [rsp + 0x80]
mov rcx, rbx
add rcx, r13
mov qword [rsp + 0x60], rcx
je 0x14000c2b2
call fcn.140093870
jmp 0x14000c2b4
xor eax, eax
lea rcx, [rsp + 0x60]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x118]
sub r13, rax
add rbx, rax
lea r9, [rsp + 0x50]
mov qword [r9], rbx
mov qword [r9 + 8], r13
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov qword [rsp + 0x20], rcx
mov rcx, r14
call qword [r14 + 8]
lea rcx, [rsp + 0xc8]
call fcn.1400478a0
jmp 0x14000c0fe
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, [0x140170500]
lea r9, str.LogMessage
mov rcx, rbp
mov dl, 0x49
call fcn.14003ce30
mov rcx, qword [rbp]
test rcx, rcx
jne 0x14000c360
lea rcx, [rsp + 0xb0]
call fcn.14007a270
jmp 0x14000c019
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
jmp 0x14000bfcb
mov rbp, qword [rsp + 0xb8]
xor r14d, r14d
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xa8], rbp
mov edx, 0x15
call fcn.140043b06
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov qword [rsp + 0xc8], r14
mov qword [rsp + 0xd0], rcx
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x40], rbp
mov rcx, rbp
call fcn.140074d90
mov rbp, qword [rax + 0x20]
lea rcx, [rax + 8]
inc rbp
mov rax, qword [rsp + 0xd8]
lea r8, [rsp + 0xe0]
mov qword [r8 + 0x10], rax
movups xmm0, xmmword [rsp + 0xc8]
movaps xmmword [r8], xmm0
mov qword [r8 + 0x18], rbp
lea r14, [rsp + 0x4e8]
mov rdx, r14
mov qword [rsp + 0x48], r8
mov r9, r8
call fcn.14005e200
cmp byte [r14 + 8], 0
jne 0x14000c6d6
mov rax, qword [rsp + 0x4e8]
mov rbp, qword [rax + 0x28]
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x10], 0
jne 0x14000c6f4
lea rax, [rsp + 0x4e9]
mov qword [rax - 1], r12
mov qword [rax + 6], r12
mov byte [rax - 1], 8
cmp rbp, 0x80
jae 0x14000c62f
lea r14, [rsp + 0x4e8]
mov rcx, rbp
lea rax, [rsp + 0x4e9]
mov byte [rax], cl
lea rax, [rsp + 0x4e8]
sub r14, rax
add r14, 2
mov rax, qword [rsp + 0x38]
mov rbp, qword [rax]
mov r8d, r14d
mov rcx, qword [rbp + 0x18]
lea rax, [rcx + r8]
mov qword [rsp + 0x40], rax
cmp rax, qword [rbp + 0x10]
ja 0x14000c7bb
cmp r14d, 2
jne 0x14000c6ad
movzx eax, word [rsp + 0x4e8]
mov word [rcx], ax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x18], rax
mov rax, qword [rsp + 0x38]
add dword [rax + 0x20], r14d
movzx ecx, byte [rsp + 0x97]
mov rbp, rcx
test cl, cl
jns 0x14000c4d8
mov rbp, qword [rsp + 0x88]
mov rax, qword [rsi + 0x118]
cmp rbp, rax
jb 0x14000c826
test cl, cl
jns 0x14000c4f4
mov rbx, qword [rsp + 0x80]
sub rbp, rax
je 0x14000c691
cmp rbp, 0xfffffffffffffff0
jae 0x14000c829
add rbx, rax
cmp rbp, 0x16
ja 0x14000c5f8
mov byte [rsp + 0xf7], bpl
mov r14, qword [rsp + 0x48]
mov rcx, r14
mov rdx, rbx
mov r8, rbp
call fcn.14007f530
mov byte [r14 + rbp], 0
lea rcx, [rsp + 0x98]
lea rdx, [rsp + 0xe0]
call fcn.1400f61f0
mov rbx, rax
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x10], 0
jne 0x14000c703
lea rax, [rsp + 0x4e8]
mov qword [rax], r12
mov qword [rax + 7], r12
mov byte [rax], 0x10
cmp rbx, 0x80
jae 0x14000c660
mov rbp, rax
mov rdx, rbx
lea rcx, [rsp + 0x4e9]
mov byte [rcx], dl
sub rbp, rax
add rbp, 2
mov rax, qword [rsp + 0x38]
mov rbx, qword [rax]
mov r8d, ebp
mov rcx, qword [rbx + 0x18]
lea r14, [rcx + r8]
cmp r14, qword [rbx + 0x10]
ja 0x14000c7d0
cmp ebp, 2
jne 0x14000c6c2
movzx eax, word [rsp + 0x4e8]
mov word [rcx], ax
mov qword [rbx + 0x18], r14
mov rax, qword [rsp + 0x38]
add dword [rax + 0x20], ebp
cmp byte [rsp + 0xf7], 0
jns 0x14000c5e6
mov rcx, qword [rsp + 0xe0]
call fcn.14007a98c
lea rcx, [rsp + 0x98]
call fcn.14003d09e
jmp 0x14000c340
lea r14, [rbp + 0x10]
and r14, 0xfffffffffffffff0
mov rcx, r14
call fcn.14007a994
mov qword [rsp + 0x48], rax
mov qword [rsp + 0xe0], rax
bts r14, 0x3f
mov qword [rsp + 0xf0], r14
mov qword [rsp + 0xe8], rbp
jmp 0x14000c51c
mov ecx, ebp
or cl, 0x80
lea rax, [rsp + 0x4ea]
mov byte [rax - 1], cl
mov rcx, rbp
shr rcx, 7
cmp rbp, 0x4000
jae 0x14000c741
lea r14, [rsp + 0x4e9]
jmp 0x14000c467
mov edx, ebx
or dl, 0x80
lea rcx, [rsp + 0x4ea]
mov byte [rcx - 1], dl
mov rdx, rbx
shr rdx, 7
cmp rbx, 0x4000
jae 0x14000c764
lea rbp, [rsp + 0x4e9]
jmp 0x14000c589
xorps xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
mov qword [rsp + 0xf0], 0
jmp 0x14000c534
cmp r14d, 3
jne 0x14000c712
mov al, byte [rsp + 0x4ea]
mov byte [rcx + 2], al
jmp 0x14000c4a4
cmp ebp, 3
jne 0x14000c72a
mov al, byte [rsp + 0x4ea]
mov byte [rcx + 2], al
jmp 0x14000c5b8
mov rcx, qword [rsp + 0x40]
sub rcx, 0xffffffffffffff80
lea r8, [rsp + 0xc8]
mov rdx, rbp
call fcn.14006e010
jmp 0x14000c423
mov rcx, qword [rsp + 0x38]
call fcn.14006e21c
jmp 0x14000c433
mov rcx, qword [rsp + 0x38]
call fcn.14006e21c
jmp 0x14000c55c
cmp r14d, 6
je 0x14000c787
lea rdx, [rsp + 0x4e8]
call fcn.14007f530
jmp 0x14000c4af
cmp ebp, 6
je 0x14000c7a1
lea rdx, [rsp + 0x4e8]
call fcn.14007f530
jmp 0x14000c5c3
mov rbp, rcx
mov edx, ebp
or dl, 0x80
mov byte [rax], dl
shr rcx, 7
inc rax
cmp rbp, 0x3fff
ja 0x14000c741
lea r14, [rax - 1]
jmp 0x14000c467
mov rbp, rdx
mov ebx, ebp
or bl, 0x80
mov byte [rcx], bl
shr rdx, 7
inc rcx
cmp rbp, 0x3fff
ja 0x14000c764
lea rbp, [rcx - 1]
jmp 0x14000c589
movzx eax, word [rsp + 0x4ec]
mov word [rcx + 4], ax
mov eax, dword [rsp + 0x4e8]
mov dword [rcx], eax
jmp 0x14000c4af
movzx eax, word [rsp + 0x4ec]
mov word [rcx + 4], ax
mov eax, dword [rsp + 0x4e8]
mov dword [rcx], eax
jmp 0x14000c5c3
lea rdx, [rsp + 0x4e8]
mov rcx, rbp
call fcn.140043d1a
jmp 0x14000c4b8
lea rdx, [rsp + 0x4e8]
mov rcx, rbx
call fcn.140043d1a
jmp 0x14000c5c7
call fcn.1400d9f80
lea rax, [rsp + 0xe0]
lea rcx, [rsp + 0xc8]
mov qword [rcx], rax
lea rdx, [rsp + 0xb0]
mov qword [rdx], rcx
lea rcx, [0x140174d10]
lea r8, [0x140079e00]
call fcn.140048694
jmp 0x14000bf7e
int3
int3
int3
lea rcx, [rsp + 0xe0]
call fcn.1400da168
int3