Function at 0x486266
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x28], 0
jne 0x486279
mov dword [ebp + 0x28], 0x4c9810
push 0x40
call fcn.00490598
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x486293
xor eax, eax
jmp 0x486436
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov word [ecx + 8], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x28]
mov cx, word [eax]
mov word [edx + 0xa], cx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax + 4]
mov dword [edx + 0xc], ecx
push 0x200
call fcn.00490598
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0x200
mov ecx, dword [ebp - 4]
mov word [ecx + 0x24], 0
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00480cd0
add esp, 0x14
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
push 1
push 1
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00480cd0
add esp, 0x14
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x28], eax
mov ecx, dword [ebp + 0x1c]
sub ecx, dword [ebp + 0x18]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0x30], ecx
mov edx, dword [ebp + 0x24]
sub edx, dword [ebp + 0x20]
add edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c]
imul edx, edx, 0x1c
push edx
call fcn.00490598
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x1c
push eax
call fcn.00490598
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x3c], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x38]
mov dword [ebp - 8], eax
jmp 0x4863ac
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
add edx, 0x1c
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x2c]
jge 0x4863c3
mov edx, dword [ebp - 8]
mov dword [edx + 8], 0xffffffff
jmp 0x48639a
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
jmp 0x4863e7
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
add eax, 0x1c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx + 0x34]
jge 0x4863fe
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0xffffffff
jmp 0x4863d5
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x485b10
push 0
push 0
call fcn.00491cdb
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.RTX_RTSS.SYS_RtSetThreadPriority]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret