Function at 0x464290
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a780
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x8870bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebx + 4]
lea eax, [esi + 0x30]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4642e0
mov ecx, eax
call fcn.0045ff70
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
cmp byte [esi + 0x3a], 0
mov dword [ebp - 4], 0
je 0x464436
test al, 1
je 0x464308
and eax, 0xfffffffe
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
and eax, 0xfffffffe
mov ecx, eax
call fcn.004604f0
mov edi, dword [ebx + 4]
lea eax, [edi + 0x30]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
test eax, eax
je 0x46432b
mov ecx, eax
call fcn.0045ff70
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x50], eax
jne 0x46437b
movaps xmm0, xmmword [0x728b80]
lea eax, [ebp - 0x38]
push str.QThread::wait:_Thread_tried_to_wait_on_itself
push eax
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x728ab0
call fcn.0041c240
add esp, 8
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
test al, 1
je 0x464415
and eax, 0xfffffffe
mov ecx, eax
call fcn.004604f0
jmp 0x464415
cmp byte [edi + 0x39], 0
jne 0x46435d
cmp byte [edi + 0x38], 0
je 0x46435d
mov ebx, dword [ebp - 0x18]
inc dword [edi + 0x54]
and ebx, 0xfffffffe
mov ecx, ebx
call fcn.004604f0
push 0xffffffffffffffff
push dword [edi + 0x4c]
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4643be
cmp eax, 0xffffffff
jne 0x4643c2
push str.QThread::wait:_Thread_wait_failure
call fcn.0041aaa0
add esp, 4
jmp 0x4643c2
mov byte [ebp - 0xd], 1
mov ecx, ebx
call fcn.0045ff70
dec dword [edi + 0x54]
cmp byte [ebp - 0xd], 0
je 0x4643e5
cmp byte [edi + 0x39], 0
jne 0x4643eb
push 0
push dword [ebp - 0x1c]
call fcn.00463990
add esp, 8
cmp byte [edi + 0x39], 0
je 0x464401
cmp dword [edi + 0x54], 0
jne 0x464401
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x4c], 0
test byte [ebp - 0x18], 1
mov byte [ebp - 4], 0
je 0x464412
mov ecx, ebx
call fcn.004604f0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x464436
test al, 1
jne 0x464436
and eax, 0xfffffffe
mov ecx, eax
call fcn.0045ff70
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
cmp byte [esi + 0x38], 0
jne 0x464511
mov word [esi + 0x38], 1
lea eax, [esi + 0x3b]
mov byte [esi + 0x3c], 0
xor cl, cl
mov dword [esi + 0x40], 0
xchg byte [eax], cl
lea eax, [esi + 0x50]
push eax
push 4
push ebx
push 0x464560
push dword [esi + 0x44]
push 0
call fcn.0052f51a
add esp, 0x18
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x46448d
push str.QThread::start:_Failed_to_create_thread
call fcn.0041aaa0
mov word [esi + 0x38], 0x100
jmp 0x46450e
mov ecx, dword [ebp + 8]
mov dword [esi + 0x48], ecx
cmp ecx, 6
ja case.default.0x464498
jmp dword [ecx*4 + 0x464538]
mov ecx, 0xfffffff1
jmp 0x4644dd
mov ecx, 0xfffffffe
jmp 0x4644dd
or ecx, 0xffffffff
jmp 0x4644dd
xor ecx, ecx
jmp 0x4644dd
mov ecx, 1
jmp 0x4644dd
mov ecx, 2
jmp 0x4644dd
mov ecx, 0xf
jmp 0x4644dd
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, eax
mov eax, dword [esi + 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4644f6
push str.QThread::start:_Failed_to_set_thread_priority
call fcn.0041aaa0
add esp, 4
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x464511
push str.QThread::start:_Failed_to_resume_new_thread
call fcn.0041aaa0
add esp, 4
mov ecx, dword [ebp - 0x14]
test cl, 1
je 0x464521
and ecx, 0xfffffffe
call fcn.004604f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4