Function at 0x14011b830
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, 0x4a8
mov rsi, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rax, [0x140272288]
mov qword [rcx], rax
lea rbx, [rcx + 0x10]
lea rdi, [rcx + 0x18]
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call fcn.140039eca
movzx r12d, byte [rsp + 0xb7]
test r12b, r12b
jns 0x14011b89d
mov rcx, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
call fcn.1402021a8
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 4]
add rcx, rbx
lea r14, [rsp + 0xa0]
mov rdx, r14
call fcn.1400ccf66
lea rdx, [0x1403e1470]
mov rcx, r14
call fcn.1400e2574
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [case.0x1400f45b0.0]
mov ebp, eax
mov rcx, r14
call fcn.1400cefbe
mov rcx, rbx
mov edx, ebp
call fcn.1400395de
mov rcx, rbx
call fcn.140038810
movabs r13, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], r13
movaps xmm0, xmmword [0x14026fe30]
movaps xmmword [rsp + 0x60], xmm0
lea rbx, [rsp + 0x60]
mov rcx, rdi
mov rdx, rbx
call fcn.140039eca
movzx ecx, byte [rsp + 0x77]
mov rax, rcx
test cl, cl
jns 0x14011b934
mov rax, qword [rsp + 0x68]
mov rdx, qword [rsi + 0x118]
cmp rax, rdx
jb 0x14011bf2a
test cl, cl
mov rcx, qword [rsp + 0x60]
cmovns rcx, rbx
add rcx, rdx
mov qword [rsp + 0x50], rcx
sub rax, rdx
mov qword [rsp + 0x58], rax
js 0x14011bf2d
lea r15, [rsp + 0x88]
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.140050a90
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0x84], eax
mov qword [rsp + 0x78], rcx
test byte [0x1403af1a0], 0x19
jne 0x14011b9b1
cmp byte [rsp + 0x9f], 0
js 0x14011b9f4
cmp dword [rsi + 8], 3
je 0x14011ba0b
jmp 0x14011bb2b
lea rax, [rsp + 0x78]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x84]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], r15
lea rcx, str.LogMessage
lea rdx, [rsp + 0xa0]
call fcn.14011c4b0
cmp byte [rsp + 0x9f], 0
jns 0x14011b9a6
mov rcx, qword [rsp + 0x88]
call fcn.1402021a8
cmp dword [rsi + 8], 3
jne 0x14011bb2b
cmp byte [0x1403e29c4], 0
jne 0x14011bb2b
mov byte [0x1403e29c4], 1
mov eax, dword [0x1403e29d0]
mov ecx, dword [0x1403bcfc0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14011bee8
mov rcx, rdi
mov rdx, r14
call fcn.140039eca
cmp byte [rsp + 0xb7], 0
jns 0x14011ba61
mov r14, qword [rsp + 0xa0]
add r14, qword [rsi + 0x118]
mov ebp, dword [rsi + 0x128]
mov r15, qword [rsi + 0x120]
test r15, r15
je 0x14011ba94
mov rcx, r15
mov edx, 0x5c
call fcn.1402059c8
lea r8, [rax + 1]
test rax, rax
cmove r8, r15
jmp 0x14011ba97
xor r8d, r8d
mov qword [rsp + 0x20], r14
lea rdx, str._s:_d:__s
lea r14, [rsp + 0x88]
mov rcx, r14
mov r9d, ebp
call fcn.140105ed0
cmp byte [rsp + 0xb7], 0
jns 0x14011bacd
mov rcx, qword [rsp + 0xa0]
call fcn.1402021a8
movzx eax, byte [rsp + 0x9f]
test al, al
cmovs r14, qword [rsp + 0x88]
cmovs rax, qword [rsp + 0x90]
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0xa8], rax
mov rcx, qword [0x1403e29c8]
lea rdx, [rsp + 0xa0]
call fcn.140161880
cmp byte [rsp + 0x9f], 0
jns 0x14011bb24
mov rcx, qword [rsp + 0x88]
call fcn.1402021a8
mov byte [0x1403e29c4], 0
mov rax, qword [0x1403e2988]
test rax, rax
je 0x14011bb62
mov r9, qword [rsi + 0x118]
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov ecx, dword [rsi + 8]
mov qword [rsp + 0x20], rbx
call qword [case.0x1400f45b0.0]
test al, al
jne 0x14011bde6
mov eax, dword [reloc.WS2_32.dll_accept]
test al, 2
je 0x14011bb87
cmp byte [rsp + 0x77], 0
jns 0x14011bb78
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [reloc.WS2_32.dll_accept]
test al, 4
jne 0x14011bb96
cmp dword [rsi + 8], 2
jl 0x14011bbe8
cmp eax, 1
ja 0x14011bbe8
movzx ebx, byte [rsp + 0x77]
test bl, bl
cmovs rbx, qword [rsp + 0x68]
lea r14, [rsp + 0x60]
cmovs r14, qword [rsp + 0x60]
test rbx, rbx
je 0x14011bbe8
xor r15d, r15d
nop word cs:[rax + rax]
mov r8d, ebx
sub r8d, r15d
lea rdx, [r14 + r15]
mov ecx, 2
call fcn.140222fac
test eax, eax
js 0x14011bbe2
mov eax, eax
add r15, rax
cmp r15, rbx
jb 0x14011bbc0
mov eax, dword [reloc.WS2_32.dll_accept]
test al, 1
je 0x14011bc38
call fcn.14011afa0
test al, al
je 0x14011bc38
mov dword [rsp + 0xa0], 0xaaaaaaaa
movzx r8d, byte [rsp + 0x77]
test r8b, r8b
cmovs r8d, dword [rsp + 0x68]
lea rdx, [rsp + 0x60]
cmovs rdx, qword [rsp + 0x60]
mov rcx, qword [0x1403e2990]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
jne 0x14011bde6
lea rbx, [rsp + 0xa0]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.1402055c0
cmp byte [rsp + 0x77], 0
jns 0x14011bc68
mov rdx, qword [rsp + 0x60]
jmp 0x14011bc6d
lea rdx, [rsp + 0x60]
mov r8d, 0x400
mov rcx, rbx
call fcn.1401073a0
mov rcx, rbx
call sym.nacl64.exe__ovly_debug_event
mov eax, dword [0x1403e29c0]
mov ecx, dword [0x1403bcfc0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14011be72
mov rax, qword [0x1403e29b0]
cmp rax, qword [0x1403e29b8]
je 0x14011bf30
mov qword [rsp + 0x88], r13
mov eax, dword [0x1403e29c0]
mov ecx, dword [0x1403bcfc0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14011bead
mov rdx, qword [0x1403e29b8]
test rdx, rdx
mov rax, qword [0x1403e29a8]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x14011bf33
shl rdx, 3
add rdx, qword [0x1403e29a0]
lea rcx, [rsp + 0x88]
call fcn.14011f030
mov rbx, qword [rsp + 0x88]
test rbx, rbx
je 0x14011bdd9
cmp byte [rsp + 0x77], 0
jns 0x14011bd41
mov r14, qword [rsp + 0x60]
jmp 0x14011bd46
lea r14, [rsp + 0x60]
mov rcx, r14
add rcx, r12
mov qword [rsp + 0x40], rcx
je 0x14011bf36
call fcn.14022dda0
mov qword [rsp + 0x48], rax
mov rax, qword [rsi + 0x118]
add r14, rax
mov qword [rsp + 0x30], r14
sub r12, rax
mov qword [rsp + 0x38], r12
js 0x14011bf39
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov eax, 1
lock xadd dword [rbx], eax
test eax, eax
jle 0x14011bf3c
cmp eax, 0x7fffffff
je 0x14011bf3f
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
mov rcx, rbx
call qword [case.0x1400f45b0.0]
lock dec dword [rbx]
jne 0x14011bdd9
mov rcx, rbx
call fcn.14011ef80
lea rcx, [rsp + 0x88]
call fcn.14011f0b0
cmp byte [rsp + 0x77], 0
jns 0x14011bdf7
mov rcx, qword [rsp + 0x60]
call fcn.1402021a8
lea rcx, [rsi + 0x12c]
call fcn.140175f00
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x140271dc8]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x140271de0]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x14011be31
mov rcx, qword [rsi + 0x58]
call fcn.1402021a8
sub rsi, 0xffffffffffffff80
mov rcx, rdi
call fcn.1400384e6
mov rcx, rdi
call sym.nacl64.exe__ovly_debug_event
mov rcx, rsi
call fcn.1400384e0
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140203460
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1403e29c0]
call fcn.1402021ec
cmp dword [0x1403e29c0], 0xffffffff
jne 0x14011bca8
xorps xmm0, xmm0
movups xmmword [0x1403e29b0], xmm0
movups xmmword [0x1403e29a0], xmm0
lea rcx, [0x1403e29c0]
call fcn.1402022a0
jmp 0x14011bca8
lea rcx, [0x1403e29c0]
call fcn.1402021ec
cmp dword [0x1403e29c0], 0xffffffff
jne 0x14011bce9
xorps xmm0, xmm0
movups xmmword [0x1403e29b0], xmm0
movups xmmword [0x1403e29a0], xmm0
lea rcx, [0x1403e29c0]
call fcn.1402022a0
jmp 0x14011bce9
lea rcx, [0x1403e29d0]
call fcn.1402021ec
cmp dword [0x1403e29d0], 0xffffffff
jne 0x14011ba44
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140161850
mov qword [0x1403e29c8], rax
lea rcx, [0x1403e29d0]
call fcn.1402022a0
jmp 0x14011ba44
int3
int3
int3
int3
int3
int3
int3
int3