Function at 0x4d0e60
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657d5c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x6dc0b8]
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 ebx, ecx
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
push 0x6acfb0
push edi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4d0ecd
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
jmp 0x4d0ee5
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d0f42
lea edx, [ebp - 0x220]
mov ecx, edi
call fcn.004dff30
test eax, eax
js 0x4d0f42
push ecx
push dword [ebp - 0x220]
mov ecx, dword [ebx + 0x3fc]
call fcn.004bf420
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x4d0f36
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 9
push 0x110b
push dword [ebx + 0x3f8]
call esi
push dword [ebp - 0x21c]
push 0
push 0x1114
push dword [ebx + 0x3f8]
call esi
mov esi, dword [ebp - 0x224]
push dword [ebp - 0x220]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 1
jne 0x4d0f53
mov dword [esi], 1
jmp 0x4d1169
mov ecx, dword [ebx + 0x58c]
lea esi, [ebx + 0x588]
sub ecx, dword [esi]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4d1024
mov eax, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x6acfb0
push edi
call eax
test eax, eax
jne 0x4d0fe6
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
push 0
push 0
push 0x11
push 0
call eax
test eax, eax
js 0x4d0fcb
push 0
push ecx
mov ecx, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
call fcn.004dffd0
add esp, 8
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0049f410
mov dword [ebp - 4], 0
jmp 0x4d0ff9
push edi
lea ecx, [ebp - 0x230]
call fcn.0049f410
mov dword [ebp - 4], 1
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.004d1660
push dword [ebp - 0x230]
call fcn.00545b61
add esp, 4
mov dword [ebx + 0x594], 1
jmp 0x4d115d
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
mov ecx, dword [ebx + 0x594]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x4d1063
mov eax, dword [esi]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx - 3]
mov edx, edi
lea ecx, [eax + ecx*4]
call fcn.00421b90
test al, al
jne 0x4d115d
mov ecx, dword [ebx + 0x594]
push ecx
mov ecx, esi
call fcn.004d15a0
mov eax, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x6acfb0
push edi
call eax
test eax, eax
jne 0x4d10da
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
push 0
push 0
push 0x11
push 0
call eax
test eax, eax
js 0x4d10bf
push 0
push ecx
mov ecx, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
call fcn.004dffd0
add esp, 8
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0049f410
mov dword [ebp - 4], 2
jmp 0x4d10ed
push edi
lea ecx, [ebp - 0x230]
call fcn.0049f410
mov dword [ebp - 4], 3
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.004d1660
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x230]
call fcn.00545b61
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
add esp, 4
imul ecx
push 1
sar edx, 1
mov eax, edx
push 0
shr eax, 0x1f
push ecx
add eax, edx
lea ecx, [ebx + 4]
push str.btn_forward
mov dword [ebx + 0x594], eax
call fcn.004d06a0
mov ecx, eax
call fcn.0055449b
push 1
push 1
push ecx
push str.btn_backoff
lea ecx, [ebx + 4]
call fcn.004d06a0
mov ecx, eax
call fcn.0055449b
mov eax, dword [ebp - 0x224]
mov dword [eax], 1
xor eax, eax
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.00545b50
mov esp, ebp
pop ebp
ret 0x10