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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d338
mov eax, dword fs:[0]
push eax
sub esp, 0x398
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 - 0x371], 0
mov dword [ebp - 0x370], 0
mov byte [ebp - 0x12c], 0
push 0x103
push 0
lea eax, [ebp - 0x12b]
push eax
call fcn.00415fc0
add esp, 0xc
lea ecx, [ebp - 0x250]
call fcn.004011e0
mov dword [ebp - 4], 0
cmp dword [0x55b9f4], 0
jne 0x5025f8
push 0x522ca8
call fcn.004e4170
add esp, 4
mov dword [ebp - 0x384], 0xfffffffc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00401260
mov eax, dword [ebp - 0x384]
jmp 0x502a43
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f9c00
add esp, 4
mov dword [ebp - 0x378], eax
mov edx, dword [ebp - 0x378]
push edx
call fcn.00415e20
add esp, 4
test eax, eax
jne 0x502644
mov dword [ebp - 0x388], 0xfffffffd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00401260
mov eax, dword [ebp - 0x388]
jmp 0x502a43
push 0x522ccc
call fcn.004f49c0
add esp, 4
test eax, eax
je 0x502662
push str.liebao.exe
call fcn.004349e0
add esp, 4
mov eax, dword [ebp - 0x378]
push eax
push str._DEBUGINFO__LOCK__SET_LockLiebao_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]
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x250]
call fcn.004012a0
push str.liebaoUser_DataDefaultPreferences
lea ecx, [ebp - 0x250]
call fcn.0040bb70
lea ecx, [ebp - 0x250]
call fcn.004012e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x5026f7
lea ecx, [ebp - 0x250]
call fcn.004012e0
push eax
push str._DEBUGINFO__LOCK__SET_LockLiebao_path___s_n
call fcn.004e4170
add esp, 8
mov byte [ebp - 0x371], 1
movzx ecx, byte [ebp - 0x371]
test ecx, ecx
jne 0x502729
mov dword [ebp - 0x38c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00401260
mov eax, dword [ebp - 0x38c]
jmp 0x502a43
push str.liebaoUser_Data
push 0x104
lea edx, [ebp - 0x12c]
push edx
call fcn.004189df
add esp, 0xc
mov byte [ebp - 0x234], 0
push 0x103
push 0
lea eax, [ebp - 0x233]
push eax
call fcn.00415fc0
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
push 0x104
lea edx, [ebp - 0x234]
push edx
call fcn.004188fa
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
call fcn.004f4b10
add esp, 4
test eax, eax
je 0x5027b4
mov dword [ebp - 0x390], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00401260
mov eax, dword [ebp - 0x390]
jmp 0x502a43
lea ecx, [ebp - 0x1c]
call fcn.00413270
mov byte [ebp - 4], 1
mov byte [ebp - 0x35c], 0
push 0x103
push 0
lea ecx, [ebp - 0x35b]
push ecx
call fcn.00415fc0
add esp, 0xc
push 0x522d78
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x12c]
push eax
call fcn.00434ca0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004132c0
test eax, eax
jbe 0x5028f0
mov dword [ebp - 0x37c], 0
jmp 0x502820
mov ecx, dword [ebp - 0x37c]
add ecx, 1
mov dword [ebp - 0x37c], ecx
lea ecx, [ebp - 0x1c]
call fcn.004132c0
cmp dword [ebp - 0x37c], eax
jae 0x5028f0
push 0x104
push 0
lea edx, [ebp - 0x35c]
push edx
call fcn.00415fc0
add esp, 0xc
mov eax, dword [ebp - 0x37c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00413300
push eax
push 0x104
lea ecx, [ebp - 0x35c]
push ecx
call fcn.004188fa
add esp, 0xc
push 0x522d84
push 0x104
lea edx, [ebp - 0x35c]
push edx
call fcn.004189df
add esp, 0xc
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x250]
call fcn.004012a0
mov ecx, dword [ebp - 0x378]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x394], esp
lea edx, [ebp - 0x250]
push edx
call fcn.00401210
mov dword [ebp - 0x39c], eax
mov eax, dword [ebp - 0x39c]
mov dword [ebp - 0x3a0], eax
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
call fcn.00501860
add esp, 0x20
mov dword [ebp - 0x3a4], eax
mov ecx, dword [ebp - 0x3a4]
mov dword [ebp - 0x370], ecx
jmp 0x502811
lea ecx, [ebp - 0x36c]
call fcn.00413270
mov byte [ebp - 4], 3
push 0x522d94
lea edx, [ebp - 0x36c]
push edx
lea eax, [ebp - 0x12c]
push eax
call fcn.00434ca0
add esp, 0xc
lea ecx, [ebp - 0x36c]
call fcn.004132c0
test eax, eax
jbe 0x5029f5
mov dword [ebp - 0x380], 0
jmp 0x502948
mov ecx, dword [ebp - 0x380]
add ecx, 1
mov dword [ebp - 0x380], ecx
lea ecx, [ebp - 0x36c]
call fcn.004132c0
cmp dword [ebp - 0x380], eax
jae 0x5029f5
mov edx, dword [ebp - 0x380]
push edx
lea ecx, [ebp - 0x36c]
call fcn.00413300
push eax
call fcn.004f4b10
add esp, 4
test eax, eax
jne 0x5029f0
push 0x104
push 0
lea eax, [ebp - 0x35c]
push eax
call fcn.00415fc0
add esp, 0xc
mov ecx, dword [ebp - 0x380]
push ecx
lea ecx, [ebp - 0x36c]
call fcn.00413300
push eax
push 0x104
lea edx, [ebp - 0x35c]
push edx
call fcn.004188fa
add esp, 0xc
push 0x522da8
push 0x104
lea eax, [ebp - 0x35c]
push eax
call fcn.004189df
add esp, 0xc
mov ecx, dword [ebp - 0x378]
push ecx
lea edx, [ebp - 0x35c]
push edx
call fcn.00501160
add esp, 8
mov dword [ebp - 0x370], eax
jmp 0x502939
mov eax, dword [ebp - 0x378]
push eax
call fcn.00415c75
add esp, 4
mov ecx, dword [ebp - 0x370]
mov dword [ebp - 0x398], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x36c]
call fcn.004132a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004132a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00401260
mov eax, dword [ebp - 0x398]
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