Function at 0x4f36f0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd0bd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov esi, dword [eax + 4]
xor al, al
mov byte [ebp - 0x14], al
lea edi, [esi + 0x40]
mov dword [ebp - 0x18], edi
test edi, edi
je 0x4f3749
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x4f3744
mov ecx, edi
call fcn.004f0cc0
mov al, 1
mov byte [ebp - 0x14], al
cmp byte [esi + 0x4a], 0
mov dword [ebp - 4], 0
je 0x4f37bc
xor ecx, ecx
mov eax, 1
lock cmpxchg dword [edi], ecx
cmp eax, 1
je 0x4f376d
mov ecx, edi
call fcn.004f0e60
mov ecx, dword [ebp - 0x10]
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], 0x7fffffff
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 1
movups xmm0, xmmword [ebp - 0x34]
mov byte [ebp - 0x14], 0
movups xmmword [eax], xmm0
call fcn.004f3b50
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x4f37b7
mov ecx, edi
call fcn.004f0cc0
mov al, 1
mov byte [ebp - 0x14], al
cmp byte [esi + 0x48], 0
jne 0x4f392d
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4f3814
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x24], edx
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x38]
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x4f37ec
mov eax, 1
lock xadd dword [edx], eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [esi + 0x74]
call fcn.00487500
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4f3857
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x4f3857
push 4
push 2
push dword [ebp - 0x24]
jmp 0x4f384f
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
lea ecx, [esi + 0x74]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.00487500
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4f3857
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x4f3857
push 4
push 2
push dword [ebp - 0x30]
call fcn.004597e0
add esp, 0xc
mov word [esi + 0x48], 1
lea eax, [esi + 0x4b]
mov byte [esi + 0x4c], 0
xor cl, cl
mov dword [esi + 0x50], 0
xchg byte [eax], cl
lea eax, [esi + 0x60]
push eax
push 4
push dword [ebp - 0x10]
push 0x4f3980
push dword [esi + 0x54]
push 0
call fcn.0059ab9c
add esp, 0x18
mov dword [esi + 0x5c], eax
test eax, eax
jne 0x4f38a6
push str.QThread::start:_Failed_to_create_thread
call fcn.00499330
mov word [esi + 0x48], 0x100
jmp 0x4f3927
mov ecx, dword [ebp + 8]
mov dword [esi + 0x58], ecx
cmp ecx, 7
ja case.0x4f38b1.7
jmp dword [ecx*4 + 0x4f395c]
mov ecx, 0xfffffff1
jmp 0x4f38f6
mov ecx, 0xfffffffe
jmp 0x4f38f6
or ecx, 0xffffffff
jmp 0x4f38f6
xor ecx, ecx
jmp 0x4f38f6
mov ecx, 1
jmp 0x4f38f6
mov ecx, 2
jmp 0x4f38f6
mov ecx, 0xf
jmp 0x4f38f6
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, eax
mov eax, dword [esi + 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4f390f
push str.QThread::start:_Failed_to_set_thread_priority
call fcn.00499330
add esp, 4
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4f392a
push str.QThread::start:_Failed_to_resume_new_thread
call fcn.00499330
add esp, 4
mov al, byte [ebp - 0x14]
test al, al
je 0x4f3948
xor edx, edx
mov eax, 1
lock cmpxchg dword [edi], edx
cmp eax, 1
je 0x4f3948
mov ecx, edi
call fcn.004f0e60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4