Function at 0x442610
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596d35
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x5de00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
jle 0x442709
mov edx, dword [esi + 4]
lea edi, [esi + 4]
mov dword [ebp - 0x18], edi
mov eax, dword [edx]
cmp eax, edx
je 0x44267c
mov edx, dword [eax + 8]
cmp dword [edx], 0
mov ecx, dword [edx + 4]
je 0x442671
inc ecx
mov dword [edx + 4], ecx
mov ecx, dword [eax]
mov eax, ecx
cmp ecx, dword [edi]
jne 0x442665
push 0xffffffffffffffff
push dword [ebx + 0xc]
mov ecx, esi
call fcn.00442590
test eax, eax
je 0x442724
mov esi, dword [edi]
sub esp, 0x1c
mov ecx, dword [ebx + 0xc]
mov eax, esp
mov edx, ecx
xorps xmm0, xmm0
mov edi, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [eax], 0xffffffff
add eax, 4
mov dword [ebp - 0x1c], eax
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [edx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4426c7
sub edx, dword [ebp - 0x14]
sar edx, 1
push edx
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00403d10
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00442dd0
mov ecx, dword [ebp - 0x18]
add esp, 0x24
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ecx]
je 0x442717
mov eax, dword [eax + 8]
mov dword [eax + 4], 0
xor eax, eax
jmp 0x44291f
push 0xffffffffffffffff
push dword [ebx + 0xc]
call fcn.00442590
test eax, eax
je 0x44271e
xor eax, eax
jmp 0x44291f
lea edi, [esi + 4]
mov dword [ebp - 0x18], edi
push 0x7c
call fcn.0052d778
mov edx, eax
add esp, 4
mov dword [ebp - 0x14], edx
mov ecx, dword [ebx + 0x20]
lea eax, [edx + 0xc]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [edx], ecx
mov ecx, dword [ebx + 0x1c]
mov dword [edx + 8], ecx
xor ecx, ecx
mov dword [edx + 4], 0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov dword [ebp - 0x24], eax
mov word [eax], cx
mov eax, dword [ebx + 0x10]
mov dword [edx + 0x24], eax
lea eax, [edx + 0x28]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov dword [ebp - 0x28], eax
mov word [eax], cx
mov eax, dword [ebx + 0x18]
mov byte [ebp - 4], 2
mov dword [edx + 0x58], eax
lea eax, [edx + 0x64]
mov dword [edx + 0x40], ecx
mov dword [edx + 0x44], ecx
mov dword [edx + 0x48], ecx
mov dword [edx + 0x4c], ecx
mov dword [edx + 0x50], ecx
mov dword [edx + 0x54], ecx
mov dword [edx + 0x5c], ecx
mov dword [edx + 0x60], 0xffffffff
movups xmmword [eax], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov ecx, dword [ebx + 0xc]
mov edx, ecx
mov dword [ebp - 0x20], eax
lea eax, [edx + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4427c7
sub edx, dword [ebp - 0x1c]
sar edx, 1
push edx
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00403d10
mov ecx, dword [ebx + 8]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x44280e
mov edx, ecx
lea eax, [edx + 2]
mov dword [ebp - 0x20], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4427f4
sub edx, dword [ebp - 0x20]
sar edx, 1
push edx
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.004039f0
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x44283a
mov edx, ecx
lea eax, [edx + 2]
mov dword [ebp - 0x24], eax
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x442820
sub edx, dword [ebp - 0x24]
sar edx, 1
push edx
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.004039f0
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x54], ecx
test ecx, ecx
je 0x442895
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x14]
push 0x441790
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [ebp - 0x14]
add esp, 0x18
push 0
push 1
push dword [ecx + 0x54]
mov dword [ecx + 0x50], eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00442940
mov eax, dword [esi]
test eax, eax
jle 0x44291a
cmp dword [esi + 8], eax
jbe 0x44291a
mov ecx, dword [edi]
mov dword [ebp - 0x28], ecx
mov esi, dword [ecx]
cmp esi, ecx
je 0x44291a
mov eax, dword [esi]
cmp eax, ecx
je 0x4428e9
mov edx, dword [esi + 8]
mov edi, eax
mov ecx, dword [eax + 8]
mov eax, dword [eax]
mov edx, dword [edx + 4]
cmp edx, dword [ecx + 4]
mov ecx, dword [ebp - 0x28]
cmovge edi, esi
mov esi, edi
cmp eax, ecx
jne 0x4428c6
mov edi, dword [ebp - 0x18]
cmp esi, ecx
je 0x44291a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4428fd
push ecx
call fcn.004424f0
mov dword [esi + 8], 0
mov ecx, dword [esi + 4]
mov eax, dword [esi]
push 0xc
push esi
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
dec dword [edi + 4]
call fcn.0052d747
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c