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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov al, byte [ebp + 0x1c]
and byte [ebp + 0x1c], 0xf
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push dword [ebp + 0xc]
and al, 0xc0
mov byte [ebp - 1], al
call esi
push dword [ebp + 0x10]
lea edi, [eax + eax + 2]
call esi
push dword [0x4e3d54]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x20], eax
lea eax, [eax + edi + 0x2c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00414f3c
mov esi, dword [ebp - 0x1c]
push 0x4e34d4
push 0x10004
push esi
push 0x444d04
push 0x20000
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x4594e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x4594d9
xor eax, eax
inc eax
mov ebx, eax
jmp 0x4597e0
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], eax
mov al, byte [ebp + 0x1c]
push edi
push dword [ebp + 0xc]
mov byte [esi + 0x18], al
lea eax, [esi + 0x2c]
lea ecx, [esi + edi + 0x2c]
push eax
mov dword [esi], 2
mov dword [esi + 0x24], 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
call fcn.00414839
push dword [ebp - 0x20]
push dword [ebp + 0x10]
push dword [esi + 0xc]
call fcn.00414839
add esp, 0x18
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push dword [ebp - 0x14]
mov edi, eax
mov dword [esi + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp + 0x10]
xor edi, edi
cmp dword [ebp + 8], 2
mov dword [ebp - 0x10], str.32770
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
jne 0x459585
mov dword [ebp - 0xc], 0x4cfe74
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], 0x4cfe68
push 1
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
call fcn.00402e12
mov dword [ebp - 0x20], 0xa
dec dword [ebp - 0x20]
js 0x4595d3
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x4595d3
cmp dword [ebp - 8], ebx
je 0x4595c7
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x4595d3
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, ebx
je 0x459599
cmp edi, ebx
mov dword [ebp - 0x20], 0xa
jne 0x45962c
dec dword [ebp - 0x20]
js 0x459614
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x45962c
cmp dword [ebp - 8], ebx
je 0x459608
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x45962c
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, ebx
je 0x4595de
cmp edi, ebx
jne 0x45962c
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call fcn.0049ec27
add esp, 0x20
mov edi, eax
mov dword [ebp - 0x20], 0x5a
jmp 0x45966b
dec dword [ebp - 0x20]
js 0x45966f
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x45966f
cmp dword [ebp - 8], ebx
je 0x459663
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x45966f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, ebx
je 0x459635
mov dword [ebp - 0x20], 0x5a
jmp 0x4596aa
dec dword [ebp - 0x20]
js 0x4596ae
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x4596ae
cmp dword [ebp - 8], ebx
je 0x4596a2
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x4596ae
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, ebx
je 0x459678
cmp dword [ebp + 8], 2
jne 0x4596c2
cmp edi, ebx
je 0x4596c2
push dword [ebp + 0x10]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp + 8], 1
mov dword [ebp - 0x20], eax
jne 0x4596e0
cmp edi, ebx
je 0x4596e0
mov eax, dword [0x4e2c64]
cmp eax, ebx
je 0x4596e0
mov dword [eax], edi
cmp byte [ebp - 1], 0x80
je 0x45976e
cmp dword [ebp + 8], 1
jne 0x4596f4
cmp edi, ebx
je 0x45976e
cmp dword [ebp + 8], 2
jne 0x459755
cmp dword [ebp + 0x18], ebx
jle 0x4597d8
jmp 0x459713
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0x18]
jge 0x45971b
cmp byte [0x4e12e4], bl
jg 0x459705
push ebx
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
jmp 0x45976e
cmp dword [ebp + 0x18], ebx
jle 0x45973b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0x18]
jge 0x4597ef
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
je 0x45975d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x4e12e4], bl
jg 0x459724
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4e2c64]
cmp eax, ebx
je 0x45976e
mov dword [eax], ebx
push 0x4e3d84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi]
cmp dword [esi], ebx
mov dword [esi + 0x20], ebx
jle 0x459785
mov dword [ebp - 0x1c], ebx
push 0x4e3d84
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
je 0x4597c2
push ebx
push ebx
push 0x10
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 2
push 0x111
push edi
call esi
push ebx
push 7
push 0x111
push edi
call esi
push edi
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 - 0x18]
lea ecx, [ebp - 0x24]
call fcn.00414f56
lea ecx, [ebp - 0x1c]
call fcn.0043fe25
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
movzx eax, byte [ebp + 0x1c]
jmp 0x459760