Function at 0x4dc060
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword fs:[0x2c]
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [eax]
mov eax, dword [0x74eda8]
cmp eax, dword [edx + 0x98]
jg 0x4dc351
cmp dword [esi + 0x100], 0
push edi
lea edi, [esi + 0x100]
je 0x4dc105
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x4dc0b3
push eax
call dword [sym.imp.USER32.dll_UnhookWinEvent]
mov dword [esi + 0xfc], 0
push edi
lea eax, [ebp - 8]
mov ecx, 0x74cfa0
push eax
call fcn.0042fa40
mov eax, dword [ebp - 8]
cmp eax, dword [0x74cfa4]
je 0x4dc0dc
push eax
lea eax, [ebp - 8]
mov ecx, 0x74cfa0
push eax
call fcn.004dc890
push edi
lea eax, [ebp - 8]
mov ecx, 0x74cfc0
push eax
call fcn.0042fa40
mov eax, dword [ebp - 8]
cmp eax, dword [0x74cfc4]
je 0x4dc105
push eax
lea eax, [ebp - 8]
mov ecx, 0x74cfc0
push eax
call fcn.004dc890
cmp dword [esi + 0xf8], 0xffffffff
je 0x4dc137
cmp byte [esi + 8], 0
je 0x4dc137
push str.NtResumeProcess
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [esi + 0xf8]
call eax
mov byte [esi + 8], 0
mov edi, 0x74d6c0
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x4dc166
push eax
push dword [esi + 0x108]
push dword [esi + 0x104]
call fcn.005aedc0
cmp eax, dword [esi + 0x108]
je 0x4dc166
mov dword [edi], 0
add edi, 4
cmp edi, 0x74d700
jl 0x4dc140
cmp dword [esi + 0xf8], 0xffffffff
je 0x4dc322
mov eax, dword [esi + 0x108]
mov edi, dword [esi + 0x104]
push ebx
xor ebx, ebx
mov dword [ebp - 8], eax
cmp edi, eax
je 0x4dc21c
xor esi, esi
nop word [eax + eax]
mov eax, dword [edi]
push 0x200
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.005c3040
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x100
push eax
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x210]
push str.UnityWndClass
push eax
call fcn.005cdb89
add esp, 8
test eax, eax
jne 0x4dc1f7
push dword [ebp - 0xc]
inc esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4dc1f7
inc ebx
add edi, 4
cmp edi, dword [ebp - 8]
jne 0x4dc1a0
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0xc], 2
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x104]
mov edi, ecx
jne 0x4dc21c
cmp ebx, 1
jne 0x4dc21c
mov dl, bl
jmp 0x4dc21e
xor dl, dl
mov eax, dword [esi + 0x108]
mov byte [ebp - 1], dl
mov dword [ebp - 0x10], eax
cmp edi, eax
je 0x4dc294
nop
mov ebx, dword [edi]
test dl, dl
je 0x4dc241
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4dc289
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xefffffff
push eax
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push ebx
call dword [sym.imp.USER32.dll_SetParent]
push 1
push 0
push 0x11
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
push 1
push 0
push 0x16
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x10
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov dl, byte [ebp - 1]
add edi, 4
cmp edi, dword [ebp - 0x10]
jne 0x4dc230
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x3e8
nop
mov eax, dword [esi + 0x100]
test eax, eax
je 0x4dc2f7
push eax
push 0
push 0x80000000
sub ebx, 0xa
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, 0xffffffff
je 0x4dc33c
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, 1
jne 0x4dc33c
cmp dword [ebp - 0xc], 0x103
jne 0x4dc33c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jg 0x4dc2a0
push 0
mov dword [esi + 0x100], 0
push dword [esi + 0xf8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi + 0xf8]
call edi
mov dword [esi + 0xf8], 0xffffffff
pop ebx
mov eax, dword [esi + 0x104]
pop edi
cmp eax, dword [esi + 0x108]
je 0x4dc337
mov dword [esi + 0x108], eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov dword [esi + 0x100], 0
jmp 0x4dc30f
push 0x74eda8
call fcn.005ab9bf
add esp, 4
cmp dword [0x74eda8], 0xffffffff
jne 0x4dc088
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x74eda8
call fcn.005ab96e
add esp, 4
jmp 0x4dc088