Function at 0x474839
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 0x4d88cc
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 0x4d84a8
mov dword [ebp - 0x28], eax
mov al, byte [ebp + 0x1c]
push 0x10000
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x38]
push eax
push 0x474781
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 0x474b3c
mov dword [ebp + 0xc], 0x270f
cmp dword [ebp - 0x20], ebx
je 0x4748d8
push ebx
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec dword [ebp + 0xc]
jns 0x4748b9
jmp 0x4748d3
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp - 0x20], ebx
jne 0x4748cc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor esi, esi
cmp dword [ebp + 8], 2
mov dword [ebp - 8], 0x4c76bc
mov dword [ebp + 0x14], edi
mov dword [ebp + 0xc], ebx
jne 0x474904
mov dword [ebp + 0x14], 0x4c769c
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], 0x4c7690
push 1
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], ebx
call fcn.00414424
mov edi, dword [sym.imp.USER32.DLL_FindWindowW]
mov dword [ebp - 0x10], 0xa
dec dword [ebp - 0x10]
js 0x474950
push dword [ebp + 0x14]
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
jne 0x474950
cmp dword [ebp + 0xc], ebx
je 0x474944
push dword [ebp + 0xc]
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
jne 0x474950
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp esi, ebx
je 0x47491e
cmp esi, ebx
mov dword [ebp - 0x10], 0xa
jne 0x4749a1
dec dword [ebp - 0x10]
js 0x474989
push dword [ebp + 0x14]
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4749a1
cmp dword [ebp + 0xc], ebx
je 0x47497d
push dword [ebp + 0xc]
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4749a1
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp esi, ebx
je 0x47495b
cmp esi, ebx
jne 0x4749a1
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.00496339
add esp, 0x20
mov esi, eax
mov dword [ebp - 0x10], 0x5a
jmp 0x4749d8
dec dword [ebp - 0x10]
js 0x4749dc
push dword [ebp + 0x14]
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
jne 0x4749dc
cmp dword [ebp + 0xc], ebx
je 0x4749d0
push dword [ebp + 0xc]
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
jne 0x4749dc
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp esi, ebx
je 0x4749aa
mov dword [ebp - 0x10], 0x5a
jmp 0x474a0f
dec dword [ebp - 0x10]
js 0x474a13
push dword [ebp + 0x14]
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x474a13
cmp dword [ebp + 0xc], ebx
je 0x474a07
push dword [ebp + 0xc]
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x474a13
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp esi, ebx
je 0x4749e5
cmp dword [ebp + 8], 2
jne 0x474a27
cmp esi, ebx
je 0x474a27
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 0x474a45
cmp esi, ebx
je 0x474a45
mov eax, dword [0x4d7c60]
cmp eax, ebx
je 0x474a45
mov dword [eax], esi
cmp byte [ebp - 1], 0x80
je 0x474adf
cmp dword [ebp + 8], 1
jne 0x474a5d
cmp esi, ebx
je 0x474adf
cmp dword [ebp + 8], 2
jne 0x474ab6
cmp dword [ebp + 0x18], ebx
jle 0x474b34
jmp 0x474a7c
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x474a84
cmp byte [0x4d62ec], bl
jg 0x474a6e
push ebx
call dword [sym.imp.ADVAPI32.DLL_AbortSystemShutdownW]
jmp 0x474adf
cmp dword [ebp + 0x18], ebx
jle 0x474aa0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x474ac9
push dword [ebp + 0x10]
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
je 0x474abe
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4d62ec], bl
jg 0x474a8d
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x474acf
mov eax, dword [eax]
jmp 0x474ad1
movzx eax, byte [ebp + 0x1c]
jmp 0x474ad1
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x4d7c60]
cmp eax, ebx
je 0x474adf
mov dword [eax], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x474aec
mov dword [eax], 0xffffffff
cmp esi, ebx
je 0x474b1e
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.0041445a
push 0x4d88cc
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret