Function at 0x30050fd1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30099cee
mov eax, dword fs:[0]
push eax
mov eax, 0x1064
call fcn.30006a78
mov eax, dword [0x3002dd90]
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
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x30], ebx
jne 0x3005119f
mov dword [ebp - 0x106c], ebx
mov ecx, dword [sym.imp.ONMain.DLL_class_MsoCF::CFastBufferAllocator_MsoCF::g_FastBufferAllocator]
lea eax, [ebp - 0x1058]
mov edi, 0x1046
mov dword [ebp - 0x1064], eax
mov eax, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x105c], edi
mov dword [ebp - 0x1068], ecx
mov dword [ebp - 0x1060], eax
mov word [ebp - 0x1058], bx
cmp eax, 0x208
mov byte [ebp - 4], 2
jge 0x30051070
mov edx, dword [ecx]
push ebx
push 0x208
lea eax, [ebp - 0x1068]
push eax
push ecx
mov ecx, dword [edx]
call ecx
mov eax, dword [ebp - 0x1060]
cdq
sub eax, edx
mov edx, dword [ebp - 0x1064]
sar eax, 1
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [ebp - 0x1064]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x106c]
push eax
push ecx
call dword [sym.imp.ONMain.DLL_void___stdcall_Jot::GetFolderProxyFromPath_Exported_class_MsoCF::String_struct_MsoCF::WzTraits___struct_Jot::IFolderProxy____bool__bool___bool_]
mov eax, dword [ebp - 0x1064]
lea edx, [ebp - 0x1058]
cmp eax, edx
je 0x300510b0
push eax
call sub.ONMain.DLL_void___stdcall_MsoCF::Memory::Allocator::Free_void__
mov dword [ebp - 0x1070], ebx
mov ecx, dword [ebp - 0x106c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x1070]
push edx
push 0x30051218
mov byte [ebp - 4], 3
call eax
mov ecx, dword [sym.imp.ONMain.DLL_class_MsoCF::CFastBufferAllocator_MsoCF::g_FastBufferAllocator]
lea edx, [ebp - 0x1058]
mov dword [ebp - 0x105c], edi
mov dword [ebp - 0x1068], ecx
mov dword [ebp - 0x1064], edx
mov dword [ebp - 0x1060], edi
mov word [ebp - 0x1058], bx
mov ecx, dword [ebp - 0x1070]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
push ebx
lea edx, [ebp - 0x1068]
push edx
mov byte [ebp - 4], 5
call eax
mov ecx, dword [ebp - 0x1064]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x1064]
lea edx, [ebp - 0x1058]
cmp eax, edx
je 0x30051141
push eax
call sub.ONMain.DLL_void___stdcall_MsoCF::Memory::Allocator::Free_void__
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x3005116c
mov edi, dword [sym.imp.USER32.dll_LoadCursorW]
push 3
push eax
call edi
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
push 2
push eax
call edi
mov ecx, dword [esi + 0x30]
push 1
push ecx
mov dword [esi + 0x34], eax
call edi
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x1070]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x30051181
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x106c]
cmp eax, ebx
mov dword [ebp - 4], 0xffffffff
je 0x3005119a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esi + 0x30], ebx
je 0x300511f9
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
test al, al
je 0x300511e0
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x300511d4
cmp byte [esi + 0x2c], bl
je 0x300511c4
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x300511f9
cmp eax, ebx
je 0x300511d4
mov ecx, dword [esi + 0x34]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x300511f9
mov edx, dword [esi + 0x3c]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x300511f9
mov ecx, dword [esi + 0x1c]
cmp ecx, ebx
je 0x300511f9
push 1
push ebx
push 0x20
call dword [sym.imp.MSO.dll_Ordinal_4203]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
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.30001d24
mov esp, ebp
pop ebp
ret