Function at 0x41aa2e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x42ed20
call fcn.0041f1a0
sub esp, 0x2cc
mov eax, dword [0x440200]
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
test byte [0x440694], 1
push edi
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], ebx
mov edi, 0x440678
jne 0x41aa8a
or dword [0x440694], 1
mov ecx, edi
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x43018d
call fcn.0041f0b0
or dword [ebp - 4], 0xffffffff
pop ecx
cmp dword [0x44068c], ebx
jne 0x41ab87
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x41aabe
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
xor esi, esi
inc esi
push esi
push 2
lea ecx, [ebp - 0x2d8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int_]
push 0x433828
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.MSVCP71.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::operator___wchar_t__struct_std::char_traits_wchar_t___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____wchar_t_const__]
push eax
call esi
pop ecx
pop ecx
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2d8]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void_]
cmp byte [ebp + 0xc], bl
mov byte [ebp - 4], 2
pop esi
je 0x41ab2f
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x41ab28
lea eax, [ebp - 0x230]
push eax
call fcn.0041aa05
pop ecx
push 0x433cf4
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00401943
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call dword [0x4313d0]
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2d8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void_]
mov ecx, dword [ebp - 0x238]
push 0x440678
call dword [sym.imp.MSVCP71.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 ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x238]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041ef93
leave
ret