Function at 0x4e0811
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
push edi
lea esi, [ebp - 5]
call fcn.00424032
lea eax, [ebp - 0xc]
push eax
push 0x594044
push 1
xor ebx, ebx
push ebx
push 0x594054
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp - 0xc], ebx
je 0x4e09c0
lea eax, [ebp - 0x23c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x23c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4e0865
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x23e]
cmp word [eax], 0x5c
jne 0x4e0883
mov word [eax], bx
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x58]
cmp dword [ebp + 0x24], ebx
je 0x4e08ac
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x4e092f
cmp word [esi], bx
je 0x4e092f
push 0x218
call fcn.0044b085
cmp eax, ebx
pop ecx
je 0x4e08d2
mov edx, esi
mov edi, eax
call fcn.004e0263
jmp 0x4e08d4
xor eax, eax
push 1
push dword [eax]
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp + 0x10]
call fcn.004e0d37
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4e0927
lea ecx, [ebp + 0x24]
push ecx
mov dword [ebp + 0x24], ebx
push dword [eax + 0x214]
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateShellItem]
test eax, eax
jl 0x4e091a
cmp dword [ebp + 0x24], ebx
je 0x4e0927
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x4e0927
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edi, [ebp + 0x10]
call fcn.004f90ce
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x28]
or dword [ebp - 0x14], 0x1800
cmp byte [ebp + 0x28], bl
je 0x4e094f
or dword [ebp - 0x14], 0x200
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
push dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0xc]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
mov eax, dword [ebp - 0xc]
jl 0x4e09b6
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
test eax, eax
mov eax, dword [ebp - 0x10]
jl 0x4e09a9
cmp eax, ebx
je 0x4e09b3
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x4e09d4
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4e09b3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4e09c0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 5], bl
je 0x4e09cb
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x24
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004e6585
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
mov byte [ebp + 0x2b], 1
mov dword [ebp + 0x24], ebx
jbe 0x4e0a68
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x24]
mov edi, dword [ebp - 0x10]
lea esi, [eax + ecx*4]
mov eax, dword [esi]
cmp eax, ebx
je 0x4e0a11
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
mov eax, dword [edi]
push esi
push dword [ebp + 0x24]
push edi
call dword [eax + 0x20]
cmp byte [ebp + 0x2b], bl
je 0x4e0a5d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x24]
lea eax, [eax + ecx*4]
cmp dword [eax], ebx
je 0x4e0a5d
lea edx, [ebp + 0x28]
push edx
mov dword [ebp + 0x28], ebx
mov eax, dword [eax]
mov ecx, dword [eax]
push 0x80058000
push eax
call dword [ecx + 0x14]
cmp dword [ebp + 0x28], ebx
je 0x4e0a5a
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x14]
call fcn.00401963
push dword [ebp + 0x28]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [ebp + 0x2b], bl
inc dword [ebp + 0x24]
mov eax, dword [ebp + 0x24]
cmp eax, dword [ebp - 0x18]
jb 0x4e09f7
lea eax, [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x23c]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.004e02dc
mov dword [ebp - 0x28], eax
or eax, edx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], edx
push eax
jne 0x4e0aaf
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 0x24]
push eax
mov dword [ebp + 0x28], 0x5531a0
call fcn.004e0482
jmp 0x4e0aba
push dword [ebp + 8]
lea esi, [ebp + 0x28]
call fcn.004f9104
mov eax, dword [eax]
cmp eax, ebx
mov eax, dword [ebp - 0x20]
sete byte [ebp + 0x2b]
cmp eax, ebx
je 0x4e0ace
call fcn.004f94dc
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4e0adb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4e0ae8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 5], bl
je 0x4e0af3
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, byte [ebp + 0x2b]
jmp 0x4e09cd