Function at 0x4680b5
Capabilities:
Check for time delay via gettickcount
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 0x4be710
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov al, byte [ebp + 0x1c]
and byte [ebp + 0x1c], 0xf
and al, 0xc0
mov edi, dword [ebp + 0x10]
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
push 0x4be318
mov dword [ebp - 0x28], eax
mov al, byte [ebp + 0x1c]
push 0x10000
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x38]
push eax
push 0x467ffd
xor esi, esi
xor ebx, ebx
push 0x20000
inc esi
push ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x4683b8
mov dword [ebp + 0xc], 0x270f
cmp dword [ebp - 0x20], ebx
je 0x468154
push ebx
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec dword [ebp + 0xc]
jns 0x468135
jmp 0x46814f
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp - 0x20], ebx
jne 0x468148
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor esi, esi
cmp dword [ebp + 8], 2
mov dword [ebp - 8], str.32770
mov dword [ebp + 0x14], edi
mov dword [ebp + 0xc], ebx
jne 0x468180
mov dword [ebp + 0x14], 0x4add18
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], 0x4add0c
push 1
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], ebx
call fcn.00402c1f
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x10], 0xa
dec dword [ebp - 0x10]
js 0x4681cc
push dword [ebp + 0x14]
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
jne 0x4681cc
cmp dword [ebp + 0xc], ebx
je 0x4681c0
push dword [ebp + 0xc]
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
jne 0x4681cc
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp esi, ebx
je 0x46819a
cmp esi, ebx
mov dword [ebp - 0x10], 0xa
jne 0x46821d
dec dword [ebp - 0x10]
js 0x468205
push dword [ebp + 0x14]
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x46821d
cmp dword [ebp + 0xc], ebx
je 0x4681f9
push dword [ebp + 0xc]
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x46821d
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp esi, ebx
je 0x4681d7
cmp esi, ebx
jne 0x46821d
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.004828a0
add esp, 0x20
mov esi, eax
mov dword [ebp - 0x10], 0x5a
jmp 0x468254
dec dword [ebp - 0x10]
js 0x468258
push dword [ebp + 0x14]
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
jne 0x468258
cmp dword [ebp + 0xc], ebx
je 0x46824c
push dword [ebp + 0xc]
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
jne 0x468258
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp esi, ebx
je 0x468226
mov dword [ebp - 0x10], 0x5a
jmp 0x46828b
dec dword [ebp - 0x10]
js 0x46828f
push dword [ebp + 0x14]
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x46828f
cmp dword [ebp + 0xc], ebx
je 0x468283
push dword [ebp + 0xc]
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x46828f
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp esi, ebx
je 0x468261
cmp dword [ebp + 8], 2
jne 0x4682a3
cmp esi, ebx
je 0x4682a3
push dword [ebp + 0x10]
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp dword [ebp + 8], 1
mov dword [ebp + 0xc], eax
jne 0x4682c1
cmp esi, ebx
je 0x4682c1
mov eax, dword [0x4bdc08]
cmp eax, ebx
je 0x4682c1
mov dword [eax], esi
cmp byte [ebp - 1], 0x80
je 0x46835b
cmp dword [ebp + 8], 1
jne 0x4682d9
cmp esi, ebx
je 0x46835b
cmp dword [ebp + 8], 2
jne 0x468332
cmp dword [ebp + 0x18], ebx
jle 0x4683b0
jmp 0x4682f8
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x468300
cmp byte [0x4bc2c0], bl
jg 0x4682ea
push ebx
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
jmp 0x46835b
cmp dword [ebp + 0x18], ebx
jle 0x46831c
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x468345
push dword [ebp + 0x10]
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
je 0x46833a
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4bc2c0], bl
jg 0x468309
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x46834b
mov eax, dword [eax]
jmp 0x46834d
movzx eax, byte [ebp + 0x1c]
jmp 0x46834d
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x4bdc08]
cmp eax, ebx
je 0x46835b
mov dword [eax], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x468368
mov dword [eax], 0xffffffff
cmp esi, ebx
je 0x46839a
push ebx
push ebx
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 2
push 0x111
push esi
call edi
push ebx
push 7
push 0x111
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00402c55
push 0x4be710
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret