Function at 0x14021a460
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rbx, rcx
xor edi, edi
mov esi, edi
mov dword [rbp - 0x29], edi
lea rcx, [rbp - 1]
call fcn.14021a750
nop
lea rdx, str.cfgs
cmp qword [reloc.WS2_32.dll_ntohs], 0xf
cmova rdx, qword [str.cfgs]
mov r8, qword [reloc.WS2_32.dll_getpeername]
mov rcx, rax
call fcn.140049bb0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
or esi, 2
or esi, 1
mov dword [rbp - 0x29], esi
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x14021a525
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14021a520
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14021a520
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140183660
movdqa xmm0, xmmword [0x14025d9d0]
movdqu xmmword [rbp + 0xf], xmm0
mov byte [rbp - 1], 0
mov rcx, qword [rbx + 0x10]
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14021a547
mov rax, qword [rbx]
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rcx
call fcn.140182ae0
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x39], xmm0
lea r8, [rbp - 0x39]
mov edx, eax
lea rcx, [rbp - 0x21]
call fcn.1400552e0
or esi, 0xc
mov dword [rbp - 0x29], esi
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rcx, qword [rbp - 0x21]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp + 0x1f]
call fcn.140182ea8
mov r8d, eax
test eax, eax
jne 0x14021a5e6
mov edx, dword [rbp + 0x2f]
test dl, 1
mov ecx, 0x1ff
mov eax, 0x16d
cmovne ecx, eax
mov dword [rbp - 0x35], ecx
mov ecx, edx
shr ecx, 0xa
test cl, 1
je 0x14021a5db
mov eax, dword [rbp + 0x33]
cmp eax, 0xa000000c
jne 0x14021a5cd
mov edx, 4
jmp 0x14021a608
cmp eax, 0xa0000003
jne 0x14021a5db
mov edx, 0xa
jmp 0x14021a608
shr edx, 4
and edx, 1
or edx, 2
jmp 0x14021a608
mov dword [rbp - 0x35], 0xffff
sub eax, 2
je 0x14021a601
sub eax, 1
je 0x14021a601
sub eax, 0x32
je 0x14021a601
cmp eax, 0x46
jne 0x14021a606
mov edi, 1
mov edx, edi
mov dword [rbp - 0x39], r8d
lea rax, [0x1404ab890]
mov qword [rbp - 0x31], rax
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x39], xmm0
test edx, edx
je 0x14021a6f5
cmp edx, 1
sete dil
lea rcx, [rbp - 0x21]
call fcn.140068bd0
test dil, dil
je 0x14021a702
mov rcx, qword [rbx + 0x10]
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14021a652
mov rax, qword [rbx]
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rcx
call fcn.140182ae0
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x39], xmm0
lea r8, [rbp - 0x39]
mov edx, eax
lea rcx, [rbp - 0x21]
call fcn.1400552e0
or esi, 0x30
mov dword [rbp - 0x29], esi
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rcx, qword [rbp - 0x21]
call fcn.140182d40
mov rdi, rax
shr rax, 0x20
test eax, eax
jne 0x14021a718
lea rcx, [rbp - 0x21]
call fcn.140068bd0
test dil, dil
jne 0x14021a702
mov r8, rbx
lea rdx, str.Failed_to_create_a_Folder_at:
lea rcx, [rbp + 0x1f]
call fcn.140049cc0
mov rdx, rax
mov rcx, rbx
call fcn.140066e50
lea rcx, [rbp + 0x1f]
call fcn.140049860
mov rcx, rbx
call fcn.140049850
mov rdx, rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov dil, 1
test r8d, r8d
jne 0x14021a72f
jmp 0x14021a62f
mov rax, rbx
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
shr rdi, 0x20
lea r8, [rbp - 0x21]
mov edx, edi
lea rcx, str.create_directory
call fcn.140055e50
nop
lea r8, [rbp - 0x21]
lea rdx, [rbp - 0x39]
lea rcx, [0x14025a4e8]
call fcn.140055ec0
int3