Function at 0x421260
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push edi
call fcn.0043bf70
mov edi, dword [eax + 0x48]
push 0x5d1724
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42129c
push str.GetThreadGroupAffinity
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetThreadGroupAffinity
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x62c554]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call ebx
mov ecx, dword [esi + 0x10]
push ecx
call ebx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
je 0x4212c5
push eax
call fcn.0056cbb4
add esp, 4
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4212d8
push eax
call fcn.0056cbb4
add esp, 4
mov dword [esi + 0xc], ebx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esi + 4], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056cbbf
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
xor ecx, ecx
mov edx, 0x80
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056cbbf
add esp, 8
mov dword [esi + 0xc], eax
cmp edi, ebx
je 0x421524
mov eax, dword [edi + 0x1130]
mov dword [esp + 0x14], ebx
test eax, eax
je 0x4214c2
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4214c2
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4214c2
mov edi, edi
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp dword [ecx + 0x2c], eax
mov dword [esp + 0x18], eax
jle 0x4214a0
push eax
call fcn.004452d0
fld dword [0x5e2a18]
mov eax, dword [eax + 0x1c]
fstp dword [esp + 0xc]
test eax, eax
je 0x42148a
mov edi, dword [eax + 4]
mov edx, edi
test edx, edx
je 0x4213d0
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x4213d0
fldz
fcom dword [ecx + 0x524]
fnstsw ax
test ah, 5
jp 0x4213ba
fld dword [ecx + 0x524]
fld dword [esp + 0xc]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4213ba
fld dword [ecx + 0x524]
fstp dword [esp + 0xc]
test edx, edx
je 0x4213d2
mov eax, dword [edx + 8]
test eax, eax
je 0x4213d2
mov ecx, dword [eax + 4]
mov edx, eax
test ecx, ecx
jne 0x421390
jmp 0x4213d2
fldz
test edi, edi
je 0x421488
mov edx, dword [edi + 4]
test edx, edx
je 0x421488
fld dword [esp + 0xc]
mov ecx, ebx
shl ecx, 7
jmp 0x4213f2
fxch st(1)
cmp ebx, dword [esi + 4]
fxch st(1)
jge 0x42146e
movzx eax, word [edx + 0x34]
mov ebx, dword [esi + 0xc]
mov dword [ecx + ebx], eax
mov eax, dword [esi + 0xc]
mov ebx, dword [edx + 0x30]
mov dword [eax + ecx + 4], ebx
mov eax, dword [esi + 0xc]
mov ebx, dword [edx + 0x49c]
mov dword [eax + ecx + 8], ebx
mov ebx, dword [esi + 0xc]
xor eax, eax
mov dword [ebx + ecx + 0xc], eax
mov ebx, dword [esi + 0xc]
mov dword [ebx + ecx + 0x2c], eax
mov ebx, dword [esi + 0xc]
mov dword [ebx + ecx + 0x30], eax
fcom dword [edx + 0x524]
fnstsw ax
test ah, 5
jp 0x421458
fld dword [edx + 0x524]
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x421458
mov edx, dword [esi + 0xc]
mov dword [edx + ecx + 0xc], 1
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 8]
mov dword [eax + ebx*4], 0
inc ebx
mov dword [esp + 0x14], ebx
sub ecx, 0xffffff80
test edi, edi
je 0x421486
mov eax, dword [edi + 8]
test eax, eax
je 0x421486
mov edx, dword [eax + 4]
mov edi, eax
test edx, edx
jne 0x4213f0
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, dword [ecx + 0x2c]
mov dword [esp + 0x18], eax
jl 0x421363
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4214c2
mov eax, dword [eax + 8]
test eax, eax
je 0x4214c2
mov dword [esp + 0x24], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x421350
xor ebx, ebx
xor edi, edi
cmp dword [esi + 4], edi
jle 0x42151c
xor ebx, ebx
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x1c]
push eax
push 4
add ecx, ebx
push ecx
push 0x4215f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esi + 8]
mov dword [edx + edi*4], eax
mov eax, dword [esi + 8]
cmp dword [eax + edi*4], 0
lea eax, [eax + edi*4]
je 0x421506
mov ecx, dword [eax]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
mov eax, dword [edx + edi*4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc edi
sub ebx, 0xffffff80
cmp edi, dword [esi + 4]
jl 0x4214cd
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
cmp dword [esi + 4], ebx
jle 0x4214c4
xor eax, eax
mov edx, dword [esi + 0xc]
mov dword [edx + eax + 0x2c], ebx
mov edx, dword [esi + 0xc]
mov dword [edx + eax + 0x30], ebx
mov edx, dword [esi + 0xc]
mov dword [eax + edx], ebx
mov edx, dword [esi + 0xc]
mov dword [edx + eax + 8], 0x40
mov edx, dword [esi + 0xc]
mov dword [edx + eax + 0xc], ebx
mov edi, dword [esi + 0xc]
mov edx, 1
shl edx, cl
inc ecx
sub eax, 0xffffff80
mov dword [edi + eax - 0x7c], edx
mov edx, dword [esi + 8]
mov dword [edx + ecx*4 - 4], ebx
cmp ecx, dword [esi + 4]
jl 0x42152d
jmp 0x4214c4