Function at 0x48a190
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 0x4e6fb4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x60
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x28], edi
mov esi, dword [ebx + 8]
lea eax, [edi + 0x24]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x24], esi
lea eax, [esi + 4]
test esi, esi
je 0x48a1fb
lock inc dword [eax]
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0x54]
cmp ecx, dword [edi + 0x58]
je 0x48a216
mov dword [ecx], esi
test esi, esi
je 0x48a210
lock inc dword [eax]
add dword [edi + 0x54], 4
jmp 0x48a226
lea eax, [ebp - 0x24]
push eax
push ecx
lea ecx, [edi + 0x50]
call fcn.0048ab20
mov esi, dword [ebp - 0x24]
mov byte [ebp - 4], 1
test esi, esi
je 0x48a255
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
dec eax
jne 0x48a24e
mov eax, dword [esi]
push 1
mov edi, dword [eax]
mov ecx, edi
call dword [0x4e933c]
mov ecx, esi
call edi
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x24], 0
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x48]
cmp ecx, edx
je 0x48a26e
push ecx
call fcn.0048aa50
mov eax, dword [edi + 0x44]
add esp, 4
mov dword [edi + 0x48], eax
lea eax, [edi + 0x3c]
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov eax, dword [eax]
nop dword [eax]
cmp byte [eax + 0xd], 0
jne 0x48a2ec
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0x30], 0
je 0x48a2cc
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x48a2b5
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x48a2b1
cmp eax, dword [ecx + 8]
jne 0x48a2b1
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x48a2a1
mov eax, ecx
jmp 0x48a280
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
jne 0x48a280
nop
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
je 0x48a2c0
jmp 0x48a280
push dword [ecx + 0x2c]
mov dword [ecx + 0x30], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x48a53c
mov eax, dword [edi + 0x40]
cmp eax, dword [edi + 0x20]
jae 0x48a517
push 0x38
mov dword [ebp - 0x20], 0
call fcn.004a05c1
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
push 0x38
push 0
push esi
call fcn.004a3580
add esp, 0xc
mov edx, edi
cmp dword [edi + 0x14], 8
jb 0x48a325
mov edx, dword [edi]
mov dword [esi], vtable.asw::common::refobj.0
mov dword [esi + 4], 0
mov ecx, edx
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
lea eax, [ecx + 2]
mov dword [ebp - 0x38], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48a353
sub ecx, dword [ebp - 0x38]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.0040a4a0
push 0x506cf4
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x50]
call fcn.00409e70
movups xmm0, xmmword [ebp - 0x50]
mov dword [esi + 8], vtable.asw::threading::thread.0
lea ecx, [ebp - 0x50]
mov dword [esi + 0xc], 0
add esp, 4
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
movups xmmword [esi + 0x14], xmm0
mov word [ebp - 0x50], ax
movq xmm0, qword [ebp - 0x40]
movq qword [esi + 0x24], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
call fcn.0040a590
lea ecx, [ebp - 0x70]
call fcn.0040a590
mov dword [esi + 0x34], edi
lea edi, [esi + 4]
mov dword [esi], vtable.asw::common::jobthread.1.0
mov dword [esi + 8], vtable.asw::common::jobthread.0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], edi
lock inc dword [edi]
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x48a42a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x48a457
lea edi, [esi + 8]
lea eax, [edi + 8]
push eax
push 0
push edi
push 0x48acf0
push 0
push 0
call fcn.004b2f3c
xor edx, edx
mov dword [edi + 4], eax
add esp, 0x18
lea edi, [esi + 4]
test eax, eax
mov ecx, 0x9b
cmovne ecx, edx
test ecx, ecx
jne 0x48a524
mov ecx, dword [ebp - 0x28]
xor edi, edi
mov eax, dword [ecx]
mov edx, eax
mov dword [ebp - 0x38], eax
mov ecx, dword [eax + 4]
mov eax, ecx
mov dword [ebp - 0x24], ecx
cmp byte [ecx + 0xd], 0
jne 0x48a49e
nop dword [eax]
mov dword [ebp - 0x24], eax
cmp dword [eax + 0x10], esi
jae 0x48a48f
mov eax, dword [eax + 8]
xor edi, edi
jmp 0x48a498
mov edx, eax
mov edi, 1
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x48a480
cmp byte [edx + 0xd], 0
jne 0x48a4a9
cmp esi, dword [edx + 0x10]
jae 0x48a4f8
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 0xccccccc
je 0x48a55c
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 7
push 0x14
mov dword [ebp - 0x54], 0
call fcn.004a05c1
add esp, 4
lea ecx, [esi + 4]
mov dword [eax + 0x10], esi
lock inc dword [ecx]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
push eax
mov dword [eax], edx
push edi
push dword [ebp - 0x24]
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov word [eax + 0xc], 0
call fcn.0040fa70
mov ecx, dword [ebp - 0x2c]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x48a517
mov eax, dword [esi]
push 1
mov edi, dword [eax]
mov ecx, edi
call dword [0x4e933c]
mov ecx, esi
call edi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x48a53c
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
jmp 0x48a503
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0040fe70
int3