Function at 0x40a710
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x504fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x50]
lea eax, [esp + 0x18]
push str.360Base.dll
push eax
call fcn.0045b262
xor ebx, ebx
mov dword [esp + 0x50], ebx
mov eax, dword [eax]
push eax
call fcn.00407d50
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a783
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x1c]
lea edi, [ebp + 0x1c]
cmp dword [ecx - 0xc], ebx
jne 0x40abdc
push ebx
lea edx, [esp + 0x34]
push edx
lea eax, [ebp + 0x14]
mov esi, 1
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call sub.gdiplus.dll_GdiplusStartup
lea ecx, [esp + 0x18]
push str.Themes_softmgr_theme_
push ecx
call fcn.0045b533
add esp, 8
mov dword [esp + 0x48], esi
call fcn.00407fc0
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a7f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp + 8]
mov edi, 0x514cc0
call fcn.00409920
cmp dword [esi], ebx
jne 0x40a814
mov edi, 0x514ccc
call fcn.00409920
lea esi, [esp + 0x50]
call fcn.0040a610
mov dword [esp + 0x48], 2
mov eax, dword [esp + 0x50]
mov edi, eax
cmp eax, ebx
je 0x40a921
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a921
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0045afbc
add esp, 4
test eax, eax
jne 0x40a862
call fcn.00433d00
cmp eax, ebx
je 0x40a921
lea esi, [esp + 0x18]
call fcn.0040a610
mov byte [esp + 0x48], 3
mov eax, dword [eax]
call fcn.0040b110
mov esi, eax
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a89e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x40abb4
mov eax, dword [0x54f518]
cmp eax, ebx
jne 0x40a8ca
push str.GetSmartInitializer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x40a8c3
xor eax, eax
jmp 0x40a8ca
call eax
mov dword [0x54f518], eax
mov dword [ebp + 0x18], eax
cmp eax, ebx
jne 0x40a8df
lea ecx, [esp + 0x50]
call fcn.004087f0
jmp 0x40abdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call edx
test eax, eax
je 0x40a8d1
mov eax, dword [ebp + 0x18]
mov edi, dword [eax]
lea esi, [ebp + 4]
add edi, 0x2c
call fcn.0040adb0
mov ecx, dword [ebp + 0x18]
mov edx, dword [edi]
push eax
push ecx
call edx
mov ecx, ebp
call fcn.0040ac00
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
push ebp
call fcn.0040b1f0
cmp dword [esp + 0x54], ebx
je 0x40a8d1
cmp dword [ebp + 4], ebx
sete al
test al, al
je 0x40a97e
lea eax, [esp + 0x54]
push eax
mov ecx, str.sites.dll
call fcn.00403270
add esp, 4
mov byte [esp + 0x48], 4
mov eax, dword [eax]
push ebp
call fcn.0040a630
test al, al
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x54]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a974
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x40a8d1
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.sites.dll
call edi
cmp eax, ebx
je 0x40abb4
push str.set_dpi_flag
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40a9ed
push str.SetProcessDPIAware
push str.user32.dll
mov dword [ebp + 0x10], 1
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40a9c5
call eax
push 1
call esi
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0x58
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
lea esi, [esp + 0x28]
mov dword [ebp + 0xc], eax
call fcn.0040b0c0
mov eax, dword [ebp + 4]
cmp eax, ebx
jne 0x40a9fe
push 0x80004003
call fcn.004cb0d0
lea esi, [esp + 0x18]
call fcn.0040a370
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 5
call fcn.0040add0
mov byte [esp + 0x48], 7
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40aa2a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x54]
cmp esi, ebx
je 0x40ab85
lea eax, [esp + 0x1c]
push eax
mov ecx, str.themesdefault_reader_theme.ui
call fcn.00403270
add esp, 4
mov byte [esp + 0x48], 8
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov edi, eax
call fcn.0040a2d0
lea ecx, [esp + 0x1c]
call fcn.004087f0
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x40aa70
mov eax, dword [edi]
jmp 0x40aa72
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ab7c
push ecx
mov eax, esp
mov dword [esp + 0x2c], esp
mov dword [eax], edi
cmp edi, ebx
je 0x40aa98
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0x4c], 0xb
mov bl, 0xa
mov ecx, esi
mov byte [esp + 0x4c], bl
call fcn.0040b020
lea edx, [esp + 0x20]
push edx
mov ecx, str.themesdefault_theme.xml
call fcn.00403270
mov byte [esp + 0x4c], 0xc
mov eax, dword [eax]
mov ecx, esp
mov dword [esp + 0x2c], esp
push ecx
mov edi, eax
call fcn.0040a2d0
mov byte [esp + 0x4c], 0xd
mov ecx, esi
mov byte [esp + 0x4c], 0xc
call fcn.0040af80
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
call fcn.004087f0
mov eax, dword [ebp + 4]
test eax, eax
jne 0x40aafd
push 0x80004003
call fcn.004cb0d0
lea esi, [esp + 0x28]
call fcn.0040a370
mov byte [esp + 0x48], 0xe
mov esi, dword [eax]
test esi, esi
jne 0x40ab1b
push 0x80004003
call fcn.004cb0d0
lea edx, [esp + 0x24]
push edx
mov ecx, str.themesdefault_theme.xml
call fcn.00403270
add esp, 4
mov byte [esp + 0x48], 0xf
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x24]
call fcn.00407f30
mov byte [esp + 0x48], 0x10
mov eax, dword [eax]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x18]
push eax
push esi
call edx
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x24]
call fcn.004087f0
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40ab76
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x54]
xor ebx, ebx
lea edi, [esp + 0x18]
call fcn.0040a390
mov byte [esp + 0x48], 2
cmp esi, ebx
je 0x40ab96
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40abd0
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40abdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8