Function at 0x140049aa0
Capabilities:
Get common file path
Set console window title
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x14015d080]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
xor r14d, r14d
mov qword [0x14015f648], r14
mov byte [0x14015f650], r14b
mov qword [0x14015f3a0], r14
mov word [0x14015f3a8], r14w
mov byte [0x14015f3aa], r14b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x14015f660], xmm0
movups xmmword [0x14015f670], xmm0
movups xmmword [0x14015f680], xmm0
movups xmmword [0x14015f690], xmm0
mov byte [0x14015f6a0], al
mov dword [0x14015f398], eax
movups xmmword [0x14015f3b0], xmm0
mov qword [0x14015f3c0], rax
mov dword [0x14015f3c8], eax
mov byte [0x14015f3cc], al
movzx eax, word [0x140135990]
mov word [rsp + 0x60], ax
cmp byte [0x140135991], r14b
je 0x140049b66
mov byte [rsp + 0x60], reloc.WLDAP32.dll_Ordinal_32
xor byte [rsp + 0x61], 0x37
movups xmmword [rbp + 0x280], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x290], xmm1
lea rax, [rsp + 0x60]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], r14b
jne 0x140049b87
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x280]
call fcn.1400026d0
nop
lea rcx, [rbp + 0x280]
cmp qword [rbp + 0x298], 0xf
cmova rcx, qword [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [0x14015f3d0]
call fcn.1400c6b10
cmp byte [0x14015f5e0], 0
jne 0x140049c48
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x60]
call fcn.14004a2b0
movzx edx, byte [rax + 0xa]
test dl, dl
je 0x140049c1a
xor byte [rax], 0x36
xor byte [rax + 1], 0x37
xor byte [rax + 2], 0x38
xor byte [rax + 3], 0x39
xor byte [rax + 4], 0x3a
xor byte [rax + 5], 0x3b
xor byte [rax + 6], 0x3c
xor byte [rax + 7], 0x3d
xor byte [rax + 8], 0x3e
xor byte [rax + 9], 0x3f
xor dl, 0x40
mov byte [rax + 0xa], dl
mov rdx, rax
call fcn.14004bc10
mov rcx, rax
lea rdx, [0x14015f5e8]
call fcn.14004bde0
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x140049cee
movups xmmword [rbp + 0x260], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x270], xmm1
lea rax, [rbp + 0x20]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140049c84
mov r8, rbx
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x260]
call fcn.14004bf10
nop
lea rdx, [rbp + 0x260]
cmp qword [rbp + 0x278], 7
cmova rdx, qword [rbp + 0x260]
mov rax, qword [rbp + 0x270]
lea r8, [rdx + rax*2]
lea rdx, [rbp + 0x260]
cmova rdx, qword [rbp + 0x260]
lea rcx, [rbp + 0x240]
call fcn.14004ba00
nop
lea rcx, [rbp + 0x260]
call fcn.14004b750
jmp 0x140049d1a
movups xmmword [rbp + 0x240], xmm0
mov qword [rbp + 0x250], r14
mov qword [rbp + 0x258], r14
xor r8d, r8d
lea rdx, [0x14012b978]
lea rcx, [rbp + 0x240]
call fcn.1400026d0
nop
movabs rsi, 0x7fffffffffffffff
mov rax, rsi
mov rcx, qword [rbp + 0x250]
sub rax, rcx
cmp rax, 9
jb 0x14004a279
lea r9, [rbp + 0x240]
cmp qword [rbp + 0x258], 0xf
cmova r9, qword [rbp + 0x240]
mov qword [rsp + 0x30], 9
lea r15, str.kayflock
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.14004c710
nop
mov rdi, qword [rbp - 0x80]
lea rbx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rbx, qword [rsp + 0x70]
call fcn.140116dc4
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rdi
lea r8, [rbp - 0x70]
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.140048ed0
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140049600
movsd xmm0, qword [rax]
movsd qword [rsp + 0x60], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp + 0x230], ecx
lea r12, [0x14015d250]
mov qword [rbp + 0x238], r12
movaps xmm0, xmmword [rbp + 0x230]
movdqa xmmword [rbp + 0x230], xmm0
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14004a21e
cmp eax, 1
sete bl
lea rcx, [rbp - 0x50]
call fcn.14004b750
nop
lea rcx, [rsp + 0x70]
call fcn.140005d70
test bl, bl
je 0x140049ecf
mov rax, rsi
mov rcx, qword [rbp + 0x250]
sub rax, rcx
cmp rax, 9
jb 0x14004a27f
lea r9, [rbp + 0x240]
cmp qword [rbp + 0x258], 0xf
cmova r9, qword [rbp + 0x240]
mov qword [rsp + 0x30], 9
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.14004c710
nop
mov rdi, qword [rbp - 0x80]
lea rbx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rbx, qword [rsp + 0x70]
call fcn.140116dc4
mov qword [rbp + 0x230], rbx
mov qword [rbp + 0x238], rdi
lea r8, [rbp + 0x230]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.140048ed0
nop
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rcx, qword [rbp - 0x70]
call fcn.140117024
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14004a285
lea rcx, [rbp - 0x70]
call fcn.14004b750
nop
lea rcx, [rsp + 0x70]
call fcn.140005d70
mov rax, rsi
mov rcx, qword [rbp + 0x250]
sub rax, rcx
cmp rax, 0x11
jb 0x14004a29a
lea r9, [rbp + 0x240]
cmp qword [rbp + 0x258], 0xf
cmova r9, qword [rbp + 0x240]
mov qword [rsp + 0x30], reloc.WS2_32.dll_recvfrom
lea r15, str.kayflockconfigs
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.14004c710
nop
mov rdi, qword [rbp - 0x80]
lea rbx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rbx, qword [rsp + 0x70]
call fcn.140116dc4
mov qword [rbp + 0x230], rbx
mov qword [rbp + 0x238], rdi
lea r8, [rbp + 0x230]
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.140048ed0
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140049600
movsd xmm0, qword [rax]
movsd qword [rsp + 0x60], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp + 0x230], ecx
mov qword [rbp + 0x238], r12
movaps xmm0, xmmword [rbp + 0x230]
movdqa xmmword [rbp + 0x230], xmm0
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14004a229
cmp eax, 1
sete bl
lea rcx, [rbp - 0x50]
call fcn.14004b750
nop
lea rcx, [rsp + 0x70]
call fcn.140005d70
test bl, bl
je 0x14004a079
mov rax, qword [rbp + 0x250]
sub rsi, rax
cmp rsi, 0x11
jb 0x14004a2a0
lea r9, [rbp + 0x240]
cmp qword [rbp + 0x258], 0xf
cmova r9, qword [rbp + 0x240]
mov qword [rsp + 0x30], reloc.WS2_32.dll_recvfrom
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x70]
call fcn.14004c710
nop
mov rdi, qword [rbp - 0x80]
lea rbx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rbx, qword [rsp + 0x70]
call fcn.140116dc4
mov qword [rbp + 0x230], rbx
mov qword [rbp + 0x238], rdi
lea r8, [rbp + 0x230]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.140048ed0
nop
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rcx, qword [rbp - 0x70]
call fcn.140117024
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14004a234
lea rcx, [rbp - 0x70]
call fcn.14004b750
nop
lea rcx, [rsp + 0x70]
call fcn.140005d70
call fcn.1400536f0
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rbx, rax
xor eax, eax
mov dword [rbp + 0x24], eax
mov dword [rbp + 0x3c], eax
xor edx, edx
mov r8d, 0x1df
lea rcx, [rbp + 0x51]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x20], 0x210
mov qword [rbp + 0x28], rbx
mov dword [rbp + 0x30], 1
mov dword [rbp + 0x34], 7
mov dword [rbp + 0x38], 0x400
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadIconA]
mov qword [rbp + 0x40], rax
movsd xmm0, qword [0x140135c70]
movsd qword [rbp + 0x48], xmm0
movzx eax, byte [0x140135c78]
mov byte [rbp + 0x50], al
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x20], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp], xmm1
lea rax, [0x1400499e0]
mov qword [rbp - 0x28], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp - 0x18], rax
lea rax, str.kayflockWindowClass
mov qword [rbp + 0x10], rax
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_RegisterClassA]
mov qword [rsp + 0x58], r14
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jle 0x14004a1d3
nop word [rax + rax]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jg 0x14004a1a0
lea rcx, [rbp + 0x240]
call fcn.140005d70
nop
lea rcx, [rbp + 0x280]
call fcn.140005d70
xor eax, eax
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140117940
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov bl, 1
test ecx, ecx
jne 0x14004a249
jmp 0x140049df7
mov bl, 1
test ecx, ecx
jne 0x14004a261
jmp 0x140049fa4
shr rdx, 0x20
lea r8, [rbp - 0x70]
lea rcx, str.create_directory
call fcn.140049530
nop
lea r8, [rbp - 0x50]
lea rdx, [rbp + 0x230]
lea rcx, str.exists
call fcn.1400495a0
nop
lea r8, [rbp - 0x50]
lea rdx, [rbp + 0x230]
lea rcx, str.exists
call fcn.1400495a0
nop
call fcn.140002650
int3
call fcn.140002650
nop
shr rdx, 0x20
lea r8, [rbp - 0x70]
lea rcx, str.create_directory
call fcn.140049530
nop
call fcn.140002650
int3
call fcn.140002650
int3