Function at 0x4b2f12
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x300
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004b1366
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b2f3b
mov eax, 3
jmp 0x4b32cb
cmp dword [ebp - 0xc], 0
jne 0x4b2f4b
mov eax, 3
jmp 0x4b32cb
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4b2f7e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
cmp eax, 0xffffffff
je 0x4b2f7e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
lea edx, [ebp - 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetHandleInformation]
call eax
sub esp, 8
test eax, eax
jne 0x4b2f88
mov eax, 3
jmp 0x4b32cb
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.004afb39
call fcn.004b2abe
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004b2788
test eax, eax
je 0x4b309b
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 3
test al, al
je 0x4b2fed
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.004afbf2
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 0xc
test al, al
je 0x4b2fe3
mov eax, 3
jmp 0x4b2fe8
mov eax, 0
jmp 0x4b32cb
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x20]
and edx, 0xfffffffc
or edx, 1
mov byte [eax + 0x20], dl
mov dword [ebp - 0x10], 0x585ea8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4b3033
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
and eax, 2
test eax, eax
je 0x4b3083
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
and eax, 1
test eax, eax
je 0x4b3083
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
and eax, 0xfffffffe
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x20]
and edx, 0xfffffff3
or edx, 4
mov byte [eax + 0x20], dl
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.004afbf2
call fcn.004b2d0a
jmp 0x4b3091
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.004afbf2
mov eax, 0
jmp 0x4b32cb
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
and eax, 2
test eax, eax
je 0x4b3238
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
and eax, 1
test eax, eax
je 0x4b3238
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 0xc
test al, al
je 0x4b30f8
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.004afbf2
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 0xc
test al, al
je 0x4b30ee
mov eax, 3
jmp 0x4b30f3
mov eax, 0
jmp 0x4b32cb
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 3
test al, al
jne 0x4b3114
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 0xc
test al, al
je 0x4b311e
mov eax, 3
jmp 0x4b32cb
mov dword [ebp - 0x2f4], 0x10001
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SuspendThread]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
cmp eax, 0x102
jne 0x4b3233
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
lea edx, [ebp - 0x2f4]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadContext]
call eax
sub esp, 8
mov eax, fcn.004b2d0a
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
lea edx, [ebp - 0x2f4]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetThreadContext]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x20]
and edx, 0xfffffffc
or edx, 1
mov byte [eax + 0x20], dl
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
and eax, 0xfffffffe
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x20]
and edx, 0xfffffff3
or edx, 4
mov byte [eax + 0x20], dl
mov dword [ebp - 0x18], 0x585ea8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ebx, 1
lock xadd dword [eax], ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4b320d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.004afbf2
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResumeThread]
call eax
sub esp, 4
jmp 0x4b32b8
jmp 0x4b32b8
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 3
test al, al
jne 0x4b328e
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x20]
and edx, 0xfffffffc
or edx, 1
mov byte [eax + 0x20], dl
mov dword [ebp - 0x20], 0x585ea8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov esi, 1
lock xadd dword [eax], esi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4b32b8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
call eax
sub esp, 4
jmp 0x4b32b8
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.004afbf2
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 0xc
test al, al
je 0x4b32b1
mov eax, 3
jmp 0x4b32b6
mov eax, 0
jmp 0x4b32cb
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.004afbf2
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret