Function at 0x4015e0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x40b61c]
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 0x4018c4
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x40b6bc], eax
sete cl
mov byte [ebp - 0x11], cl
test eax, eax
je 0x401677
push 0x4063c0
push ebx
call sub.VCRUNTIME140.dll_strstr
add esp, 8
test eax, eax
je 0x401674
push 0x3e8
push dword [0x40b6bc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4018c4
cmp eax, 0x102
je 0x40167f
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c9b
mov esp, ebp
pop ebp
ret 0x10
mov cl, byte [ebp - 0x11]
test cl, cl
jne 0x4018c4
push edi
push 0x30
xor edi, edi
lea eax, [ebp - 0x50]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x50], 0x30
mov dword [ebp - 0x4c], 3
push 0x7f00
push edi
mov dword [ebp - 0x48], 0x401060
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
call esi
push 0x7f00
push edi
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
mov dword [ebp - 0x34], eax
mov eax, dword [str.AdobeReaderSpeedLaunchCmdWnd]
push edi
mov dword [ebp - 0x30], 6
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
call esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
movzx eax, ax
mov dword [ebp - 0x20], eax
test ax, ax
je 0x401734
push edi
push dword [ebp - 0x18]
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x4062bd
push dword [0x40b010]
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
mov dword [0x40b6b8], edi
test edi, edi
je 0x4018c3
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.AcrobatSDIWindow
call esi
test eax, eax
jne 0x40189d
push eax
push str.AdobeAcrobat
call esi
test eax, eax
jne 0x40189d
push 0x401010
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 0x40189d
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x40b6bc], eax
test eax, eax
je 0x401894
push 0x40b6c4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4063c0
push ebx
mov byte [0x40b6dc], 0
call sub.VCRUNTIME140.dll_strstr
add esp, 8
lea ecx, [ebp - 0x54]
neg eax
sbb eax, eax
push ecx
push 0
inc eax
push eax
push 0x4011e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40b6c0], eax
test eax, eax
je 0x401877
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 0x40183a
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
cmp eax, 0xffffffff
je 0x401834
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 0x401813
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004011a0
push 0x1388
push dword [0x40b6c0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401862
push 0
push dword [0x40b6c0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x40b6c0]
call ebx
mov esi, dword [ebp - 0x1c]
mov dword [0x40b6c0], 0
push dword [0x40b6bc]
call ebx
push 0x40b6c4
mov dword [0x40b6bc], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x40b6b8]
test eax, eax
je 0x4018ad
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp word [ebp - 0x20], 0
je 0x4018c3
push dword [ebp - 0x18]
push dword [0x40b010]
call dword [sym.imp.USER32.dll_UnregisterClassA]
pop edi
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00404c9b
mov esp, ebp
pop ebp
ret 0x10