Function at 0x5fbbc0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642e80
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6ccc30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
cmp byte [ebp - 0x24], 1
jne 0x5fbe08
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x6ceeb0], eax
test eax, eax
je 0x5fbe08
xor esi, esi
mov dword [ebp - 0x70], 0x30
push 0x7f00
push esi
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x68], 0x5fbee0
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
mov dword [ebp - 0x58], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
mov dword [ebp - 0x54], eax
mov eax, dword [0x6c855c]
push esi
mov dword [ebp - 0x50], 6
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x70]
push eax
call fcn.005fc430
movzx eax, ax
mov ebx, eax
test bx, bx
je 0x5fbcc9
push esi
push edi
push esi
push esi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x65194f
push dword [0x6c855c]
push esi
call fcn.005fc2e0
mov esi, eax
mov dword [0x6ceeac], esi
test esi, esi
je 0x5fbe08
call fcn.005fbe40
test al, al
jne 0x5fbde7
push 0x5fbe80
push 0x1f4
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, eax
test esi, esi
je 0x5fbde7
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x6ceeb0], eax
test eax, eax
je 0x5fbdde
push 0x6ceeb8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x18]
mov byte [0x6ceed0], 0
push eax
push 0
push 1
push 0x5fbfc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6ceeb4], eax
test eax, eax
je 0x5fbdbd
nop
push 0
push 0
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x5fbd7f
cmp eax, 0xffffffff
je 0x5fbd7f
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x5fbd50
call fcn.005fbf80
push 0x1388
push dword [0x6ceeb4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5fbda7
push 0
push dword [0x6ceeb4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x6ceeb4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x6ceeb4], 0
push dword [0x6ceeb0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x6ceeb8
mov dword [0x6ceeb0], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x6ceeac]
test eax, eax
je 0x5fbdf7
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
test bx, bx
je 0x5fbe08
push edi
push dword [0x6c855c]
call fcn.005fc520
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005ce525
mov esp, ebp
pop ebp
ret 0x10