Function at 0x100523b0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x55c
mov eax, dword [0x100b400c]
xor eax, esp
mov dword [esp + 0x558], eax
push ebx
push esi
push edi
push str.Enumerator_system_video_cards...
push str.EnumSystemVideoCards
call fcn.1007c440
add esp, 8
lea ecx, [esp + 0x10]
call fcn.10004ff0
lea ecx, [esp + 0x140]
push ecx
push 0
push 0x100a2ab0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edx, dword [esp + 0x10]
test eax, eax
sete bl
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10052420
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x1005243b
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x558]
xor ecx, esp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x140]
xor edi, edi
push eax
lea eax, [esp + 0x354]
push str.cmd.exe__c__wmic__output:_s_path_win32_VideoController_get_name_
push eax
call fcn.10054700
add esp, 0xc
mov dword [esp + 0x124], edi
xorps xmm0, xmm0
mov dword [esp + 0xfc], edi
lea eax, [esp + 0x350]
movlpd qword [esp + 0x10c], xmm0
lea ecx, [esp + 0xf8]
movlpd qword [esp + 0x114], xmm0
push edi
push eax
movlpd qword [esp + 0x124], xmm0
mov dword [esp + 0x108], edi
mov dword [esp + 0x10c], edi
mov dword [esp + 0x110], 0x64
movups xmmword [esp + 0x130], xmm0
mov dword [esp + 0x140], edi
mov dword [esp + method.CRedirector.virtual_0], vtable.CCmd.0
call fcn.10005440
test eax, eax
je 0x10052924
mov eax, dword [esp + 0xfc]
test eax, eax
je 0x100524ea
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10052915
push 0xb4
lea eax, [esp + 0x30]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x28], 0x100953fc
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t_____bool_]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x28], vtable.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [esp + ecx + 0x24], eax
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [esp + 0x80], 0
mov byte [esp + 0x76], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Init_void_]
mov eax, dword [0x100b6848]
mov ecx, dword [0x100b684c]
push 0x40
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x144]
push 0x21
push eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x88], ecx
mov dword [esp + 0x7c], edi
call dword [sym.imp.MSVCP140.dll_struct__iobuf____cdecl_std::_Fiopen_wchar_t_const___int__int_]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100525d9
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool_]
jmp 0x1005265f
lea ecx, [esp + 0x38]
mov byte [esp + 0x80], 1
mov byte [esp + 0x76], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Init_void_]
mov eax, dword [0x100b6848]
mov ecx, dword [0x100b684c]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x38]
push eax
mov dword [esp + 0x88], esi
mov dword [esp + 0x74], edi
call dword [sym.imp.MSVCP140.dll_public:_class_std::locale___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::getloc_void_]
mov ecx, eax
call fcn.10054430
mov esi, eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::codecvt_base::always_noconv_void_const]
test al, al
je 0x10052638
mov dword [esp + 0x70], edi
jmp 0x10052646
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Init_void_]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1005265f
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1005265f
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esp + 0x84], edi
jne 0x100526a4
lea eax, [esp + 0x140]
push eax
push str.Opening_temp_file__S_failed.
push str.EnumSystemVideoCards
call fcn.1007c440
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.10052970
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x558]
xor ecx, esp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
push 0x34
call fcn.1007faf4
add esp, 4
mov esi, eax
mov ecx, esi
push 0
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::constructor_unsigned_int_]
mov dword [esi], vtable.std::codecvt_utf16_wchar_t__1114111__4_.0
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x28]
push eax
lea eax, [esp + 0x2c]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::locale___thiscall_std::ios_base::getloc_void_]
push dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Locimp::_New_Locimp_class_std::locale::_Locimp_const__]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::locale::id_std::codecvt_wchar_t__char__struct__Mbstatet_::id]
add esp, 4
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCP140.dll_public:_unsigned_int___thiscall_std::locale::id::operator_unsigned_int_void_]
mov ecx, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.MSVCP140.dll_private:_void___thiscall_std::locale::_Locimp::_Addfac_class_std::locale::facet___unsigned_int_]
mov eax, dword [esp + 0x14]
push 0x10097f80
mov dword [eax + 0x10], edi
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + 0x18]
call dword [sym.imp.MSVCP140.dll_public:_class_std::_Yarn_char_____thiscall_std::_Yarn_char_::operator_char_const__]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::locale___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::imbue_class_std::locale_const__]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1005274f
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1005274f
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10052768
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x10052768
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x10052781
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x10052781
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
mov dword [esp + 0xe0], edi
mov dword [esp + 0xf0], edi
mov dword [esp + 0xf4], 7
mov eax, dword [eax + 4]
add ecx, eax
push 0xa
call dword [sym.imp.MSVCP140.dll_public:_wchar_t___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::widen_char_const]
movzx eax, ax
lea edx, [esp + 0xe0]
push eax
lea ecx, [esp + 0x2c]
call fcn.10054520
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x1005287f
nop word [eax + eax]
lea ecx, [esp + 0xe0]
call fcn.1007c750
mov esi, dword [esp + 0xf4]
lea ecx, [esp + 0xe0]
mov ebx, dword [esp + 0xe0]
cmp esi, 8
mov edx, dword [esp + 0xf0]
push 4
cmovae ecx, ebx
push str.Name
call fcn.10017760
add esp, 8
test eax, eax
je 0x10052843
inc edi
lea eax, [esp + 0xe0]
cmp esi, 8
cmovae eax, ebx
push eax
push edi
push str.Video_controller:___d___S_
push str.EnumSystemVideoCards
call fcn.1007c440
add esp, 0x10
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
push 0xa
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_wchar_t___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::widen_char_const]
movzx eax, ax
lea edx, [esp + 0xe0]
push eax
lea ecx, [esp + 0x2c]
call fcn.10054520
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x100527e0
lea ecx, [esp + 0x38]
call fcn.10054270
test eax, eax
jne 0x100528a2
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool_]
mov edx, dword [esp + 0xf4]
cmp edx, 8
jb 0x100528e6
mov ecx, dword [esp + 0xe0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100528dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100528dc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007face
add esp, 8
xor eax, eax
mov dword [esp + 0xf0], 0
lea ecx, [esp + 0x28]
mov dword [esp + 0xf4], 7
mov word [esp + 0xe0], ax
call fcn.10052970
test edi, edi
jne 0x1005294f
jmp 0x1005293d
lea eax, [esp + 0x140]
push eax
push str.Temp_file__S_not_found.
jmp 0x10052930
push dword [esp + 0x138]
push str.Command_exec_failed__ret:__d.
push str.EnumSystemVideoCards
call fcn.1007c440
add esp, 0xc
push str.No_Video_Controller_Found.
push str.EnumSystemVideoCards
call fcn.1007c440
add esp, 8
mov ecx, dword [esp + 0x564]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret