Function at 0x10059061
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 [0x100e3d4c]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x20], eax
lea eax, [eax + edi + 0x2c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10014baa
mov esi, dword [ebp - 0x1c]
push 0x100e34cc
push 0x10004
push esi
push 0x1004480c
push 0x20000
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x100590e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x100590d9
xor eax, eax
inc eax
mov ebx, eax
jmp 0x100593e0
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.100144ff
push dword [ebp - 0x20]
push dword [ebp + 0x10]
push dword [esi + 0xc]
call fcn.100144ff
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 0x10059185
mov dword [ebp - 0xc], 0x100cfec4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], 0x100cfeb8
push 1
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
call fcn.10014bc4
mov dword [ebp - 0x20], 0xa
dec dword [ebp - 0x20]
js 0x100591d3
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x100591d3
cmp dword [ebp - 8], ebx
je 0x100591c7
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x100591d3
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, ebx
je 0x10059199
cmp edi, ebx
mov dword [ebp - 0x20], 0xa
jne 0x1005922c
dec dword [ebp - 0x20]
js 0x10059214
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x1005922c
cmp dword [ebp - 8], ebx
je 0x10059208
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x1005922c
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, ebx
je 0x100591de
cmp edi, ebx
jne 0x1005922c
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call fcn.1009e7cd
add esp, 0x20
mov edi, eax
mov dword [ebp - 0x20], 0x5a
jmp 0x1005926b
dec dword [ebp - 0x20]
js 0x1005926f
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x1005926f
cmp dword [ebp - 8], ebx
je 0x10059263
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x1005926f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, ebx
je 0x10059235
mov dword [ebp - 0x20], 0x5a
jmp 0x100592aa
dec dword [ebp - 0x20]
js 0x100592ae
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x100592ae
cmp dword [ebp - 8], ebx
je 0x100592a2
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
jne 0x100592ae
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, ebx
je 0x10059278
cmp dword [ebp + 8], 2
jne 0x100592c2
cmp edi, ebx
je 0x100592c2
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 0x100592e0
cmp edi, ebx
je 0x100592e0
mov eax, dword [0x100e2c64]
cmp eax, ebx
je 0x100592e0
mov dword [eax], edi
cmp byte [ebp - 1], 0x80
je 0x1005936e
cmp dword [ebp + 8], 1
jne 0x100592f4
cmp edi, ebx
je 0x1005936e
cmp dword [ebp + 8], 2
jne 0x10059355
cmp dword [ebp + 0x18], ebx
jle 0x100593d8
jmp 0x10059313
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0x18]
jge 0x1005931b
cmp byte [0x100e12e4], bl
jg 0x10059305
push ebx
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
jmp 0x1005936e
cmp dword [ebp + 0x18], ebx
jle 0x1005933b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0x18]
jge 0x100593ef
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
je 0x1005935d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x100e12e4], bl
jg 0x10059324
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [0x100e2c64]
cmp eax, ebx
je 0x1005936e
mov dword [eax], ebx
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi]
cmp dword [esi], ebx
mov dword [esi + 0x20], ebx
jle 0x10059385
mov dword [ebp - 0x1c], ebx
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
je 0x100593c2
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.10014bfa
lea ecx, [ebp - 0x1c]
call fcn.1003f96c
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
movzx eax, byte [ebp + 0x1c]
jmp 0x10059360