Function at 0x4ea1d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5d0c20], eax
je 0x4ea1fb
mov eax, 0x10dd
jmp 0x4ea41d
cmp dword [0x5d0c1c], 0
je 0x4ea20e
call fcn.004ea123
jmp 0x4ea418
push ebx
push esi
push edi
mov edi, dword [0x5d0c14]
jmp 0x4ea2c4
cmp dword [edi + 4], 0
mov eax, dword [edi + 0x10]
je 0x4ea29b
xor ebx, ebx
mov dword [ebp - 0x334], eax
cmp byte [eax + 0x17], bl
jbe 0x4ea279
mov esi, dword [edi + 0xc]
lea eax, [ebp - 0x330]
and dword [ebp - 0x330], 0
lea ecx, [ebp - 0x60]
push eax
push 0
add esi, ebx
call fcn.004ebef0
push dword [ebp - 0x334]
push esi
call fcn.004ebf26
cmp dword [ebp - 0x330], 0
mov dword [ebp - 0x334], eax
jne 0x4ea279
mov ecx, dword [edi + 0x10]
mov ebx, eax
sub ebx, ecx
movzx ecx, byte [ecx + 0x17]
cmp ebx, ecx
jl 0x4ea232
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + 0x17]
cmp ebx, eax
je 0x4ea296
mov eax, dword [edi + 8]
mov dword [0x5d0c1c], 0xd
mov dword [0x5d0c08], eax
mov eax, dword [edi + 0xc]
jmp 0x4ea2bd
mov esi, dword [edi + 0xc]
mov ecx, dword [eax + 0x1c]
lea eax, [esi + 5]
mov byte [esi], 0xe9
sub ecx, eax
mov dword [esi + 1], ecx
lea ecx, [esi + 5]
mov edx, dword [edi + 0x10]
mov edx, dword [edx + 0x18]
call fcn.004e9d50
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 8]
mov dword [ecx], eax
mov edi, dword [edi]
test edi, edi
jne 0x4ea21c
mov edi, dword [0x5d0c0c]
test edi, edi
je 0x4ea376
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x32c], 0x10001
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4ea36c
mov esi, dword [0x5d0c14]
test esi, esi
je 0x4ea36c
mov ecx, dword [ebp - 0x274]
cmp dword [esi + 4], 0
je 0x4ea32f
mov edx, dword [esi + 0x10]
cmp ecx, edx
jb 0x4ea366
lea eax, [edx + 4]
cmp ecx, eax
jae 0x4ea366
sub ecx, edx
mov dword [ebp - 0x274], ecx
add ecx, dword [esi + 0xc]
jmp 0x4ea34e
cmp ecx, dword [esi + 0xc]
jb 0x4ea366
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x4ea366
sub ecx, dword [esi + 0xc]
mov dword [ebp - 0x274], ecx
add ecx, dword [esi + 0x10]
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x274], ecx
push eax
push dword [edi + 4]
call ebx
mov ecx, dword [ebp - 0x274]
mov esi, dword [esi]
test esi, esi
jne 0x4ea30e
mov edi, dword [edi]
test edi, edi
jne 0x4ea2e0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x5d0c14]
mov ebx, eax
test edi, edi
je 0x4ea3da
lea eax, [ebp - 0x330]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [edi + 4], 0
je 0x4ea3cb
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4ea3cb
call fcn.004ea03e
and dword [edi + 0x10], 0
mov esi, dword [edi]
push edi
call fcn.005363a4
mov edi, esi
pop ecx
test esi, esi
jne 0x4ea388
xor ebx, ebx
mov dword [0x5d0c14], ebx
call fcn.004e9e2d
mov edi, dword [0x5d0c0c]
test edi, edi
je 0x4ea409
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push edi
call fcn.005363a4
mov edi, esi
pop ecx
test esi, esi
jne 0x4ea3f1
pop edi
pop esi
mov dword [0x5d0c0c], ebx
mov dword [0x5d0c20], ebx
pop ebx
mov eax, dword [0x5d0c1c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret