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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9f15
mov eax, dword fs:[0]
push eax
sub esp, 0xafc
mov eax, dword [0x4e4260]
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 0x4c23d6
mov eax, dword [ebp - 0xb08]
add eax, 0x1c
push eax
call fcn.004085b0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40e816
xor eax, eax
jmp 0x40ed12
call fcn.004054d0
mov ecx, eax
call fcn.004125d0
push eax
lea ecx, [ebp - 0x440]
call fcn.00401600
mov dword [ebp - 4], 0
call fcn.004054d0
mov ecx, eax
call fcn.004124e0
push eax
lea ecx, [ebp - 0x87c]
call fcn.00401600
mov byte [ebp - 4], 1
lea edx, [ebp - 0x87c]
push edx
lea ecx, [ebp - 0xad8]
call fcn.00403440
mov byte [ebp - 4], 2
push 0x4c24c8
lea ecx, [ebp - 0xad8]
call fcn.004034c0
mov word [ebp - 0x854], 0
push 0x206
push 0
lea eax, [ebp - 0x852]
push eax
call fcn.0046f350
add esp, 0xc
lea ecx, [ebp - 0xad8]
call fcn.004017f0
push eax
push 0x104
lea ecx, [ebp - 0x854]
push ecx
push 0x4c24ec
push 0x4c24f4
push 0x4c2500
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0xb08]
call fcn.004017f0
push eax
lea edx, [ebp - 0x854]
push edx
call fcn.004716c4
add esp, 8
test eax, eax
jl 0x40e934
push str.Init_Version_Fialed_
call fcn.004223b0
add esp, 4
mov dword [ebp - 0xadc], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xad8]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x87c]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00401640
mov eax, dword [ebp - 0xadc]
jmp 0x40ed12
mov word [ebp - 0xabc], 0
push 0x206
push 0
lea eax, [ebp - 0xaba]
push eax
call fcn.0046f350
add esp, 0xc
lea ecx, [ebp - 0x440]
call fcn.004017f0
push eax
push 0x104
lea ecx, [ebp - 0xabc]
push ecx
push 0x4c2540
push 0x4c2548
push 0x4c2554
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 0x4c2568
lea ecx, [ebp - 0x8b4]
call fcn.004034c0
mov ecx, dword [ebp - 0xb08]
call fcn.004017f0
push eax
lea eax, [ebp - 0xabc]
push eax
call fcn.004716c4
add esp, 8
test eax, eax
jl 0x40ea76
lea ecx, [ebp - 0x8b4]
call fcn.004017f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ea42
push str.No_Need_Update_And_Dll_Exist
call fcn.004223b0
add esp, 4
mov dword [ebp - 0xae0], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8b4]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xad8]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x87c]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00401640
mov eax, dword [ebp - 0xae0]
jmp 0x40ed12
push 0x4c25bc
lea ecx, [ebp - 0xabc]
push ecx
call fcn.004716c4
add esp, 8
test eax, eax
jne 0x40ea69
push str.Need_Update_For_Dll_First___
call fcn.004223b0
add esp, 4
jmp 0x40ea76
push str.Need_Update_For_Dll_Not_Exist
call fcn.004223b0
add esp, 4
push str.UserData_Need_Update_
call fcn.00422090
add esp, 4
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.0046f350
add esp, 0xc
mov word [ebp - 0x424], 0
push 0x206
push 0
lea eax, [ebp - 0x422]
push eax
call fcn.0046f350
add esp, 0xc
mov word [ebp - 0x64c], 0
push 0x206
push 0
lea ecx, [ebp - 0x64a]
push ecx
call fcn.0046f350
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.00418170
add esp, 8
mov byte [ebp - 4], 4
lea edx, [ebp - 0x64c]
push edx
lea ecx, [ebp - 0x898]
call fcn.004017f0
push eax
call fcn.004170d0
add esp, 8
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0046fd00
add esp, 8
lea edx, [ebp - 0x64c]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.0046fcd6
add esp, 8
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40eb74
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.00401600
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.00401640
cmp dword [ebp - 0x858], 0
je 0x40ec98
lea ecx, [ebp - 0x8b4]
call fcn.004017f0
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00417590
add esp, 8
lea ecx, [ebp - 0x440]
call fcn.004017f0
push eax
mov ecx, dword [ebp - 0xb08]
call fcn.004017f0
push eax
push str.DVer
push 0x4c2674
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.DataDll_Update___
call fcn.00422090
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.00401640
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8b4]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xad8]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x87c]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00401640
mov eax, dword [ebp - 0xb00]
jmp 0x40ed12
push str.DLL_DownLoad_Failed
call fcn.00422090
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.00401640
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8b4]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xad8]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x87c]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00401640
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.0046f960
mov esp, ebp
pop ebp
ret