Function at 0x140001be0
Capabilities:
Create directory
Enumerate gui resources
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5a8]
sub rsp, 0x6a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x590], rax
call fcn.1400015b0
lea rax, [rbp - 0x80]
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]
lea r8, str.log_
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCR120.dll_wcscat_s]
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCR120.dll__waccess]
cmp eax, 0xffffffff
jne 0x140001c69
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCR120.dll__wmkdir]
call fcn.1400012e0
mov byte [rbp + 0x190], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rbp + 0x191]
call sub.MSVCR120.dll_memset
lea r9, str.Ver:2.3
lea r8, str.CaptureGameWin_64.exe__s
mov edx, 0x400
lea rcx, [rbp + 0x190]
call qword [sym.imp.MSVCR120.dll_sprintf_s]
cmp qword [0x1400099d0], 0
je 0x140001cbf
lea rcx, [rbp + 0x190]
call fcn.140001360
lea r8, str._log_exe.log
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCR120.dll_wcscat_s]
cmp qword [0x140009c98], 0
jne 0x140001d23
lea rdx, [rbp - 0x80]
lea rcx, [0x140009c08]
call fcn.140003010
xor r8d, r8d
test rax, rax
mov rax, qword [0x140009bf0]
movsxd rcx, dword [rax + 4]
lea rax, [0x140009bf0]
jne 0x140001d18
add rcx, rax
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP120.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
jmp 0x140001d23
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP120.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
lea rcx, [rsp + 0x58]
call fcn.140001430
nop
mov rdx, rax
lea rcx, [0x140009c00]
call fcn.140003730
mov rcx, rax
lea rdx, str.Info:_CaptureGameWin_run
call fcn.140003900
mov rcx, rax
lea rdx, str.Ver:2.3
call fcn.140003900
mov rcx, rax
lea rdx, [0x140003ad0]
call qword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
cmp qword [rsp + 0x70], 0x10
jb 0x140001d7f
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
call fcn.140001660
mov edx, dword [0x1400099d8]
test edx, edx
jne 0x140001df4
lea rcx, [rsp + 0x58]
call fcn.1400014f0
nop
mov rdx, rax
lea rcx, [0x140009c00]
call fcn.140003730
mov rcx, rax
lea rdx, str.Error:_CaptureGameWin_failed_to_processid:
call fcn.140003900
mov rcx, rax
mov edx, dword [0x1400099d8]
call qword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003ad0]
call qword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
cmp qword [rsp + 0x70], 0x10
jb 0x140001dea
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, 0x80004005
jmp 0x140002004
lea rcx, [0x1400099e0]
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x140001e00
test rax, rax
jne 0x140001e4b
lea rcx, [rsp + 0x58]
call fcn.1400014f0
nop
mov rdx, rax
lea rcx, [0x140009c00]
call fcn.140003730
mov rcx, rax
lea rdx, str.Error:_CaptureGameWin_failed_to_dll_path_is_null
call fcn.140003900
mov rcx, rax
lea rdx, [0x140003ad0]
call qword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
jmp 0x140001dd7
mov dword [rsp + 0x58], edx
xor esi, esi
mov qword [rsp + 0x60], rsi
lea rdx, [rsp + 0x58]
lea rcx, [0x140001770]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rdi, qword [rsp + 0x60]
test rdi, rdi
jne 0x140001eb1
lea rcx, [rsp + 0x58]
call fcn.1400014f0
nop
mov rdx, rax
lea rcx, [0x140009c00]
call fcn.140003730
mov rcx, rax
lea rdx, str.Error:_CaptureGameWin_failed_to_find_main_window
call fcn.140003900
mov rcx, rax
lea rdx, [0x140003ad0]
call qword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
jmp 0x140001dd7
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
test eax, eax
jne 0x140001f01
lea rcx, [rsp + 0x58]
call fcn.1400014f0
nop
mov rdx, rax
lea rcx, [0x140009c00]
call fcn.140003730
mov rcx, rax
lea rdx, str.Error:_CaptureGameWin_failed_to_get_window_thread_process_id
call fcn.140003900
mov rcx, rax
lea rdx, [0x140003ad0]
call qword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
jmp 0x140001dd7
lea rcx, [rsp + 0x38]
call fcn.1400014f0
nop
mov rdx, rax
lea rcx, [0x140009c00]
call fcn.140003730
mov rcx, rax
lea rdx, str.MainWnd:
call fcn.140003900
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, str.__ProcId:
call fcn.140003900
mov rcx, rax
mov edx, dword [0x1400099d8]
call qword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, str.__ThreadId:
call fcn.140003900
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003ad0]
call qword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
cmp qword [rsp + 0x50], 0x10
jb 0x140001f92
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
mov dword [rsp + 0x28], ebx
mov eax, dword [0x1400099d8]
mov dword [rsp + 0x20], eax
lea r8, str.exe_ProcId:_d__Game_ProcId:_d__ThreadId:_d
mov edx, 0x400
lea rcx, [rbp + 0x190]
call qword [sym.imp.MSVCR120.dll_sprintf_s]
cmp qword [0x1400099d0], 0
je 0x140001fd8
lea rcx, [rbp + 0x190]
call fcn.140001360
mov edx, ebx
call fcn.1400018c0
mov ebx, 0x80004005
test eax, eax
cmovne ebx, esi
mov rcx, qword [0x1400099d0]
test rcx, rcx
je 0x140002002
call qword [sym.imp.MSVCR120.dll_fclose]
mov qword [0x1400099d0], rsi
mov eax, ebx
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.140003c50
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret