Function at 0x1400016b0
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x2108
call fcn.14000f810
sub rsp, rax
mov rax, qword [0x14001a008]
xor rax, rsp
mov qword [rsp + 0x20f0], rax
movzx eax, word [0x140017a7c]
mov word [rsp + 0x10f0], ax
lea rax, [rsp + 0x10f2]
mov rdi, rax
xor eax, eax
mov ecx, 0xffe
rep stosb byte [rdi], al
movzx eax, word [0x140017a94]
mov word [rsp + 0xf0], ax
lea rax, [rsp + 0xf2]
mov rdi, rax
xor eax, eax
mov ecx, 0xffe
rep stosb byte [rdi], al
mov r8d, 0x800
lea rdx, [rsp + 0x10f0]
mov rcx, qword [rsp + 0x2120]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x10f0]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jle 0x1400017aa
movsxd rax, dword [rsp + 0x38]
movzx eax, word [rsp + rax*2 + 0xf0]
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x40]
cmp eax, 0x5c
je 0x14000179c
movzx eax, word [rsp + 0x40]
cmp eax, 0x2f
jne 0x14000179e
jmp 0x1400017aa
mov eax, dword [rsp + 0x38]
dec eax
mov dword [rsp + 0x38], eax
jmp 0x14000176f
cmp dword [rsp + 0x38], 0
jle 0x1400017e8
movsxd rax, dword [rsp + 0x38]
shl rax, 1
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0x1000
jae 0x1400017d1
jmp 0x1400017d6
call fcn.140001cf8
xor eax, eax
mov rcx, qword [rsp + 0x88]
mov word [rsp + rcx + 0xf0], ax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x68], 0
mov byte [rsp + 0x34], 0
lea rax, [rsp + 0xb8]
lea rcx, str.CCGameCaptureHook64.dll
mov rdi, rax
mov rsi, rcx
mov ecx, 0x30
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x80], rax
call section..text
cmp dword [rsp + 0x68], 2
jle 0x140001b68
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx + rax]
movzx eax, word [rax]
cmp eax, 0x31
jne 0x140001881
mov dword [rsp + 0x6c], 1
jmp 0x140001889
mov dword [rsp + 0x6c], 0
movzx eax, byte [rsp + 0x6c]
mov byte [rsp + 0x34], al
mov eax, 8
imul rax, rax, 1
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + rax]
call fcn.140006128
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x140001b5e
movzx eax, byte [rsp + 0x34]
test eax, eax
jne 0x140001a54
lea rcx, str.KERNEL32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.OpenProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xa0], rax
mov r8d, dword [rsp + 0x4c]
xor edx, edx
mov ecx, 0x1fffff
call qword [rsp + 0xa0]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x140001a47
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x90], 0x17
mov eax, dword [rsp + 0x3c]
add eax, 0x18
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x3c], 0
je 0x140001a32
mov eax, dword [rsp + 0x50]
shl rax, 1
mov rcx, rax
call fcn.1400061f0
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x50]
shl rax, 1
mov qword [rsp + 0xa8], rax
mov rdi, qword [rsp + 0x58]
xor eax, eax
mov rcx, qword [rsp + 0xa8]
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [rsp + 0x3c]
dec eax
mov eax, eax
mov ecx, 0x5c
mov rdx, qword [rsp + 0x58]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov ecx, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x58]
lea rcx, [rdx + rcx*2]
mov r9d, 0x17
lea r8, [rsp + 0xb8]
mov edx, eax
call fcn.1400061f8
lea rcx, [rsp + 0x70]
call fcn.140001ba0
mov dword [rsp + 0x70], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x70]
lea r8, str.InitGraphicHook
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
call fcn.1400012e0
movzx eax, al
test eax, eax
jne 0x140001a26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140001a26
mov dword [rsp + 0x30], 0xfffffffb
mov rcx, qword [rsp + 0x58]
call fcn.1400061dc
jmp 0x140001a3a
mov dword [rsp + 0x30], 0xfffffffc
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001a4f
mov dword [rsp + 0x30], 0xfffffffd
jmp 0x140001b5c
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x94], 0x17
mov eax, dword [rsp + 0x44]
add eax, 0x18
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x44], 0
je 0x140001b54
mov eax, dword [rsp + 0x48]
shl rax, 1
mov rcx, rax
call fcn.1400061f0
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x48]
shl rax, 1
mov qword [rsp + 0xb0], rax
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rcx, qword [rsp + 0xb0]
rep stosb byte [rdi], al
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [rsp + 0x44]
dec eax
mov eax, eax
mov ecx, 0x5c
mov rdx, qword [rsp + 0x60]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x48]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov ecx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x60]
lea rcx, [rdx + rcx*2]
mov r9d, 0x17
lea r8, [rsp + 0xb8]
mov edx, eax
call fcn.1400061f8
mov eax, dword [rsp + 0x48]
dec eax
mov r8d, eax
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x4c]
call fcn.140001110
test eax, eax
jne 0x140001b48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140001b48
mov dword [rsp + 0x30], 0xfffffff9
mov rcx, qword [rsp + 0x60]
call fcn.1400061dc
jmp 0x140001b5c
mov dword [rsp + 0x30], 0xfffffffa
jmp 0x140001b66
mov dword [rsp + 0x30], 0xfffffffe
jmp 0x140001b70
mov dword [rsp + 0x30], 0xffffffff
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x20f0]
xor rcx, rsp
call fcn.140001bd0
add rsp, 0x2108
pop rdi
pop rsi
ret