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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ceaa
mov eax, dword fs:[0]
push eax
sub esp, 0x250
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 - 0x249], 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 - 0x248], 0
cmp dword [0x55b9f4], 0
jne 0x504be9
push 0x523e08
call fcn.004e4170
add esp, 4
mov eax, 0xfffffffc
jmp 0x504efc
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f9c00
add esp, 4
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x250]
push edx
call fcn.00415e20
add esp, 4
test eax, eax
jne 0x504c18
mov eax, 0xfffffffd
jmp 0x504efc
push 0x523e2c
call fcn.004f49c0
add esp, 4
test eax, eax
je 0x504c36
push str.chrome.exe
call fcn.004349e0
add esp, 4
mov eax, dword [ebp - 0x250]
push eax
push str._DEBUGINFO__LOCK__SET_LockGoogleChrome_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.GoogleChromeUser_Data
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
jne 0x504ca5
or eax, 0xffffffff
jmp 0x504efc
mov byte [ebp - 0x234], 0
push 0x103
push 0
lea edx, [ebp - 0x233]
push edx
call fcn.00415fc0
add esp, 0xc
lea ecx, [ebp - 0x244]
call fcn.00413270
mov dword [ebp - 4], 0
push 0x523e94
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00434ca0
add esp, 0xc
lea ecx, [ebp - 0x244]
call fcn.004132c0
test eax, eax
jbe 0x504dca
mov dword [ebp - 0x254], 0
jmp 0x504d1d
mov edx, dword [ebp - 0x254]
add edx, 1
mov dword [ebp - 0x254], edx
lea ecx, [ebp - 0x244]
call fcn.004132c0
cmp dword [ebp - 0x254], eax
jae 0x504dca
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x244]
call fcn.00413300
push eax
call fcn.004f4b10
add esp, 4
test eax, eax
jne 0x504dc5
push 0x104
push 0
lea ecx, [ebp - 0x234]
push ecx
call fcn.00415fc0
add esp, 0xc
mov edx, dword [ebp - 0x254]
push edx
lea ecx, [ebp - 0x244]
call fcn.00413300
push eax
push 0x104
lea eax, [ebp - 0x234]
push eax
call fcn.004188fa
add esp, 0xc
push 0x523ea0
push 0x104
lea ecx, [ebp - 0x234]
push ecx
call fcn.004189df
add esp, 0xc
mov edx, dword [ebp - 0x250]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.00503850
add esp, 8
mov dword [ebp - 0x248], eax
jmp 0x504d0e
lea ecx, [ebp - 0x1c]
call fcn.00413270
mov byte [ebp - 4], 1
push 0x523eb0
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 0x504ebd
mov dword [ebp - 0x258], 0
jmp 0x504e19
mov eax, dword [ebp - 0x258]
add eax, 1
mov dword [ebp - 0x258], eax
lea ecx, [ebp - 0x1c]
call fcn.004132c0
cmp dword [ebp - 0x258], eax
jae 0x504ebd
mov ecx, dword [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00413300
push eax
call fcn.004f4b10
add esp, 4
test eax, eax
jne 0x504eb8
push 0x104
push 0
lea edx, [ebp - 0x234]
push edx
call fcn.00415fc0
add esp, 0xc
mov eax, dword [ebp - 0x258]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00413300
push eax
push 0x104
lea ecx, [ebp - 0x234]
push ecx
call fcn.004188fa
add esp, 0xc
push 0x523ec4
push 0x104
lea edx, [ebp - 0x234]
push edx
call fcn.004189df
add esp, 0xc
mov eax, dword [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.005031a0
add esp, 8
mov dword [ebp - 0x248], eax
jmp 0x504e0a
mov edx, dword [ebp - 0x250]
push edx
call fcn.00415c75
add esp, 4
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004132a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.004132a0
mov eax, dword [ebp - 0x25c]
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