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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cbdf
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x531304]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x239], 0
mov byte [ebp - 0x12c], 0
push 0x103
push 0
lea eax, [ebp - 0x12b]
push eax
call fcn.00415fc0
add esp, 0xc
mov dword [ebp - 0x238], 0
cmp dword [0x55b9f4], 0
jne 0x4fd5a9
push 0x51ea7c
call fcn.004e4170
add esp, 4
mov eax, 0xfffffffc
jmp 0x4fd7ee
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f9c00
add esp, 4
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x240]
push edx
call fcn.00415e20
add esp, 4
test eax, eax
jne 0x4fd5d8
mov eax, 0xfffffffd
jmp 0x4fd7ee
push 0x51eaa0
call fcn.004f49c0
add esp, 4
test eax, eax
je 0x4fd5f6
push str.ucbrowser.exe
call fcn.004349e0
add esp, 4
mov eax, dword [ebp - 0x240]
push eax
push str._DEBUGINFO__LOCK__SET_LockUCBrowser_url___s_n
call fcn.004e4170
add esp, 8
push 0x104
push 0
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00415fc0
add esp, 0xc
push 0
push 0x1c
lea edx, [ebp - 0x12c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.UCBrowserUser_DataDefaultPreferences
push 0x104
lea eax, [ebp - 0x12c]
push eax
call fcn.004189df
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4fd678
lea edx, [ebp - 0x12c]
push edx
push str._DEBUGINFO__LOCK__SET_LockUCBrowser_path___s_n
call fcn.004e4170
add esp, 8
mov byte [ebp - 0x239], 1
movzx eax, byte [ebp - 0x239]
test eax, eax
jne 0x4fd68b
or eax, 0xffffffff
jmp 0x4fd7ee
lea ecx, [ebp - 0x1c]
call fcn.00413270
mov dword [ebp - 4], 0
mov byte [ebp - 0x234], 0
push 0x103
push 0
lea ecx, [ebp - 0x233]
push ecx
call fcn.00415fc0
add esp, 0xc
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x51eb4c
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x12c]
push edx
call fcn.00434ca0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004132c0
test eax, eax
jbe 0x4fd7be
mov dword [ebp - 0x244], 0
jmp 0x4fd714
mov eax, dword [ebp - 0x244]
add eax, 1
mov dword [ebp - 0x244], eax
lea ecx, [ebp - 0x1c]
call fcn.004132c0
cmp dword [ebp - 0x244], eax
jae 0x4fd7be
push 0x104
push 0
lea ecx, [ebp - 0x234]
push ecx
call fcn.00415fc0
add esp, 0xc
mov edx, dword [ebp - 0x244]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00413300
push eax
push 0x104
lea eax, [ebp - 0x234]
push eax
call fcn.004188fa
add esp, 0xc
lea ecx, [ebp - 0x234]
push ecx
call fcn.004f4b10
add esp, 4
test eax, eax
jne 0x4fd7b9
push 0x51eb58
push 0x104
lea edx, [ebp - 0x234]
push edx
call fcn.004189df
add esp, 0xc
mov eax, dword [ebp - 0x240]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.004fcc20
add esp, 8
mov dword [ebp - 0x238], eax
lea edx, [ebp - 0x234]
push edx
call fcn.004fd190
add esp, 4
jmp 0x4fd705
mov eax, dword [ebp - 0x240]
push eax
call fcn.00415c75
add esp, 4
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x248], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004132a0
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004158f4
mov esp, ebp
pop ebp
ret 4