Function at 0x4b9bef
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5052cc
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ecx
mov dword [esp + 0x14], ecx
cmp eax, 0x65
jne 0x4b9cb8
cmp dword [ebp + 0x10], ecx
jb 0x4b9c88
mov esi, dword [ebp + 0xc]
xor edi, edi
cmp dword [ebp + 0x10], 2
mov dword [esp + 0x10], edi
jb 0x4b9c50
mov ecx, dword [esi + 0x10]
call fcn.0040c5f0
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x10], 3
jb 0x4b9c60
mov ecx, dword [esi + 0x1c]
call fcn.0040c5f0
mov edi, eax
lea eax, [esp + 0x18]
push esi
push eax
call fcn.0046405d
pop ecx
pop ecx
and dword [esp + 0x28], 0
mov eax, dword [eax]
push edi
push dword [esp + 0x14]
push eax
call fcn.004b9e8d
lea ecx, [esp + 0x18]
call fcn.004087f0
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
xor eax, eax
mov dword [esp + 0x28], 1
test ecx, ecx
je 0x4b9e4b
call fcn.0041a730
jmp 0x4b9e4b
cmp eax, 0x66
jne 0x4b9d0a
mov eax, dword [ebx]
push str.handle
mov ecx, ebx
xor esi, esi
call dword [eax + 0x38]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4b9ce9
cmp dword [ecx], 3
jne 0x4b9ce9
call fcn.0040c5f0
test eax, eax
je 0x4b9ce9
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, eax
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], 2
jmp 0x4b9e3c
cmp eax, 0x67
jne 0x4b9d64
mov eax, dword [ebx]
push str.handle
mov ecx, ebx
xor edi, edi
call dword [eax + 0x38]
mov ecx, dword [eax + 4]
push 3
pop esi
test ecx, ecx
je 0x4b9d3d
cmp dword [ecx], esi
jne 0x4b9d3d
call fcn.0040c5f0
test eax, eax
je 0x4b9d3d
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, eax
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], esi
test ecx, ecx
je 0x4b9e49
mov eax, edi
jmp 0x4b9e42
cmp eax, 0x69
jne 0x4b9dc9
mov eax, dword [ebx]
push str.handle
mov ecx, ebx
or esi, 0xffffffff
call dword [eax + 0x38]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4b9dab
cmp dword [ecx], 3
jne 0x4b9dab
call fcn.0040c5f0
mov edi, eax
test edi, edi
je 0x4b9dab
xor eax, eax
cmp dword [ebp + 0x10], eax
jbe 0x4b9da1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
call fcn.0040c5f0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], 4
jmp 0x4b9e3c
cmp eax, 0x6a
jne 0x4b9df7
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x18], ecx
xor eax, eax
mov dword [esp + 0x28], 5
test ecx, ecx
je 0x4b9e4b
call fcn.0040c000
jmp 0x4b9e4b
mov ecx, ebx
cmp eax, 0x6b
jne 0x4b9e5b
mov eax, dword [ebx]
push str.handle
xor esi, esi
call dword [eax + 0x38]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4b9e20
cmp dword [ecx], 3
jne 0x4b9e20
call fcn.0040c5f0
test eax, eax
je 0x4b9e20
inc esi
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], 6
test ecx, ecx
je 0x4b9e49
mov eax, esi
call fcn.0041a730
jmp 0x4b9e4b
xor eax, eax
mov ecx, dword [ebp + 0x14]
or dword [esp + 0x28], 0xffffffff
push eax
call fcn.0040ed50
jmp 0x4b9e74
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00460cc8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18