Function at 0x401fe0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x40c614]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push esi
mov esi, dword [ebp + 8]
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
cmp byte [ebp - 0x10], 1
jne 0x402216
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
call edi
test eax, eax
mov dword [0x40c6f4], eax
sete al
test al, al
jne 0x402201
push 0x4074d0
push ebx
call dword [sym.imp.MSVCR120.dll_strstr]
add esp, 8
test eax, eax
je 0x402069
push 0x3e8
push dword [0x40c6f4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402201
cmp eax, 0x102
jne 0x402201
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00401220
add esp, 8
mov dword [0x40c6f0], eax
test eax, eax
je 0x402201
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.AcrobatSDIWindow
call esi
test eax, eax
jne 0x4021db
push eax
push str.AdobeAcrobat
call esi
test eax, eax
jne 0x4021db
push 0x401130
push 0x1f4
push eax
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4021db
push 0
push 0
push 1
push 0
call edi
mov dword [0x40c6f4], eax
test eax, eax
je 0x4021d2
push 0x40c700
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4074d0
push ebx
mov byte [0x40c6fc], 0
call dword [sym.imp.MSVCR120.dll_strstr]
add esp, 8
lea ecx, [ebp - 0x20]
neg eax
sbb eax, eax
push ecx
push 0
inc eax
push eax
push 0x401510
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40c6f8], eax
test eax, eax
je 0x4021b5
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x3c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x402178
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
cmp eax, 0xffffffff
je 0x402172
lea eax, [ebp - 0x3c]
push eax
call edi
lea eax, [ebp - 0x3c]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call esi
test eax, eax
jne 0x402151
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004013a0
push 0x1388
push dword [0x40c6f8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4021a0
push 0
push dword [0x40c6f8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x40c6f8]
call ebx
mov esi, dword [ebp - 0x1c]
mov dword [0x40c6f8], 0
push dword [0x40c6f4]
call ebx
push 0x40c700
mov dword [0x40c6f4], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x40c6f0]
test eax, eax
je 0x4021eb
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp word [ebp - 0x14], 0
je 0x402201
push dword [ebp - 0x18]
push dword [0x40c010]
call dword [sym.imp.USER32.dll_UnregisterClassA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040577e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0040577e
mov esp, ebp
pop ebp
ret 0x10