Function at 0x1400ae810
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, 0x498
mov rsi, rcx
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rax, [0x1401ffd28]
mov qword [rcx], rax
lea r14, [rcx + 0x10]
lea rdi, [rcx + 0x18]
lea rbx, [rsp + 0x90]
mov rcx, rdi
mov rdx, rbx
call fcn.1400e1320
movzx ebx, byte [rbx + 0x17]
test bl, bl
jns 0x1400ae86d
mov rbx, qword [rsp + 0x98]
jns 0x1400ae87c
mov rcx, qword [rsp + 0x90]
call fcn.140151c70
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 4]
add rcx, r14
lea r15, [rsp + 0x90]
mov rdx, r15
call fcn.140103290
lea rdx, [0x140249610]
mov rcx, r15
call fcn.140103e40
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x14025e008]
mov ebp, eax
mov rcx, r15
call fcn.1401033f0
mov rcx, r14
mov edx, ebp
call fcn.140025a00
mov rcx, r14
call fcn.140024db0
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x10], r13
movaps xmm0, xmmword [0x1401fd270]
movaps xmmword [r14], xmm0
mov rcx, rdi
mov rdx, r14
call fcn.1400e1320
mov r8, qword [rsi + 0x118]
mov qword [rsp + 0x20], r15
lea r12, [rsp + 0x48]
mov rcx, r12
mov rdx, r14
mov r9, 0xffffffffffffffff
call fcn.140094b50
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0x8c], eax
mov qword [rsp + 0x80], rcx
test byte [0x14023b030], 0x19
jne 0x1400aeacc
cmp byte [rsp + 0x5f], 0
jns 0x1400ae95d
mov rcx, qword [rsp + 0x48]
call fcn.140151c70
cmp dword [rsi + 8], 3
je 0x1400aeb00
mov rax, qword [0x14024ab08]
test rax, rax
je 0x1400ae99a
mov r9, qword [rsi + 0x118]
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov ecx, dword [rsi + 8]
mov qword [rsp + 0x20], r14
call qword [0x14025e008]
test al, al
jne 0x1400ae9d1
mov eax, dword [reloc.WS2_32.dll_accept]
test al, 2
jne 0x1400aeaac
test al, 4
jne 0x1400aea5d
cmp eax, 1
ja 0x1400ae9bf
cmp dword [rsi + 8], 2
jge 0x1400aea5d
test al, 1
jne 0x1400aeb5f
cmp dword [rsi + 8], 3
je 0x1400aebb1
cmp byte [rsp + 0x77], 0
jns 0x1400ae9e2
mov rcx, qword [rsp + 0x60]
call fcn.140151c70
lea rcx, [rsi + 0x12c]
call fcn.14012deb0
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1401ff970]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x1401ff990]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x1400aea1c
mov rcx, qword [rsi + 0x58]
call fcn.140151c70
sub rsi, 0xffffffffffffff80
mov rcx, rdi
call fcn.1400e0bb0
mov rcx, rdi
call fcn.1400e1310
mov rcx, rsi
call fcn.1400e0ba0
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140152880
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x60]
movzx ecx, byte [r14 + 0x17]
mov r15d, ecx
and r15d, 0x7f
test cl, cl
cmovs r15, qword [r14 + 8]
cmovs r14, qword [r14]
test r15, r15
je 0x1400ae9bf
xor r12d, r12d
mov r8d, r15d
sub r8d, r12d
lea rdx, [r14 + r12]
mov ecx, 2
call fcn.14016fbf8
test eax, eax
jns 0x1400aec53
mov eax, dword [reloc.WS2_32.dll_accept]
jmp 0x1400ae9bf
cmp byte [rsp + 0x77], 0
jns 0x1400aeab8
mov r14, qword [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [reloc.WS2_32.dll_accept]
jmp 0x1400ae9a8
lea rax, [rsp + 0x80]
lea rdx, [rsp + 0x90]
mov qword [rdx], rax
lea rax, [rsp + 0x8c]
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], r12
lea rcx, str.LogMessage
call fcn.1401cf1f0
jmp 0x1400ae94c
cmp byte [0x14024ab54], 0
jne 0x1400ae967
mov byte [0x14024ab54], 1
mov eax, dword [0x14024ab60]
mov ecx, dword [0x14023c288]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400aed5c
mov rcx, rsi
mov rdx, r15
call fcn.1401cee20
movzx r8d, byte [rsp + 0xa7]
test r8b, r8b
js 0x1400aecde
and r8d, 0x7f
jmp 0x1400aecee
call fcn.1401ceac0
test al, al
je 0x1400ae9c7
lea r9, [rsp + 0x90]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x60]
movzx eax, byte [rdx + 0x17]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x14024ab20]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400ae9c7
lea r14, [rsp + 0x90]
mov r8d, 0x400
mov rcx, r14
mov dl, 0xaa
call fcn.140155860
cmp byte [rsp + 0x77], 0
jns 0x1400aebd7
mov rdx, qword [rsp + 0x60]
jmp 0x1400aebdc
lea rdx, [rsp + 0x60]
mov r8d, 0x400
mov rcx, r14
call fcn.140116a90
mov rcx, r14
call fcn.1400e1310
call fcn.1401ced40
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 0x18]
je 0x1400aed9e
mov qword [rsp + 0x48], r13
call fcn.1401ced40
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x18]
test rdx, rdx
cmove rdx, rcx
dec rdx
cmp rcx, rdx
jb 0x1400aeda1
shl rdx, 3
add rdx, qword [rax]
lea r14, [rsp + 0x48]
mov rcx, r14
call fcn.14011fad0
cmp qword [r14], 0
jne 0x1400aec66
lea rcx, [rsp + 0x48]
call fcn.14011fb00
jmp 0x1400ae9d1
mov eax, eax
add r12, rax
cmp r12, r15
jb 0x1400aea85
jmp 0x1400aeaa1
cmp byte [rsp + 0x77], 0
js 0x1400aec74
lea r14, [rsp + 0x60]
jmp 0x1400aec79
mov r14, qword [rsp + 0x60]
mov rcx, r14
add rcx, rbx
mov qword [rsp + 0x38], rcx
je 0x1400aed30
call fcn.14017aa10
lea r12, [rsp + 0x38]
mov qword [r12 + 8], rax
mov rax, qword [rsi + 0x118]
sub rbx, rax
add r14, rax
lea r15, [rsp + 0x28]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1400e2390
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov qword [rsp + 0x20], r12
lea rcx, [rsp + 0x48]
mov r9, r15
call fcn.1401cedb0
jmp 0x1400aec44
mov r8, qword [rsp + 0x98]
mov r15, qword [rsp + 0x90]
lea r12, [rsp + 0x48]
mov rcx, r12
mov rdx, r15
call fcn.1400e2390
mov rcx, qword [0x14024ab58]
mov rdx, r12
call fcn.1400bad30
cmp byte [rsp + 0xa7], 0
jns 0x1400aed24
mov rcx, qword [rsp + 0x90]
call fcn.140151c70
mov byte [0x14024ab54], 0
jmp 0x1400ae967
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.140193a70
lea rcx, [0x14024ab60]
call fcn.140151da0
cmp dword [0x14024ab60], 0xffffffff
jne 0x1400aeb39
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.1400bad00
mov qword [0x14024ab58], rax
lea rcx, [0x14024ab60]
call fcn.140151e38
jmp 0x1400aeb39
int3
int3