Function at 0x40c840
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e4dc
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2d8], esi
push 0
push eax
mov dword [ebp - 0x2c8], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40c90c
push 0x420a8c
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push 2
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
mov dword [ebp - 0x2c4], eax
test eax, eax
je 0x40c90c
push 0x420420
push eax
call fcn.0041cad1
mov edi, eax
add esp, 8
mov dword [ebp - 0x224], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x40c933
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
push 3
mov dword [esi + 0x10], 0
push 0x420a88
mov dword [esi + 0x14], 0
call fcn.00405000
jmp 0x40cbcd
push edi
push dword [ebp - 0x2c4]
lea eax, [ebp - 0x218]
push 0
push eax
push 2
call dword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
jne 0x40c976
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
push 3
mov dword [esi + 0x10], 0
push 0x420a88
mov dword [esi + 0x14], 0
call fcn.00405000
jmp 0x40cbc2
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x2c0], 0
push eax
lea eax, [ebp - 0x2c0]
push eax
push 0x420924
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40c94f
cmp dword [ebp - 0x21c], 0
je 0x40c94f
push 0x98
lea eax, [ebp - 0x2bc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2bc], 0x420e24
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0x2b8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 0x2c8], 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x2bc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x2c0], eax
lea ecx, [ebp - 0x2b8]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c0]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
lea ecx, [ebp - 0x2bc]
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int_]
mov edx, 0x420668
mov ecx, eax
call fcn.00409e10
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int_]
mov edx, 0x420668
mov ecx, eax
call fcn.00409e10
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int_]
mov edx, 0x420668
mov ecx, eax
call fcn.00409e10
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int_]
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov edx, dword [ebp - 0x27c]
mov eax, edx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
and al, 0x22
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 0x2c8], 0xa
movq qword [ebp - 0x2d4], xmm0
mov dword [ebp - 0x2cc], 0
cmp al, 2
je 0x40cb2e
mov eax, dword [ebp - 0x298]
mov ecx, dword [eax]
test ecx, ecx
je 0x40cb2e
mov eax, dword [ebp - 0x2a8]
cmp ecx, dword [ebp - 0x280]
cmovb ecx, dword [ebp - 0x280]
mov edx, dword [eax]
sub ecx, edx
jmp 0x40cb6b
test dl, 4
jne 0x40cb5f
mov eax, dword [ebp - 0x29c]
mov eax, dword [eax]
mov dword [ebp - 0x2c4], eax
test eax, eax
je 0x40cb5f
mov eax, dword [ebp - 0x2ac]
mov edx, dword [eax]
mov eax, dword [ebp - 0x28c]
mov ecx, dword [eax]
sub ecx, edx
add ecx, dword [ebp - 0x2c4]
jmp 0x40cb6b
mov ecx, dword [ebp - 0x2d0]
mov edx, dword [ebp - 0x2d4]
test edx, edx
je 0x40cb78
push ecx
push edx
mov ecx, esi
call fcn.00412be0
mov eax, dword [ebp - 0x2bc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x2c0], eax
lea ecx, [ebp - 0x2b8]
call fcn.00412960
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
push 1
push edi
call fcn.0041c982
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c42c
mov esp, ebp
pop ebp
ret