Function at 0x404bf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412140
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x41b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x404f6d
lea ecx, [ebp - 0x23c]
mov dword [ebp - method.Mediafour::Xml::Document.virtual_0], vtable.Mediafour::Xml::Document.0
mov dword [ebp - 0x238], str.Msxml2.DOMDocument.3.0
mov dword [ebp - 0x234], 0
call fcn.00403100
mov ebx, eax
xor edi, edi
test ebx, ebx
js 0x404d71
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x224], edi
test ecx, ecx
je 0x404d6c
mov eax, dword [ecx]
lea edx, [ebp - 0x224]
push edx
push 0x4132d0
push ecx
call dword [eax]
mov ebx, eax
test ebx, ebx
js 0x404d71
mov edi, dword [ebp - 0x224]
push edi
mov dword [ebp - 0x22c], edi
mov eax, dword [edi]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push str.mac_extension_maps
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], 0
xor esi, esi
mov dword [ebp - 0x21c], 0
push eax
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x220], esi
call fcn.00402700
mov ebx, eax
test ebx, ebx
js 0x404d2b
push str.options
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402700
mov ebx, eax
test ebx, ebx
js 0x404d25
push str.maps
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402700
mov ebx, eax
mov esi, dword [ebp - 0x228]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x404d42
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 1
test esi, esi
je 0x404d53
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x404d71
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x404d71
mov ebx, 0x80004005
mov dword [ebp - 4], 3
test edi, edi
je 0x404d82
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
js 0x404f4e
lea ecx, [ebp - 0x23c]
call fcn.004036a0
mov ebx, eax
test ebx, ebx
js 0x404f4e
lea ecx, [ebp - 0x23c]
call fcn.004042b0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004064d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
mov dword [ebp - 0x220], 0
test ebx, ebx
js 0x404f4e
push str.MediafourMacDriveActiveFileNameMaps.MDMaps
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
sub esp, 8
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x220]
push 2
sub esp, 8
push 0x40000000
push eax
call fcn.004012f0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
js 0x404f4e
mov ecx, dword [ebp - 0x234]
mov esi, dword [ebp - 0x220]
mov dword [ebp - 0x21c], 0
test ecx, ecx
je 0x404e88
mov eax, dword [ecx]
lea edx, [ebp - 0x21c]
push edx
push 0x413290
push ecx
call dword [eax]
mov ebx, eax
test ebx, ebx
js 0x404e8d
mov eax, dword [ebp - 0x21c]
push 1
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ebx, eax
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x21c], 0
jmp 0x404e8d
mov ebx, 0x80004005
mov eax, dword [esi]
push esi
call dword [eax + 8]
test ebx, ebx
js 0x404f4e
lea ecx, [ebp - 0x23c]
call fcn.00403930
mov ebx, eax
mov dword [ebp - 0x230], 0xffffffff
mov dword [ebp - 0x22c], 0
test ebx, ebx
js 0x404f4e
sub esp, 0x1c
lea ecx, [ebp - 0x230]
call fcn.00402d50
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x230]
test eax, eax
js 0x404f29
push 0
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0
push eax
push 0
push 0
push 0x14
push 0x41880c
push 0x22210c
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x404f12
call edi
cmp esi, 0xffffffff
je 0x404f29
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x404f27
or esi, 0xffffffff
jmp 0x404f29
call edi
xor ebx, ebx
cmp esi, 0xffffffff
je 0x404f3d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x404f3d
call edi
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x404f4e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x234]
test ecx, ecx
je 0x404f65
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404f90
mov esp, ebp
pop ebp
ret 0x10