Function at 0x1000f170
Capabilities:
Accept command line arguments
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c4ec
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x10051114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x144], eax
call fcn.1001d1f0
push eax
call fcn.1000f540
add esp, 4
call eax
mov edi, eax
mov dword [ebp - 0x154], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x1000f1e0
mov eax, 0x80004003
jmp 0x1000f516
push 0xf01ff
push esi
push edi
call fcn.1001d2a0
push eax
call fcn.1000f540
add esp, 4
call eax
mov esi, eax
mov dword [ebp - 0x158], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x1000f386
lea eax, [ebp - 0x148]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call fcn.1001d8a0
push eax
call fcn.1000f540
add esp, 4
call eax
test eax, eax
je 0x1000f375
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x1000f244
cmp eax, 3
jne 0x1000f375
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [ebp - 0x30], 3
mov ecx, 0x2710
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x140], eax
jne 0x1000f300
nop word [eax + eax]
mov eax, 0xcccccccd
mul dword [ebp - 0x1c]
shr edx, 3
cmp edx, 0x3e8
jae 0x1000f28a
mov edx, 0x3e8
jmp 0x1000f293
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x148]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call fcn.1001d8a0
push eax
call fcn.1000f540
add esp, 4
call eax
test eax, eax
je 0x1000f375
mov eax, dword [ebp - 0x140]
cmp dword [ebp - 0x20], eax
jbe 0x1000f2e0
call ebx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x140], ecx
jmp 0x1000f2f1
call ebx
sub eax, dword [ebp - 0x13c]
cmp eax, dword [ebp - 0x1c]
ja 0x1000f375
cmp dword [ebp - 0x30], 3
mov ecx, 0x2710
je 0x1000f270
push dword [ebp - 0x144]
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x13c], 0
call fcn.1000cc00
push dword [eax]
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 2
call fcn.10002350
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 4
cmp eax, ecx
je 0x1000f353
push eax
call fcn.100231d9
add esp, 4
mov eax, dword [ebp - 0x150]
cmp dword [eax - 0xc], 0
je 0x1000f3a1
lea ecx, [ebp - 0x14c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x13c], eax
jmp 0x1000f3a3
push esi
call fcn.100189e0
push eax
call fcn.1000f540
add esp, 4
call eax
push edi
call fcn.100189e0
push eax
call fcn.1000f540
add esp, 4
call eax
mov ebx, 0x80004005
jmp 0x1000f500
xor eax, eax
push eax
push dword [ebp - 0x14c]
push esi
call fcn.1001ee70
push eax
call fcn.1000f540
add esp, 4
call eax
test eax, eax
jne 0x1000f3c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000f3eb
lea eax, [ebp - 0x148]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call fcn.1001d8a0
push eax
call fcn.1000f540
add esp, 4
call eax
test eax, eax
jne 0x1000f428
push esi
call fcn.100189e0
push eax
call fcn.1000f540
add esp, 4
call eax
push edi
call fcn.100189e0
push eax
call fcn.1000f540
add esp, 4
call eax
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x1000f41e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, 0x80004005
jmp 0x1000f4f5
call ebx
cmp dword [ebp - 0x30], 2
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x20]
jne 0x1000f4c0
mov edi, eax
nop
mov eax, 0xcccccccd
mul dword [ebp - 0x1c]
shr edx, 3
cmp edx, 0x3e8
jae 0x1000f45a
mov edx, 0x3e8
jmp 0x1000f468
cmp edx, 0x2710
mov eax, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x148]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call fcn.1001d8a0
push eax
call fcn.1000f540
add esp, 4
call eax
test eax, eax
je 0x1000f4ba
cmp dword [ebp - 0x20], edi
jbe 0x1000f4a7
call ebx
mov ecx, dword [ebp - 0x20]
mov edi, ecx
mov dword [ebp - 0x144], eax
jmp 0x1000f4b4
call ebx
sub eax, dword [ebp - 0x144]
cmp eax, dword [ebp - 0x1c]
ja 0x1000f4ba
cmp dword [ebp - 0x30], 2
je 0x1000f440
mov edi, dword [ebp - 0x154]
push esi
call fcn.100189e0
push eax
call fcn.1000f540
add esp, 4
call eax
push edi
call fcn.100189e0
push eax
call fcn.1000f540
add esp, 4
call eax
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x1000f4f3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
lea ecx, [ebp - 0x150]
call fcn.10002470
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x1000f511
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100178b1
mov esp, ebp
pop ebp
ret