Function at 0x4e4850
Capabilities:
Resume thread

Disassembly:
sub esp, 0x2d8
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x2d4], eax
mov eax, dword [esp + 0x2dc]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 8], eax
je 0x4e487e
mov ecx, dword [0x5bf198]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5bf190], eax
je 0x4e48a9
mov eax, 0x10dd
pop ebx
mov ecx, dword [esp + 0x2d4]
xor ecx, esp
call fcn.0050fe87
add esp, 0x2d8
ret 4
cmp dword [0x5bf194], ebx
je 0x4e48bb
call fcn.004e4790
jmp 0x4e4ae7
push ebp
push esi
mov esi, dword [0x5bf1a0]
cmp esi, ebx
push edi
je 0x4e4975
mov ebp, 0xd
cmp dword [esi + 4], ebx
je 0x4e492f
mov eax, dword [esi + 0x10]
xor edi, edi
cmp byte [eax + 0x17], bl
jbe 0x4e490b
lea edx, [esp + 0x10]
push edx
push ebx
push eax
mov eax, dword [esi + 0xc]
add eax, edi
push eax
mov dword [esp + 0x20], ebx
call fcn.004e90f0
cmp dword [esp + 0x10], ebx
jne 0x4e490b
mov ecx, dword [esi + 0x10]
mov edi, eax
sub edi, ecx
movzx ecx, byte [ecx + 0x17]
cmp edi, ecx
jl 0x4e48e0
mov edx, dword [esi + 0x10]
movzx eax, byte [edx + 0x17]
cmp edi, eax
je 0x4e4925
mov ecx, dword [esi + 8]
mov dword [0x5bf194], ebp
mov dword [0x5bf198], ecx
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [edx], eax
jmp 0x4e496b
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x1c]
lea edx, [eax + 5]
mov byte [eax], 0xe9
sub ecx, edx
add eax, 1
mov dword [eax], ecx
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 0x18]
add eax, 4
cmp eax, ecx
jae 0x4e4963
sub ecx, eax
push ecx
push 0xcc
push eax
call fcn.00516c20
add esp, 0xc
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov esi, dword [esi]
cmp esi, ebx
jne 0x4e48d1
mov edi, dword [0x5bf19c]
cmp edi, ebx
je 0x4e4a25
mov ebx, dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ebp, dword [sym.imp.KERNEL32.dll_SetThreadContext]
nop
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], 0x10001
call ebx
test eax, eax
je 0x4e4a19
mov esi, dword [0x5bf1a0]
test esi, esi
je 0x4e4a19
mov eax, dword [esp + 0xd0]
cmp dword [esi + 4], 0
je 0x4e49da
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jb 0x4e4a13
lea edx, [ecx + 4]
cmp eax, edx
jae 0x4e4a13
sub eax, ecx
mov dword [esp + 0xd0], eax
add eax, dword [esi + 0xc]
jmp 0x4e49fa
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x4e4a13
mov edx, dword [esi + 0x10]
movzx edx, byte [edx + 0x17]
add edx, ecx
cmp eax, edx
jae 0x4e4a13
sub eax, ecx
mov dword [esp + 0xd0], eax
add eax, dword [esi + 0x10]
mov ecx, dword [edi + 4]
mov dword [esp + 0xd0], eax
lea eax, [esp + 0x18]
push eax
push ecx
call ebp
mov eax, dword [esp + 0xd0]
mov esi, dword [esi]
test esi, esi
jne 0x4e49b8
mov edi, dword [edi]
test edi, edi
jne 0x4e4990
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x5bf1a0]
cmp esi, ebx
mov ebp, eax
je 0x4e4a96
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ecx]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x10]
push edx
movzx edx, byte [ecx + 0x17]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call ebx
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
mov eax, dword [esi + 0xc]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [esi + 4], 0
je 0x4e4a83
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4e4a83
call fcn.004e4630
mov dword [esi + 0x10], 0
mov edi, dword [esi]
push esi
call fcn.004e946d
add esp, 4
test edi, edi
mov esi, edi
jne 0x4e4a40
xor ebx, ebx
mov dword [0x5bf1a0], ebx
call fcn.004e43d0
mov esi, dword [0x5bf19c]
cmp esi, ebx
je 0x4e4ac8
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi + 4]
push ecx
call ebp
mov edi, dword [esi]
push esi
call fcn.004e946d
add esp, 4
cmp edi, ebx
mov esi, edi
jne 0x4e4ab1
mov eax, dword [esp + 0x14]
cmp eax, ebx
pop edi
pop esi
mov dword [0x5bf19c], ebx
mov dword [0x5bf190], ebx
pop ebp
je 0x4e4ae7
mov edx, dword [0x5bf198]
mov dword [eax], edx
mov ecx, dword [esp + 0x2d8]
mov eax, dword [0x5bf194]
pop ebx
xor ecx, esp
call fcn.0050fe87
add esp, 0x2d8
ret 4