Function at 0x40e7e0
Capabilities:
Check if file exists
Delete file
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9a85
mov eax, dword fs:[0]
push eax
sub esp, 0xafc
mov eax, dword [0x4e3260]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb08], ecx
push 0x4c13d6
mov eax, dword [ebp - 0xb08]
add eax, 0x1c
push eax
call fcn.00408fd0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40e836
xor eax, eax
jmp 0x40ed32
call fcn.004054d0
mov ecx, eax
call fcn.004127a0
push eax
lea ecx, [ebp - 0x440]
call fcn.00401610
mov dword [ebp - 4], 0
call fcn.004054d0
mov ecx, eax
call fcn.004126b0
push eax
lea ecx, [ebp - 0x87c]
call fcn.00401610
mov byte [ebp - 4], 1
lea edx, [ebp - 0x87c]
push edx
lea ecx, [ebp - 0xad8]
call fcn.00403440
mov byte [ebp - 4], 2
push 0x4c14c8
lea ecx, [ebp - 0xad8]
call fcn.004034c0
mov word [ebp - 0x854], 0
push 0x206
push 0
lea eax, [ebp - 0x852]
push eax
call fcn.0046ee70
add esp, 0xc
lea ecx, [ebp - 0xad8]
call fcn.00401680
push eax
push 0x104
lea ecx, [ebp - 0x854]
push ecx
push 0x4c14ec
push 0x4c14f4
push 0x4c1500
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0xb08]
call fcn.00401680
push eax
lea edx, [ebp - 0x854]
push edx
call fcn.004711e4
add esp, 8
test eax, eax
jl 0x40e954
push str.Init_Version_Fialed_
call fcn.00422140
add esp, 4
mov dword [ebp - 0xadc], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xad8]
call fcn.00401650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x87c]
call fcn.00401650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00401650
mov eax, dword [ebp - 0xadc]
jmp 0x40ed32
mov word [ebp - 0xabc], 0
push 0x206
push 0
lea eax, [ebp - 0xaba]
push eax
call fcn.0046ee70
add esp, 0xc
lea ecx, [ebp - 0x440]
call fcn.00401680
push eax
push 0x104
lea ecx, [ebp - 0xabc]
push ecx
push 0x4c1540
push 0x4c1548
push 0x4c1554
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x87c]
push edx
lea ecx, [ebp - 0x8b4]
call fcn.00403440
mov byte [ebp - 4], 3
push 0x4c1568
lea ecx, [ebp - 0x8b4]
call fcn.004034c0
mov ecx, dword [ebp - 0xb08]
call fcn.00401680
push eax
lea eax, [ebp - 0xabc]
push eax
call fcn.004711e4
add esp, 8
test eax, eax
jl 0x40ea96
lea ecx, [ebp - 0x8b4]
call fcn.00401680
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ea62
push str.No_Need_Update_And_Dll_Exist
call fcn.00422140
add esp, 4
mov dword [ebp - 0xae0], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8b4]
call fcn.00401650
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xad8]
call fcn.00401650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x87c]
call fcn.00401650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00401650
mov eax, dword [ebp - 0xae0]
jmp 0x40ed32
push 0x4c15bc
lea ecx, [ebp - 0xabc]
push ecx
call fcn.004711e4
add esp, 8
test eax, eax
jne 0x40ea89
push str.Need_Update_For_Dll_First___
call fcn.00422140
add esp, 4
jmp 0x40ea96
push str.Need_Update_For_Dll_Not_Exist
call fcn.00422140
add esp, 4
push str.UserData_Need_Update_
call fcn.00421e20
add esp, 4
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.0046ee70
add esp, 0xc
mov word [ebp - 0x424], 0
push 0x206
push 0
lea eax, [ebp - 0x422]
push eax
call fcn.0046ee70
add esp, 0xc
mov word [ebp - 0x64c], 0
push 0x206
push 0
lea ecx, [ebp - 0x64a]
push ecx
call fcn.0046ee70
add esp, 0xc
lea edx, [ebp - 0x424]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebp - 0xb08]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x898]
push ecx
call fcn.00418350
add esp, 8
mov byte [ebp - 4], 4
lea edx, [ebp - 0x64c]
push edx
lea ecx, [ebp - 0x898]
call fcn.00401680
push eax
call fcn.004172b0
add esp, 8
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0046f820
add esp, 8
lea edx, [ebp - 0x64c]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.0046f7f6
add esp, 8
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40eb94
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x860]
call fcn.004013e0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0xafc]
call fcn.00401610
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xafc]
push ecx
lea edx, [ebp - 0x898]
push edx
lea ecx, [ebp - 0x860]
call fcn.00401480
movzx eax, al
mov dword [ebp - 0x858], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xafc]
call fcn.00401650
cmp dword [ebp - 0x858], 0
je 0x40ecb8
lea ecx, [ebp - 0x8b4]
call fcn.00401680
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00417770
add esp, 8
lea ecx, [ebp - 0x440]
call fcn.00401680
push eax
mov ecx, dword [ebp - 0xb08]
call fcn.00401680
push eax
push str.DVer
push 0x4c1674
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.DataDll_Update___
call fcn.00421e20
add esp, 4
mov dword [ebp - 0xb00], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x860]
call fcn.00401470
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x898]
call fcn.00401650
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8b4]
call fcn.00401650
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xad8]
call fcn.00401650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x87c]
call fcn.00401650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00401650
mov eax, dword [ebp - 0xb00]
jmp 0x40ed32
push str.DLL_DownLoad_Failed
call fcn.00421e20
add esp, 4
mov dword [ebp - 0xb04], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x860]
call fcn.00401470
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x898]
call fcn.00401650
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8b4]
call fcn.00401650
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xad8]
call fcn.00401650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x87c]
call fcn.00401650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00401650
mov eax, dword [ebp - 0xb04]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f480
mov esp, ebp
pop ebp
ret