Function at 0x14020f6d0
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 [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rax, [0x1403bb4f0]
mov qword [rcx], rax
lea r14, [rcx + 0x10]
lea rdi, [rcx + 0x18]
lea rbx, [rsp + 0x90]
mov rcx, rdi
mov rdx, rbx
call fcn.1402e6ce0
movzx r12d, byte [rbx + 0x17]
test r12b, r12b
jns 0x14020f72f
mov r12, qword [rsp + 0x98]
jns 0x14020f73e
mov rcx, qword [rsp + 0x90]
call fcn.140318474
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 4]
add rcx, r14
lea rbx, [rsp + 0x90]
mov rdx, rbx
call fcn.1402ee790
lea rdx, [0x1403f63a0]
mov rcx, rbx
call fcn.1402ef580
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [case.0x140318756.0]
mov ebp, eax
mov rcx, rbx
call fcn.1402ee8a0
mov rcx, r14
mov edx, ebp
call fcn.1401f2080
mov rcx, r14
call fcn.1401f11f0
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x10], r13
movaps xmm0, xmmword [0x1403bc150]
movaps xmmword [r14], xmm0
mov rcx, rdi
mov rdx, r14
call fcn.1402e6ce0
movzx eax, byte [r14 + 0x17]
mov r8, rax
test al, al
jns 0x14020f7d3
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsi + 0x118]
sub r8, rcx
jb 0x14020f98d
js 0x14020f990
test al, al
jns 0x14020f7f2
mov r14, qword [rsp + 0x60]
add r14, rcx
lea r15, [rsp + 0x48]
mov rcx, r15
mov rdx, r14
call fcn.140350ec0
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0x8c], eax
mov qword [rsp + 0x80], rcx
test byte [0x1403e6570], 0x19
jne 0x14020f993
cmp byte [rsp + 0x5f], 0
jns 0x14020f83f
mov rcx, qword [rsp + 0x48]
call fcn.140318474
cmp dword [rsi + 8], 3
je 0x14020f9c7
mov rax, qword [0x1403f76a0]
test rax, rax
je 0x14020f881
mov r9, qword [rsi + 0x118]
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov ecx, dword [rsi + 8]
lea r10, [rsp + 0x60]
mov qword [rsp + 0x20], r10
call qword [case.0x140318756.0]
test al, al
jne 0x14020f8b8
mov eax, dword [reloc.WS2_32.dll_accept]
test al, 2
jne 0x14020fa62
test al, 4
jne 0x14020f944
cmp dword [rsi + 8], 2
jl 0x14020f8a6
cmp eax, 1
jbe 0x14020f944
test al, 1
jne 0x14020fa70
cmp dword [rsi + 8], 3
je 0x14020fabd
cmp byte [rsp + 0x77], 0
jns 0x14020f8c9
mov rcx, qword [rsp + 0x60]
call fcn.140318474
lea rcx, [rsi + 0x12c]
call fcn.140308aa0
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1403bb410]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x1403bb420]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x14020f903
mov rcx, qword [rsi + 0x58]
call fcn.140318474
sub rsi, 0xffffffffffffff80
mov rcx, rdi
call fcn.1402e65f0
mov rcx, rdi
call fcn.1402e6cd0
mov rcx, rsi
call fcn.1402e65e0
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140319a10
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x60]
movzx r14d, byte [rbx + 0x17]
test r14b, r14b
cmovs r14, qword [rbx + 8]
cmovs rbx, qword [rbx]
test r14, r14
je 0x14020f8a6
xor r15d, r15d
mov r8d, r14d
sub r8d, r15d
lea rdx, [rbx + r15]
mov ecx, 2
call fcn.140331a74
test eax, eax
jns 0x14020fbec
mov eax, dword [reloc.WS2_32.dll_accept]
jmp 0x14020f8a6
int3
int3
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], r15
lea rcx, str.LogMessage
call fcn.14020fcb0
jmp 0x14020f82e
cmp byte [0x1403f76ec], 0
jne 0x14020f849
mov byte [0x1403f76ec], 1
mov eax, dword [0x1403f76f8]
mov ecx, dword [0x1403f3d34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14020fbff
mov rcx, rsi
mov rdx, rbx
call fcn.14036e530
movzx eax, byte [rsp + 0xa7]
test al, al
cmovs rbx, qword [rsp + 0x90]
cmovs rax, qword [rsp + 0x98]
lea rdx, [rsp + 0x48]
mov qword [rdx], rbx
mov qword [rdx + 8], rax
mov rcx, qword [0x1403f76f0]
call fcn.1403058d0
cmp byte [rsp + 0xa7], 0
jns 0x14020fa56
mov rcx, qword [rsp + 0x90]
call fcn.140318474
mov byte [0x1403f76ec], 0
jmp 0x14020f849
cmp byte [rsp + 0x77], 0
jns 0x14020fae3
mov rcx, qword [rsp + 0x60]
jmp 0x14020fae8
call fcn.14020eea0
test al, al
je 0x14020f8ae
lea r9, [rsp + 0x90]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x60]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x1403f76b8]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14020f8ae
lea rbx, [rsp + 0x90]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.14031b780
cmp byte [rsp + 0x77], 0
jns 0x14020faf9
mov rdx, qword [rsp + 0x60]
jmp 0x14020fafe
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [reloc.WS2_32.dll_accept]
jmp 0x14020f88f
lea rdx, [rsp + 0x60]
mov r8d, 0x400
mov rcx, rbx
call fcn.1402f76d0
mov rcx, rbx
call fcn.1402e6cd0
call fcn.14020f170
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 0x18]
je 0x14020fc41
mov qword [rsp + 0x48], r13
call fcn.14020f170
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x18]
test rdx, rdx
cmove rdx, rcx
dec rdx
cmp rcx, rdx
jb 0x14020fc44
shl rdx, 3
add rdx, qword [rax]
lea rbx, [rsp + 0x48]
mov rcx, rbx
call fcn.1402fe4a0
cmp qword [rbx], 0
jne 0x14020fb75
lea rcx, [rsp + 0x48]
call fcn.1402fe4d0
jmp 0x14020f8b8
cmp byte [rsp + 0x77], 0
jns 0x14020fb83
mov rbx, qword [rsp + 0x60]
jmp 0x14020fb88
lea rbx, [rsp + 0x60]
mov rcx, rbx
add rcx, r12
mov qword [rsp + 0x38], rcx
je 0x14020fc47
call fcn.14033c590
mov qword [rsp + 0x40], rax
mov rax, qword [rsi + 0x118]
add rbx, rax
mov qword [rsp + 0x28], rbx
sub r12, rax
mov qword [rsp + 0x30], r12
js 0x14020fc4a
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x48]
lea r9, [rsp + 0x28]
call fcn.14036e4c0
jmp 0x14020fb66
mov eax, eax
add r15, rax
cmp r14, r15
ja 0x14020f966
jmp 0x14020f982
lea rcx, [0x1403f76f8]
call fcn.140318620
cmp dword [0x1403f76f8], 0xffffffff
jne 0x14020fa00
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.1402195f0
mov qword [0x1403f76f0], rax
lea rcx, [0x1403f76f8]
call fcn.1403186b8
jmp 0x14020fa00
int3
int3
int3
int3