Function at 0x4065b0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x451130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test esi, esi
je 0x4067b7
push 0x449c28
push esi
call fcn.0040bb5a
add esp, 8
test eax, eax
jne 0x406824
push str._RegServer
push esi
call fcn.0040bb5a
add esp, 8
test eax, eax
jne 0x406824
push 0x449c58
push esi
call fcn.0040bb5a
add esp, 8
test eax, eax
jne 0x4067d1
push str._UnregServer
push esi
call fcn.0040bb5a
add esp, 8
test eax, eax
jne 0x4067d1
push 0x449c90
push esi
call fcn.0040bb5a
add esp, 8
test eax, eax
jne 0x40665b
push str._Embedding
push esi
call fcn.0040bb5a
add esp, 8
test eax, eax
je 0x4067b7
push 8
call fcn.0040bf22
add esp, 4
test eax, eax
je 0x406674
mov ecx, eax
call fcn.00403c50
mov esi, eax
jmp 0x406676
xor esi, esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
push 1
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], 0
call dword [sym.imp.OLEAUT32.dll_SystemTimeToVariantTime]
lea eax, [ebp - 0x214]
push eax
push 1
push 4
push esi
push 0x4495f4
mov dword [ebp - 0x214], 0
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
test eax, eax
js 0x4068a9
push ebx
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0x64
push 1
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_SetTimer]
xor esi, esi
push esi
push esi
push esi
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x406775
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [ebx]
cmp dword [ebp - 0x22c], 0x113
jne 0x406744
test esi, esi
jne 0x406739
mov ecx, ebx
call fcn.004018a0
test eax, eax
je 0x406733
cmp dword [0x454b3c], esi
jne 0x406744
call edi
mov esi, eax
jmp 0x406744
call edi
sub eax, esi
cmp eax, 0xc8
ja 0x406775
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x406710
test ebx, ebx
je 0x406780
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x210]
pop ebx
test ecx, ecx
je 0x40679b
mov dword [ebp - 0x210], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [ebp - 0x214]
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4067b7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aeb1
mov esp, ebp
pop ebp
ret 0x10
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor dl, dl
lea ecx, [ebp - 0x20c]
call fcn.00406470
push 1
push 0
push 0
push 1
push 0x4495e4
call dword [sym.imp.OLEAUT32.dll_VarDecFix]
xor edx, edx
test eax, eax
mov ecx, 0x80040200
cmovns ecx, edx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aeb1
mov esp, ebp
pop ebp
ret 0x10
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dl, 1
lea ecx, [ebp - 0x20c]
call fcn.00406470
lea eax, [ebp - 0x210]
push eax
push 1
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], 0
call dword [sym.imp.OLEAUT32.dll_SystemTimeToVariantTime]
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.OLEAUT32.dll_QueryPathOfRegTypeLib]
xor ecx, ecx
test eax, eax
mov esi, 0x80040200
cmovns esi, ecx
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x406895
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040aeb1
mov esp, ebp
pop ebp
ret 0x10
mov edx, eax
call fcn.004068c0
call dword [sym.imp.ole32.dll_CoUninitialize]
push 1
call fcn.0040c6e4
int3