Function at 0x14002ba70
Capabilities:
Check mutex on windows
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov rax, qword [0x140063010]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov r15, r8
xor r13d, r13d
mov esi, r13d
mov dword [rbp - 0x68], r13d
mov ecx, dword [0x140065724]
mov eax, dword [0x140065720]
lea r14, str.wWinMain
add ecx, eax
je 0x14002bb2e
lea esi, [r13 + 1]
mov dword [rsp + 0x38], r13d
call fcn.140028b70
mov qword [rsp + 0x30], rax
lock inc dword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
test rax, rax
jne 0x14002bafd
call fcn.140028b70
mov qword [rsp + 0x30], rax
lock inc dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov dword [rbp - 0x80], 0x10
lea rax, str.Starting_the_ui_app
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [0x140000000]
lea r8, [rbp - 0x80]
movsx edx, r13w
call fcn.140028cf0
mov rdi, 0xffffffffffffffff
test sil, 1
je 0x14002bb67
and esi, 0xfffffffe
mov qword [rsp + 0x30], r13
mov eax, edi
lock xadd dword [rsp + 0x38], eax
cmp eax, 1
js 0x14002bb62
call fcn.140028730
mov eax, edi
lock xadd dword [rsp + 0x38], eax
cmp eax, 1
jns 0x14002bb50
lock inc dword [rsp + 0x38]
lea rcx, [rbp - 0x60]
call fcn.14002fd00
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002bb99
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rbp + 0x1d0], r13
mov qword [rbp + 0x1e0], r13
mov qword [rbp + 0x1e8], 7
mov qword [rbp + 0x1f0], r13
mov qword [rbp + 0x200], r13
mov qword [rbp + 0x208], 7
mov qword [rbp + 0x210], r13
mov qword [rbp + 0x220], r13
mov qword [rbp + 0x228], 7
mov byte [rbp + 0x270], r13b
mov byte [rbp + 0x278], r13b
mov dword [rbp + 0x280], r13d
lea rcx, [rbp + 0x1d0]
call fcn.14002b470
mov dword [rbp + 0x280], eax
mov ecx, dword [0x140065724]
test eax, eax
mov eax, dword [0x140065720]
js 0x14002bcbf
add ecx, eax
je 0x14002bc84
or esi, 2
mov dword [rsp + 0x48], r13d
call fcn.140028b70
mov qword [rsp + 0x40], rax
lock inc dword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x14002bc53
call fcn.140028b70
mov qword [rsp + 0x40], rax
lock inc dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov dword [rbp - 0x7c], 0x10
lea rax, str.Crash_handler_enabled.
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [0x140000000]
lea r8, [rbp - 0x7c]
movsx edx, r13w
call fcn.140028cf0
test sil, 2
je 0x14002bd57
and esi, 0xfffffffd
mov qword [rsp + 0x40], r13
mov eax, edi
lock xadd dword [rsp + 0x48], eax
cmp eax, 1
js 0x14002bcb5
call fcn.140028730
mov eax, edi
lock xadd dword [rsp + 0x48], eax
cmp eax, 1
jns 0x14002bca3
lock inc dword [rsp + 0x48]
jmp 0x14002bd57
add ecx, eax
je 0x14002bd24
or esi, 4
mov dword [rsp + 0x58], r13d
call fcn.140028b70
mov qword [rsp + 0x50], rax
lock inc dword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
test rax, rax
jne 0x14002bcf3
call fcn.140028b70
mov qword [rsp + 0x50], rax
lock inc dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov dword [rbp - 0x78], 4
lea rax, str.Couldnt_enable_crash_handler_
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [0x140000000]
lea r8, [rbp - 0x78]
movsx edx, r13w
call fcn.140028cf0
test sil, 4
je 0x14002bd57
and esi, 0xfffffffb
mov qword [rsp + 0x50], r13
mov eax, edi
lock xadd dword [rsp + 0x58], eax
cmp eax, 1
js 0x14002bd52
nop
call fcn.140028730
mov eax, edi
lock xadd dword [rsp + 0x58], eax
cmp eax, 1
jns 0x14002bd40
lock inc dword [rsp + 0x58]
call fcn.140029680
mov byte [rbp + 0x138], r13b
lea rax, str.dll_dirs_F67BB3AD_7B5E_4C2D_A22B_747BC163AB78
mov qword [rbp - 0x68], rax
mov rax, qword [rbp - 0x68]
mov qword [rbp - 0x68], rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002bda4
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002bda4
mov ecx, 0x1000
call rax
lea rcx, [rbp + 0x70]
call fcn.14002f3b0
cmp byte [rax + 0x20], r13b
je 0x14002bdfe
cmp byte [rbp + 0x138], r13b
je 0x14002bdd0
mov rdx, rax
lea rcx, [rbp + 0x118]
call fcn.1400283b0
jmp 0x14002be6a
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x118], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x128], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov byte [rbp + 0x138], 1
jmp 0x14002be6a
cmp byte [rbp + 0x138], r13b
je 0x14002be6a
mov rdx, qword [rbp + 0x130]
cmp rdx, 8
jb 0x14002be50
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x118]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002be4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002be4b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400462d0
mov qword [rbp + 0x128], r13
mov qword [rbp + 0x130], 7
mov word [rbp + 0x118], r13w
lea rcx, [rbp + 0x70]
call fcn.14002fbb0
test r15, r15
je 0x14002c000
lea rdx, str._stop
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14002bea8
lea rdx, str.stop
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14002bea8
xor bl, bl
jmp 0x14002beaa
mov bl, 1
lea rdx, str._restart
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14002bed6
lea rdx, str.restart
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14002bed6
xor al, al
jmp 0x14002bed8
mov al, 1
test bl, bl
jne 0x14002bee4
test al, al
je 0x14002c000
xor edx, edx
lea rcx, str.BdVpn_ui_window_class_name
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x14002bf0c
xor r9d, r9d
xor r8d, r8d
mov edx, 0x479
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageW]
test bl, bl
je 0x14002bf18
mov r15d, r13d
jmp 0x14002c2ba
lea r8, str.LocalVpnUiScitter_instance_mutex
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rbx, rax
test rax, rax
je 0x14002c000
mov edx, 0x2710
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14002bff7
mov edx, dword [0x140065724]
mov ecx, dword [0x140065720]
add edx, ecx
je 0x14002bfc2
or esi, 8
mov dword [rsp + 0x68], r13d
call fcn.140028b70
mov qword [rsp + 0x60], rax
lock inc dword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x14002bf91
call fcn.140028b70
mov qword [rsp + 0x60], rax
lock inc dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov dword [rbp - 0x74], 4
lea rax, str.Cannot_stop_other_instance
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [0x140000000]
lea r8, [rbp - 0x74]
movsx edx, r13w
call fcn.140028cf0
test sil, 8
je 0x14002bff7
and esi, 0xfffffff7
mov qword [rsp + 0x60], r13
mov eax, edi
lock xadd dword [rsp + 0x68], eax
cmp eax, 1
js 0x14002bff2
nop dword [rax]
call fcn.140028730
mov eax, edi
lock xadd dword [rsp + 0x68], eax
cmp eax, 1
jns 0x14002bfe0
lock inc dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
mov r12d, eax
call fcn.140028b70
lea rcx, [rbp - 0x30]
call fcn.140029840
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.14002ee60
mov rbx, rax
mov ecx, 0x50
call fcn.1400462d8
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
mov rcx, qword [rbx]
mov qword [rbx], r13
mov qword [rax], rcx
mov qword [rax + 8], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x20], r13
movups xmm0, xmmword [rbx + 8]
movups xmmword [rax + 8], xmm0
movups xmm1, xmmword [rbx + 0x18]
movups xmmword [rax + 0x18], xmm1
mov qword [rbx + 0x18], r13
mov qword [rbx + 0x20], 0xf
mov byte [rbx + 8], r13b
lea rcx, [rax + 0x28]
lea rdx, [rbx + 0x28]
call fcn.14002da50
lea rcx, [rbp + 0xa0]
call fcn.14002ed60
lea rcx, [rbp + 0x28]
call fcn.140029d90
lea rcx, [rbp + 0x10]
call fcn.14002c5c0
lea rcx, [rbp - 8]
call fcn.14002c650
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14002c0f5
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002c0f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002c0f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400462d0
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], r13b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x160], xmm0
movups xmmword [rbp + 0x170], xmm0
movups xmmword [rbp + 0x180], xmm0
movups xmmword [rbp + 0x190], xmm0
movups xmmword [rbp + 0x1a0], xmm0
movups xmmword [rbp + 0x1b0], xmm0
mov qword [rbp + 0x1c0], rax
lea rcx, [rbp + 0x168]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rbp + 0x190], r13
mov qword [rbp + 0x198], r13
lfence
mov ecx, 0x48
call fcn.1400462d8
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp + 0x190], rax
lea rax, vtable.fwktools::CFramework.0
mov qword [rbp + 0x158], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x1a0], xmm0
mov qword [rbp + 0x1b0], r13
mov dword [rbp + 0x1c0], r13d
mov qword [rbp + 0x150], r13
mov qword [rbp + 0x1b8], r13
mov r8, r15
lea rcx, [rbp + 0x150]
call fcn.14003be80
mov r15d, eax
mov rcx, qword [rbp + 0x150]
test rcx, rcx
je 0x14002c1e2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x150], r13
lea rcx, [rbp + 0x158]
call fcn.140035da0
mov rcx, r14
call fcn.14002ed60
mov edx, 0x50
mov rcx, r14
call fcn.1400462d0
mov ecx, dword [0x140065724]
mov eax, dword [0x140065720]
add ecx, eax
je 0x14002c27b
or esi, 0x10
mov dword [rsp + 0x78], r13d
call fcn.140028b70
mov qword [rsp + 0x70], rax
lock inc dword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x14002c243
call fcn.140028b70
mov qword [rsp + 0x70], rax
lock inc dword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
mov dword [rbp - 0x70], 0x10
lea rax, str.stopping_the_ui_app
mov qword [rsp + 0x28], rax
lea rax, str.wWinMain
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rbp - 0x70]
movsx edx, r13w
call fcn.140028cf0
test sil, 0x10
je 0x14002c2aa
mov qword [rsp + 0x70], r13
mov eax, edi
lock xadd dword [rsp + 0x78], eax
cmp eax, 1
js 0x14002c2a5
call fcn.140028730
mov eax, edi
lock xadd dword [rsp + 0x78], eax
cmp eax, 1
jns 0x14002c293
lock inc dword [rsp + 0x78]
call fcn.140028730
test r12d, r12d
js 0x14002c2ba
call qword [sym.imp.ole32.dll_OleUninitialize]
lea rcx, [rbp + 0x118]
call fcn.14002fbb0
nop
mov byte [rbp + 0x278], 1
mov qword [rbp + 0xf0], r13
mov qword [rbp + 0x100], r13
mov qword [rbp + 0x108], 7
cmp qword [rbp + 0x220], 0
jbe 0x14002c32b
lea rdx, [rbp + 0x210]
cmp qword [rbp + 0x228], 8
cmovae rdx, qword [rbp + 0x210]
nop dword [rax + rax]
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x14002c310
mov r8, rdi
lea rcx, [rbp + 0xf0]
call fcn.140001860
jmp 0x14002c366
mov qword [rbp + 0x140], r13
lea rax, [0x140063068]
mov qword [rbp + 0x148], rax
lea rdx, [rbp + 0x140]
lea rcx, [rbp - 0x58]
call fcn.1400305f0
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0xf0], xmm0
movups xmm1, xmmword [rbp - 0x48]
movups xmmword [rbp + 0x100], xmm1
mov qword [rbp + 0x110], r13
cmp qword [rbp + 0x100], 0
jne 0x14002c37c
mov rdx, r13
jmp 0x14002c393
lea rdx, [rbp + 0xf0]
cmp qword [rbp + 0x108], 8
cmovae rdx, qword [rbp + 0xf0]
lea rcx, [rbp + 0x110]
call fcn.140029e40
mov rbx, qword [rbp + 0x110]
test rbx, rbx
jne 0x14002c435
mov rdx, qword [rbp + 0x108]
cmp rdx, 8
jb 0x14002c3f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002c3f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002c49c
call fcn.1400462d0
lea rcx, [rbp + 0x1d0]
call fcn.14002b930
nop
mov eax, r15d
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.140045c20
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [rbx + 0x18]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002c44a
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx], r13
mov edx, 0x90
mov rcx, rbx
call fcn.1400462d0
mov rdx, qword [rbp + 0x108]
cmp rdx, 8
jb 0x14002c3f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002c3f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002c3f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3