Function at 0x45be22
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 0x4a6630
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 0x4a622c
mov dword [ebp - 0x28], eax
mov al, byte [ebp + 0x1c]
push 0x10000
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x38]
push eax
push 0x45bd6c
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 0x45c124
mov dword [ebp + 0xc], 0x270f
cmp dword [ebp - 0x20], ebx
je 0x45bec1
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp + 0xc]
jns 0x45bea2
jmp 0x45bebc
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x20], ebx
jne 0x45beb5
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 0x45beed
mov dword [ebp + 0x14], 0x496684
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], 0x496678
push 1
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], ebx
call fcn.0042dd93
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x10], 0xa
dec dword [ebp - 0x10]
js 0x45bf39
push dword [ebp + 0x14]
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
jne 0x45bf39
cmp dword [ebp + 0xc], ebx
je 0x45bf2d
push dword [ebp + 0xc]
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
jne 0x45bf39
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, ebx
je 0x45bf07
cmp esi, ebx
mov dword [ebp - 0x10], 0xa
jne 0x45bf89
dec dword [ebp - 0x10]
js 0x45bf72
push dword [ebp + 0x14]
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x45bf89
cmp dword [ebp + 0xc], ebx
je 0x45bf66
push dword [ebp + 0xc]
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x45bf89
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, ebx
je 0x45bf44
cmp esi, ebx
jne 0x45bf89
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.0046deae
add esp, 0x1c
mov esi, eax
mov dword [ebp - 0x10], 0x5a
jmp 0x45bfc0
dec dword [ebp - 0x10]
js 0x45bfc4
push dword [ebp + 0x14]
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
jne 0x45bfc4
cmp dword [ebp + 0xc], ebx
je 0x45bfb8
push dword [ebp + 0xc]
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
jne 0x45bfc4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, ebx
je 0x45bf92
mov dword [ebp - 0x10], 0x5a
jmp 0x45bff7
dec dword [ebp - 0x10]
js 0x45bffb
push dword [ebp + 0x14]
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x45bffb
cmp dword [ebp + 0xc], ebx
je 0x45bfef
push dword [ebp + 0xc]
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x45bffb
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, ebx
je 0x45bfcd
cmp dword [ebp + 8], 2
jne 0x45c00f
cmp esi, ebx
je 0x45c00f
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 0x45c02d
cmp esi, ebx
je 0x45c02d
mov eax, dword [0x4a5ba4]
cmp eax, ebx
je 0x45c02d
mov dword [eax], esi
cmp byte [ebp - 1], 0x80
je 0x45c0c7
cmp dword [ebp + 8], 1
jne 0x45c045
cmp esi, ebx
je 0x45c0c7
cmp dword [ebp + 8], 2
jne 0x45c09e
cmp dword [ebp + 0x18], ebx
jle 0x45c11c
jmp 0x45c064
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x45c06c
cmp byte [0x4a4290], bl
jg 0x45c056
push ebx
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
jmp 0x45c0c7
cmp dword [ebp + 0x18], ebx
jle 0x45c088
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x45c0b1
push dword [ebp + 0x10]
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
je 0x45c0a6
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x4a4290], bl
jg 0x45c075
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x45c0b7
mov eax, dword [eax]
jmp 0x45c0b9
movzx eax, byte [ebp + 0x1c]
jmp 0x45c0b9
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x4a5ba4]
cmp eax, ebx
je 0x45c0c7
mov dword [eax], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x45c0d4
mov dword [eax], 0xffffffff
cmp esi, ebx
je 0x45c106
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.00410339
push 0x4a6630
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret