Function at 0xffce595
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0xffebc20]
push esi
push edi
push dword [0xffeb2a0]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor esi, esi
cmp dword [ebp + 8], esi
je 0xffce5e8
mov edi, 0xffed220
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0xffed238]
jmp 0xffce5dd
movzx eax, word [esi + 0x4c]
cmp eax, dword [ebp + 8]
je 0xffce5e1
mov esi, dword [esi + 0x10]
test esi, esi
jne 0xffce5d1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ax, word [esi + 2]
cmp ax, word [esi + 6]
je 0xffce602
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0ffe11f0
leave
ret 4
mov ecx, dword [0xffed1cc]
push ebx
call fcn.0ffb37a5
mov si, word [esi + 0x4c]
movzx ecx, si
shl ecx, 0x10
mov edi, eax
call fcn.0ffb37a5
mov ebx, dword [eax + 0xfc]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0xffce659
mov esi, 0xffed200
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
or byte [0x716], 0x80
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
push 1
push 0
call sub.ntvdm.exe_call_ica_hw_interrupt
xor eax, eax
pop ebx
jmp 0xffce5f4
lea eax, [ebp - 0xdc]
push eax
push 0x3e8
push 1
push 0
push 0
push 0x401
mov word [edi], si
push dword [0xffed248]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push ebx
call dword [0xffeb398]
mov esi, dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0x1b000a
push 0x1b
push 0x100
push ebx
call esi
push 0x1b0001
push 0x1b
push 0x101
push ebx
call esi
push 0x1388
push dword [0xffeb2a0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xffce836
mov eax, dword [0xffed1d4]
mov ax, word [eax]
cmp word [edi], ax
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0xffebe88
je 0xffce775
mov ecx, dword [0xffed36c]
test ecx, ecx
je 0xffce6f3
cmp word [ecx + 0x4c], ax
je 0xffce775
test ax, ax
je 0xffce775
movzx ecx, ax
shl ecx, 0x10
call fcn.0ffb37a5
mov ecx, dword [eax + 0xf2]
push 0xff
mov esi, 0xffebc80
push esi
push 0x102
push dword [0xffed3e8]
mov dword [ebp - 0x10], ecx
mov eax, dword [eax + 0xf6]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
call edi
push 0xff
push ebx
push 0
push dword [0xffed3e8]
call edi
lea eax, [ebp - 0x10]
push eax
push eax
lea eax, [ebp - 0xd8]
push esi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x52011
push ebx
lea eax, [ebp - 0xd8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
je 0xffce836
mov esi, 0xffed200
jmp 0xffce78d
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x716], 0x80
push esi
jne 0xffce77c
or byte [0x716], 0x80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
push 1
push 0
call sub.ntvdm.exe_call_ica_hw_interrupt
push 0x1388
push dword [0xffeb2a0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xffce836
push 0xff
push 0xffebc80
push 0x103
push dword [0xffed3e8]
call edi
push 0xff
push ebx
push 0x101
push dword [0xffed3e8]
call edi
push 0x52011
push ebx
push 0xffebc80
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0xffce826
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and byte [0x716], 0x7f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
jmp 0xffce838
push 0xffffffffffffffff
push 1
call sub.KERNEL32.dll_ExitVDM
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]