Function at 0x40bf70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6d50
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
lea eax, [ebp - 0x34]
push eax
mov edi, 1
push 0x4e8bfc
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call sub.gdiplus.dll_GdiplusStartup
lea ecx, [ebp - 0x1c]
push str.360Base.dll
push ecx
call fcn.0047b079
mov dword [ebp - 4], ebx
mov eax, dword [eax]
push eax
call fcn.0040d1a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bfff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x1c]
call fcn.0040bda0
mov dword [ebp - 4], edi
mov edi, dword [eax]
cmp edi, ebx
je 0x40c042
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c042
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0047ea6b
add esp, 4
test eax, eax
jne 0x40c037
call fcn.0040cff0
cmp eax, ebx
je 0x40c042
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
jmp 0x40c044
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c06a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x40c29c
mov eax, dword [0x4e87a0]
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x40c094
push str.GetSmartInitializer
push esi
call ebx
test eax, eax
je 0x40c094
call eax
mov dword [0x4e87a0], eax
mov dword [0x4e8c00], eax
test eax, eax
je 0x40c29c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call edx
test eax, eax
je 0x40c29c
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.sites.dll
call edi
test eax, eax
je 0x40c10f
push str.set_dpi_flag
push eax
call ebx
mov esi, eax
test esi, esi
je 0x40c10f
push str.SetProcessDPIAware
push str.user32.dll
mov dword [0x4e8be8], 1
call edi
push eax
call ebx
test eax, eax
je 0x40c0ee
call eax
push 1
call esi
lea esi, [ebp - 0x24]
call fcn.0040cfd0
mov eax, dword [eax]
push 0x58
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x4e8be4], eax
call fcn.0040cfa0
mov eax, dword [0x4e8bf4]
test eax, eax
je 0x40c120
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x4e8c00]
mov dword [0x4e8bf4], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0x4e8bf4
push eax
call edx
call fcn.0040c2c0
lea esi, [ebp - 0x1c]
call fcn.0040bda0
mov dword [ebp - 4], 2
mov eax, dword [eax]
mov ebx, dword [0x4e8bf4]
call fcn.0040cf10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c183
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x4e8c00]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
test eax, eax
je 0x40c1a5
push str.DllGetClassObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4e8bdc], eax
mov dword [ebp - 4], 3
mov eax, dword [0x4e8bf4]
test eax, eax
jne 0x40c1bf
push 0x80004003
call fcn.0048ff60
lea esi, [ebp - 0x1c]
call fcn.0040ce90
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0040c6d0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c1e6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str.softmgr_default.ui
push 0x4e8bdc
lea edi, [ebp - 0x20]
call fcn.0040c470
mov byte [ebp - 4], 7
mov edi, dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.00407360
mov bl, 9
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c22b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c236
mov eax, dword [eax]
jmp 0x40c238
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c27c
push ecx
mov ecx, dword [ebp - 0x14]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esp
test eax, eax
je 0x40c25f
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x40c274
push 0x80004003
call fcn.0048ff60
mov byte [ebp - 4], bl
call fcn.0040cdf0
call fcn.0040bdc0
lea edi, [ebp - 0x14]
call fcn.00407310
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40c29c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret