Function at 0x40e570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c8a8
push eax
mov eax, 0x3554
mov dword fs:[0], esp
call fcn.00413a30
push ebx
push esi
push edi
mov dword [ebp - 0x14], 0
call fcn.0040fe60
mov ebx, eax
test ebx, ebx
je 0x40eb5e
mov ecx, 0x20a
xor eax, eax
lea edi, [ebp - 0x14b3]
mov byte [ebp - 0x14b4], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x4b]
mov byte [ebp - 0x4c], 0
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00413a30
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14b4]
push eax
push esi
push str._s_dPUB.sE.360.cN
push 0x829
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [ebp - 0x4c]
push 0x21
lea eax, [ebp - 0x14b4]
push edx
push eax
call fcn.0040f8e0
xor esi, esi
mov ecx, 0x414
xor eax, eax
lea edi, [ebp - 0x355e]
mov word [ebp - 0x3560], si
add esp, 0x20
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x4c]
test ecx, ecx
stosw word es:[edi], ax
jne 0x40e657
xor edi, edi
jmp 0x40e68c
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00413a30
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x4c]
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
mov ecx, dword [ebp + 8]
push edi
push ecx
push ebx
push str.http:__pub.se.360.cn_main_getres_mid_stype_dverify_s
lea edx, [ebp - 0x3560]
push 0x829
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x252]
mov word [ebp - 0x254], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x254]
push esi
push eax
push esi
push esi
push esi
push 0x2710
push 1
push esi
push 1
push esi
lea ecx, [ebp - 0x3560]
push esi
push ecx
call fcn.00409cc0
add esp, 0x48
lea edx, [ebp - 0x254]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40eb5e
lea eax, [ebp - 0x254]
push eax
push 0x4281f8
call fcn.00402aa0
add esp, 8
cmp eax, esi
je 0x40eb5b
cmp dword [0x428204], 8
jne 0x40eb5b
call fcn.0040ece0
test eax, eax
je 0x40eb5b
mov cl, byte [ebp + 0xb]
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], cl
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov eax, dword [0x42825c]
mov dword [ebp - 4], esi
cmp eax, esi
jne 0x40e757
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [ebp - 0x10], eax
jmp 0x40e75a
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x40e762
xor edi, edi
jmp 0x40e792
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00413a30
mov edx, dword [ebp - 0x10]
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00401d30
mov esi, dword [ebp - 0x20]
add esp, 8
test esi, esi
je 0x40eb52
mov ecx, dword [ebp - 0x1c]
mov eax, 0x7d6d811b
sub ecx, esi
imul ecx
sar edx, 0xc
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 4
jne 0x40eb52
add esi, 0x1054
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40eb4f
mov edx, dword [ebp - 0x20]
add edx, 0x724c
push edx
call dword [sym.imp.MSVCRT.dll__wtoi]
mov ecx, dword [ebp + 8]
add esp, 4
cmp ecx, eax
jne 0x40eb4f
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x45a]
mov word [ebp - 0x45c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x45c]
push 0x82a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x45c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebx, dword [0x42821c]
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x254]
test ebx, ebx
rep stosd dword es:[edi], eax
jne 0x40e862
mov ebx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test ebx, ebx
jne 0x40e862
xor edi, edi
jmp 0x40e88f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00413a30
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [ebp - 0x254]
push 0
push edx
push 0
push 0
push 0
push 0x2710
push 1
push 0
push 1
push 0
push 0
push edi
call fcn.00409cc0
add esp, 0x30
cmp word [ebp - 0x254], 0
je 0x40eb4f
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40eb4f
mov eax, dword [0x42824c]
test eax, eax
jne 0x40e8e7
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
lea ecx, [ebp - 0x254]
push eax
push ecx
call fcn.0040e420
mov ecx, 0x20a
xor eax, eax
lea edi, [ebp - 0x250b]
mov byte [ebp - 0x250c], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x20a
xor eax, eax
lea edi, [ebp - 0x1cdf]
mov byte [ebp - 0x1ce0], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x20a
xor eax, eax
lea edi, [ebp - 0xc87]
mov edx, dword [ebp - 0x20]
mov byte [ebp - 0xc88], 0
add esp, 0xc
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [edx + 0x724c]
test edi, edi
jne 0x40e955
mov dword [ebp - 0x10], edi
jmp 0x40e987
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00413a30
mov esi, esp
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x20]
add eax, 0x51a4
test eax, eax
mov dword [ebp + 8], eax
jne 0x40e9a1
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x28], eax
jmp 0x40e9d8
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebx
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00413a30
mov ecx, dword [ebp + 8]
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x28], esi
mov edx, dword [ebp - 0x20]
lea eax, [edx + 0x30fc]
test eax, eax
mov dword [ebp + 8], eax
jne 0x40e9ed
mov dword [ebp - 0x14], eax
jmp 0x40ea1e
push eax
call ebx
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00413a30
mov eax, dword [ebp + 8]
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + 0x1054]
test eax, eax
mov dword [ebp + 8], eax
jne 0x40ea32
xor edi, edi
jmp 0x40ea60
push eax
call ebx
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.00413a30
mov edx, dword [ebp + 8]
mov edi, esp
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [0x4282c0]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
push eax
mov eax, dword [ebp - 0x14]
push ecx
push edx
push eax
push edi
push str._s_s_s_s_dPUB.sE.360.cN
lea ecx, [ebp - 0x250c]
push 0x829
push ecx
call esi
lea edx, [ebp - 0x1ce0]
push 0x829
lea eax, [ebp - 0x250c]
push edx
push eax
call fcn.0040f8e0
mov eax, dword [0x42825c]
add esp, 0x2c
test eax, eax
jne 0x40eab5
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [0x4282c0]
lea ecx, [ebp - 0x1ce0]
push ecx
push edx
push eax
push str._sclickpos_dverify_s
lea eax, [ebp - 0xc88]
push 0x829
push eax
call esi
lea ecx, [ebp - 0xc88]
add esp, 0x18
test ecx, ecx
jne 0x40eae8
xor edi, edi
jmp 0x40eb21
lea edx, [ebp - 0xc88]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00413a30
mov edi, esp
push esi
push edi
lea eax, [ebp - 0xc88]
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x254]
push 0
push ecx
push 0
push 0
push 0
push 0x2710
push 1
push 0
push 1
push 0
push 0
push edi
call fcn.00409cc0
add esp, 0x30
mov dword [ebp - 0x14], 1
mov esi, dword [ebp - 0x20]
push esi
call fcn.00410c2e
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x356c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret