Function at 0x405d40
Capabilities:
Check os version
Listen for remote procedure calls
Terminate process

Disassembly:
sub esp, 0x11c
mov eax, dword [0x43d01c]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esi + 8]
push ebx
push ebp
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x114
lea ecx, [esp + 0x14]
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str.Current_version:__d___d_
call fcn.00401020
add esp, 0xc
cmp dword [esp + 0x14], 6
jb 0x405feb
push esi
call fcn.00405c30
cmp dword [esi + 0x18], 0
je 0x405f22
cmp dword [esi + 0x14], 0
je 0x405e59
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov ebp, dword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
mov edx, dword [esi + 0x14]
push 0x45
push edx
call edi
push 0
push str.DNSResolver
push 0x14
push 0x43d060
call ebx
mov dword [esi + 0x10], eax
test eax, eax
jne 0x405dd6
push eax
push 0x4d2
push eax
push eax
push eax
push 0x439588
call ebp
mov dword [esi + 0x10], eax
test eax, eax
jne 0x405dd6
push eax
push 0x43a0b8
call fcn.00401020
add esp, 8
push 0
push 0xa
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
push eax
push 0x43a0cc
mov dword [esi + 0x10], eax
call fcn.00401020
push str.start_dns_cache_successfully_
call fcn.00401020
add esp, 0xc
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004035d2
add esp, 0x11c
ret
push 0
push str.DNSResolver
push 0x14
push 0x43d060
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x405efc
push eax
push 0x4d2
push eax
push eax
push eax
push 0x439588
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x405ed6
push eax
push 0x43a11c
call fcn.00401020
add esp, 8
push 0
push 0xa
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
push eax
push 0x43a130
mov dword [esi + 0x10], eax
call fcn.00401020
add esp, 8
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004035d2
add esp, 0x11c
ret
push eax
push 0x43a144
call fcn.00401020
add esp, 8
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004035d2
add esp, 0x11c
ret
push eax
push 0x43a17c
call fcn.00401020
add esp, 8
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004035d2
add esp, 0x11c
ret
push 0
push str.DNSResolver
push 0x14
push 0x43d060
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x405fc5
push eax
push 0x4d2
push eax
push eax
push eax
push 0x439588
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x405f9f
push eax
push 0x43a1b4
call fcn.00401020
add esp, 8
push 0
push 0xa
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
push eax
push 0x43a1c8
mov dword [esi + 0x10], eax
call fcn.00401020
add esp, 8
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004035d2
add esp, 0x11c
ret
push eax
push str.start_dns_cache_failed1__d_
call fcn.00401020
add esp, 8
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004035d2
add esp, 0x11c
ret
push eax
push str.start_dns_cache_failed2__d_
call fcn.00401020
add esp, 8
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004035d2
add esp, 0x11c
ret
mov dword [esp + 0xc], vtable.CWinServiceManager.0
call fcn.00404c30
mov edi, dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov ebp, dword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
push 1
call ebx
push 0
push str.DNSResolver
push 0x14
push 0x43d060
call edi
mov dword [esi + 0x10], eax
test eax, eax
jne 0x406010
push eax
push 0x4d2
push eax
push eax
push eax
push 0x438b08
call ebp
mov dword [esi + 0x10], eax
test eax, eax
jne 0x406010
push eax
push 0xa
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov ecx, dword [esp + 0x124]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov dword [esi + 0x10], eax
call fcn.004035d2
add esp, 0x11c
ret