Function at 0x405bb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40dade
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x41401c]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41401c]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x26c]
xor esi, esi
mov eax, 1
or edi, 0xffffffff
mov dword [esp + 0x14], esi
test byte [0x414f80], al
jne 0x405c34
or dword [0x414f80], eax
mov ecx, 0x414f64
mov dword [esp + 0x264], esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x40e850
call fcn.0040ce59
add esp, 4
mov dword [esp + 0x264], edi
cmp dword [0x414f78], esi
jne 0x405d5f
push esi
push 0x1a
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x50]
push ecx
mov ecx, 0x414f64
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov esi, 0x414f64
lea ebx, [esp + 0x18]
call fcn.00405b50
push eax
mov ecx, esi
mov dword [esp + 0x268], 1
call dword [0x40f174]
mov ecx, ebx
mov dword [esp + 0x264], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0x4100e8
push esi
mov esi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
lea edx, [esp + 0x20]
push edx
call esi
add esp, 0xc
push eax
mov ecx, 0x414f64
mov dword [esp + 0x268], 2
call dword [0x40f174]
lea ecx, [esp + 0x18]
mov dword [esp + 0x264], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0x40f84c
lea eax, [esp + 0x1c]
push 0x414f64
push eax
call esi
add esp, 0xc
push eax
mov ecx, 0x414f64
mov dword [esp + 0x268], 3
call dword [0x40f174]
lea ecx, [esp + 0x18]
mov dword [esp + 0x264], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0x4100e4
lea ecx, [esp + 0x38]
push 0x414f64
push ecx
call esi
add esp, 0xc
push eax
mov ecx, 0x414f64
mov dword [esp + 0x268], 4
call dword [0x40f174]
lea ecx, [esp + 0x34]
mov dword [esp + 0x264], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [0x414f7c], 8
mov edi, dword [0x414f68]
jae 0x405d5a
mov edi, 0x414f68
call fcn.00405da0
push 0x414f64
mov ecx, ebp
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov eax, ebp
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0040cd4c
add esp, 0x254
ret