Function at 0x4bb625
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
mov edi, eax
call fcn.0045cea5
xor esi, esi
cmp dword [edi + 0x14], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
je 0x4bb688
lea esi, [ebp - 0x14]
call fcn.0045d04d
lea eax, [edi + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, ecx
mov edx, dword [edx]
push eax
push edx
push eax
mov eax, esi
call fcn.004bbd14
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
mov ecx, esi
mov dword [ebp - 0x18], eax
mov eax, esi
lea edi, [ebp - 0x1c]
lea esi, [ebp - 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], eax
call fcn.0047b3e3
test al, al
jne 0x4bb69a
xor esi, esi
lea eax, [ebp - 0x14]
call fcn.0045cda5
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
mov ebx, dword [ebp - 4]
push 0x208
xor edi, edi
lea eax, [ebp - 0x240]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push 0x8000
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4bb76c
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x4bb70d
dec eax
push eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x4bb70d
cmp ax, 0x2f
je 0x4bb70d
push 0x4da9e4
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP80.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, dword [ebp - 8]
cmp esi, edi
jne 0x4bb71a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 4]
jne 0x4bb725
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebx + 0x20], 8
jb 0x4bb730
mov ebx, dword [ebx + 0xc]
jmp 0x4bb733
add ebx, 0xc
push ebx
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP80.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__]
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x4bb749
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x240]
push ecx
push eax
call fcn.004bb258
push eax
call fcn.004bb1b7
add esp, 0xc
test eax, eax
lea ecx, [ebp - 0x38]
jne 0x4bb789
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea esi, [ebp - 8]
call fcn.00436898
lea edi, [ebp - 0x1c]
call fcn.0047b3e3
test al, al
jne 0x4bb697
jmp 0x4bb686
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor esi, esi
inc esi
jmp 0x4bb688