Function at 0x401af1
Capabilities:
Accept command line arguments
Check for time delay via gettickcount
Create thread
Get common file path
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov dword [ebp - 0x20], 0x40af68
mov dword [ebp - 0x1c], 0x401829
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, 0x104
mov esi, 0x40ace0
push edi
push esi
push eax
mov dword [0x40b014], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.SpaceRaces
push 0x40af68
call fcn.004022b0
pop ecx
lea eax, [ebp - 0xc]
pop ecx
mov dword [0x40a9c8], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0x40b228
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp dword [ebp - 0xc], 1
jbe 0x401dc7
mov eax, dword [ebp - 0x10]
push str._chk
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401bfb
push esi
call fcn.00402180
mov dword [ebp - 0xc], eax
dec eax
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
jbe 0x401dc7
cmp byte [eax + 0x40ace0], 0x5c
jne 0x401bed
push ebx
inc eax
push 0x19
push 0x64
push eax
mov dword [ebp - 4], eax
call fcn.00401301
mov eax, dword [ebp - 4]
push str.test
push esi
mov byte [eax + 0x40ace0], bl
call fcn.004022c0
add esp, 0x18
push ebx
push 0x20
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
jne 0x401b9d
jmp 0x401dc7
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4080dc
push dword [eax + 4]
call esi
test eax, eax
jne 0x401d09
call fcn.00401949
test eax, eax
je 0x401dc7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 6
push ebx
push ebx
push ebx
push str.SoftwareSpaceRaces
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401ca0
push edi
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.00402120
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0xffff
push eax
lea eax, [ebp - 0x124]
push str.spr1126_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push 4
push eax
push 4
lea eax, [ebp - 0x124]
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.00402120
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x124]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x124]
push str._spr1126.dat
push eax
call fcn.004022c0
pop ecx
lea eax, [ebp - 0x124]
pop ecx
push ebx
push 0x20
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x401dc7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401dc7
mov eax, dword [ebp - 0x10]
push 0x4080a4
push dword [eax + 4]
call esi
test eax, eax
jne 0x401dc7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 6
push ebx
push ebx
push ebx
push str.SoftwareSpaceRaces
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401d9b
push edi
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.00402120
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0xffff
push eax
lea eax, [ebp - 0x124]
push str.spr1126_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push 4
push eax
push 4
lea eax, [ebp - 0x124]
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x408040]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
push ebx
push ebx
push 0x401752
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10