Function at 0x490f80
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a25b0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x62cf50]
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 0x4911c8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x631bfc], eax
test eax, eax
je 0x4911c8
xor esi, esi
mov dword [ebp - 0x70], 0x30
push 0x7f00
push esi
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x68], 0x491290
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 [0x62b40c]
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.004917e0
movzx eax, ax
mov ebx, eax
test bx, bx
je 0x491089
push esi
push edi
push esi
push esi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x5b928f
push dword [0x62b40c]
push esi
call fcn.00491690
mov esi, eax
mov dword [0x631bf8], esi
test esi, esi
je 0x4911c8
call fcn.004911f0
test al, al
jne 0x4911a7
push 0x491230
push 0x1f4
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, eax
test esi, esi
je 0x4911a7
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x631bfc], eax
test eax, eax
je 0x49119e
push 0x631c04
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x18]
mov byte [0x631c1c], 0
push eax
push 0
push 1
push 0x491370
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x631c00], eax
test eax, eax
je 0x49117d
nop
push 0
push 0
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x49113f
cmp eax, 0xffffffff
je 0x49113f
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 0x491110
call fcn.00491330
push 0x1388
push dword [0x631c00]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x491167
push 0
push dword [0x631c00]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x631c00]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x631c00], 0
push dword [0x631bfc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x631c04
mov dword [0x631bfc], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x631bf8]
test eax, eax
je 0x4911b7
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
test bx, bx
je 0x4911c8
push edi
push dword [0x62b40c]
call fcn.004918d0
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.004016cd
mov esp, ebp
pop ebp
ret 0x10