Function at 0x40e170
Capabilities:
Check if file exists
Print debug messages
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4452d0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4521d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x45392c]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x45392c
mov dword [ebp - 4], edi
call edx
add eax, 0x10
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
push str.kbasesrv.exe
mov byte [ebp - 4], 1
call fcn.0040d790
call fcn.0040d470
mov esi, dword [ebp - 0x3c]
add esp, 8
cmp eax, edi
jne 0x40e224
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e206
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041d8d0
mov esp, ebp
pop ebp
ret
mov eax, esi
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], edi
mov word [ebp - 0x78], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40e237
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.00402e60
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x31]
mov byte [ebp - 4], 2
call fcn.0040dac0
mov ebx, eax
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x31]
mov byte [ebp - 4], 3
call fcn.0040da80
mov ecx, dword [ebx]
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040a9b0
add esp, 0xc
test al, al
mov eax, dword [ebp - 0x4c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e2a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e2cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x64], 8
mov byte [ebp - 4], 1
jb 0x40e2e1
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.0041d698
add esp, 4
test bl, bl
je 0x40e30e
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call edi
push str.strServicePath_verify_signedfile_error______________________
call edi
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40e1fa
push 0x5c
push esi
call fcn.0041e8bb
add esp, 8
cmp eax, edi
je 0x40e1e6
sub eax, esi
sar eax, 1
js 0x40e1e6
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040b580
push str.pluginsdgext.dll
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.0040c120
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e37f
mov eax, dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push eax
call esi
push str.strPluginsPath_error______________________
call esi
lea ecx, [ebp - 0x38]
call fcn.00407060
lea ecx, [ebp - 0x3c]
call fcn.00407060
jmp 0x40e206
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00403340
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x31]
mov byte [ebp - 4], 5
call fcn.0040db00
mov esi, eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x31]
mov byte [ebp - 4], 6
call fcn.0040da80
mov ecx, dword [esi]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x7c]
push ecx
call fcn.0040a9b0
add esp, 0xc
test al, al
lea ecx, [ebp - 0x4c]
sete bl
call fcn.00407060
lea ecx, [ebp - 0x44]
call fcn.00407060
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.00402250
test bl, bl
je 0x40e3fa
mov edx, dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edx
call esi
push str.strPluginsPath_verify_signedfile_error______________________
jmp 0x40e368
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x60]
push eax
push str.http:__www.drivergenius.com_inc_tpset.html
mov byte [ebp - 4], 7
call fcn.0040de70
add esp, 8
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 8
call fcn.0040b110
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.0040b0e0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.0040e140
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x40e477
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 0x4c], 7
je 0x40e4a1
cmp dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x2c]
jae 0x40e495
lea eax, [ebp - 0x2c]
push eax
call fcn.0042048b
add esp, 4
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.0040db40
add esp, 8
push str.config.ini
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.0040c120
mov ecx, dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push edi
push 0x448a7c
push str.Channel
call esi
cmp eax, 0x515
je 0x40e4fa
lea ecx, [ebp - 0x40]
call fcn.00407060
lea ecx, [ebp - 0x30]
call fcn.00402b10
lea ecx, [ebp - 0x60]
call fcn.0040b700
jmp 0x40e36a
push edi
call fcn.0041f3a3
mov edx, dword [ebp - 0x40]
add esp, 4
push edx
push edi
push str.InstallTime
push str.Generic
mov ebx, eax
call esi
mov edi, eax
test edi, edi
je 0x40e4dd
mov ecx, ebx
sub ecx, edi
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov esi, edx
shr esi, 0x1f
add esi, edx
js 0x40e4dd
lea ecx, [ebp - 0x44]
call fcn.004073e0
push edi
mov edi, dword [ebp - 0x4c]
push ebx
push edi
push esi
lea eax, [ebp - 0x44]
push str.day___d_day1___d__nCurrTime___d_nInstallTime___d
push eax
mov byte [ebp - 4], 0xa
call fcn.00407a50
mov ecx, dword [ebp - 0x44]
add esp, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x44]
call fcn.00407060
lea ecx, [ebp - 0x40]
call fcn.00407060
lea ecx, [ebp - 0x30]
call fcn.00402b10
lea ecx, [ebp - 0x60]
call fcn.0040b700
lea ecx, [ebp - 0x38]
call fcn.00407060
lea ecx, [ebp - 0x3c]
call fcn.00407060
cmp esi, edi
setle al
jmp 0x40e208