Function at 0x4bb993
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2d4
mov ecx, dword [ebp + 8]
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x4bb9b7
mov eax, dword [0x900eb8]
mov dword [ecx], eax
mov edi, dword [0x900ea8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x10dd
cmp edi, eax
jne 0x4bbc28
cmp dword [0x900eb4], 0
je 0x4bb9e3
call fcn.004bb856
jmp 0x4bbc22
mov esi, dword [0x900eac]
test esi, esi
je 0x4bbaa8
xor ebx, ebx
cmp dword [esi + 4], 0
mov ecx, dword [esi + 0x10]
je 0x4bba3b
cmp byte [ecx + 0x17], 0
je 0x4bba6f
xor edi, edi
mov dword [ebp - 0x2dc], ebx
mov eax, dword [esi + 0xc]
add eax, edi
lea edx, [ebp - 0x2dc]
push edx
push ebx
push ecx
push eax
call fcn.004ebd8c
cmp dword [ebp - 0x2dc], ebx
jne 0x4bba75
mov ecx, eax
mov edx, dword [esi + 0x10]
sub eax, edx
movzx edx, byte [edx + 0x17]
mov edi, eax
cmp eax, edx
jl 0x4bba04
mov edi, eax
jmp 0x4bba7b
mov ecx, dword [ecx + 0x1c]
mov edx, dword [esi + 0xc]
lea eax, [edx + 5]
mov byte [edx], 0xe9
sub ecx, eax
mov dword [edx + 1], ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 0x18]
cmp eax, edx
jae 0x4bba6a
sub edx, eax
push edx
push 0xcc
push eax
call fcn.006030b0
add esp, 0xc
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
jmp 0x4bba9c
xor edx, edx
xor edi, edi
jmp 0x4bba7b
mov eax, dword [esi + 0x10]
mov dl, byte [eax + 0x17]
movzx eax, dl
cmp edi, eax
jne 0x4bba87
mov eax, dword [esi + 8]
jmp 0x4bba99
mov dword [0x900eb4], 0xd
mov eax, dword [esi + 8]
mov dword [0x900eb8], eax
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
mov esi, dword [esi]
test esi, esi
jne 0x4bb9f3
mov esi, dword [0x900eb0]
test esi, esi
je 0x4bbb54
lea edi, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0x10001
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4bbb4a
mov ebx, dword [0x900eac]
test ebx, ebx
je 0x4bbb4a
mov dword [ebp - 0x2e0], esi
cmp dword [ebx + 4], 0
mov eax, dword [ebp - 0x224]
je 0x4bbb0b
mov edx, dword [ebx + 0x10]
mov ecx, eax
sub ecx, edx
jb 0x4bbb44
add edx, 4
cmp eax, edx
jae 0x4bbb44
mov dword [ebp - 0x224], ecx
add ecx, dword [ebx + 0xc]
jmp 0x4bbb34
mov edx, dword [ebx + 0xc]
mov ecx, eax
sub ecx, edx
jb 0x4bbb44
mov esi, edi
mov edi, dword [ebx + 0x10]
movzx edi, byte [edi + 0x17]
add edx, edi
mov edi, esi
mov esi, dword [ebp - 0x2e0]
cmp eax, edx
jae 0x4bbb44
mov dword [ebp - 0x224], ecx
add ecx, dword [ebx + 0x10]
mov dword [ebp - 0x224], ecx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4bbae4
mov esi, dword [esi]
test esi, esi
jne 0x4bbabc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x900eac]
test edi, edi
je 0x4bbbd3
mov esi, eax
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + 0x17]
lea ecx, [ebp - 0x2dc]
push ecx
push dword [edi + 0x14]
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 esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [edi + 4], 0
je 0x4bbbc2
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4bbbc2
mov ecx, eax
and ecx, 0xffff0000
xorps xmm0, xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
mov edx, dword [ecx + 8]
mov dword [eax + 0x18], edx
mov dword [ecx + 8], eax
mov dword [edi + 0x10], 0
mov ebx, dword [edi]
push edi
call fcn.00517bd6
add esp, 4
mov edi, ebx
test ebx, ebx
jne 0x4bbb66
mov dword [0x900eac], 0
call fcn.004bb93d
mov esi, dword [0x900eb0]
test esi, esi
je 0x4bbc08
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esi + 4]
call edi
mov ebx, dword [esi]
push esi
call fcn.00517bd6
add esp, 4
mov esi, ebx
test ebx, ebx
jne 0x4bbbf2
xor eax, eax
mov dword [0x900eb0], eax
mov dword [0x900ea8], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4bbc22
mov eax, dword [0x900eb8]
mov dword [ecx], eax
mov esi, dword [0x900eb4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517c1a
mov eax, esi
add esp, 0x2d4
pop esi
pop edi
pop ebx
pop ebp
ret 4