Function at 0x53a460
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598c0f
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5ee034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
lea esi, [edi + 0xc]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
test esi, esi
je 0x53a4ad
mov eax, dword [esi]
test eax, eax
je 0x53a4ad
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], edx
cmp eax, edx
je 0x53a4e2
mov dword [ebp - 0x2c], edx
nop dword [eax]
cmp ecx, dword [eax]
je 0x53a7c8
add eax, 0x18
mov dword [ebp - 0x1c], eax
cmp eax, edx
jne 0x53a4d0
xorps xmm0, xmm0
mov dword [ebp - 0x48], ecx
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], 0
cmp dword [edi + 8], edx
je 0x53a515
call fcn.004044b0
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [eax + 0x10], xmm0
add dword [edi + 4], 0x18
jmp 0x53a521
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
push edx
call fcn.0053cb00
mov eax, dword [edi + 0x10]
test eax, eax
je 0x53a57d
push 0
mov ecx, eax
call fcn.00576bc0
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x53a549
cmp byte [eax + 8], 0
mov esi, dword [ebp - 0x18]
je 0x53a549
mov eax, dword [edi + 0x10]
jmp 0x53a575
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x53a57d
push 0xffffffffffffffff
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x53a56c
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 0x10], 0
xor eax, eax
test eax, eax
jne 0x53a7c8
mov ecx, dword [edi + 0x38]
mov eax, dword [sym.imp.KERNEL32.dll_ResetEvent]
test ecx, ecx
je 0x53a591
push ecx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x53a59b
push ecx
call eax
push 0xc
call fcn.0057d388
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax], vtable.RC::RCRefCounted.0
mov dword [eax + 4], 0
mov byte [ebp - 4], 2
push 0x44
mov dword [eax], vtable.RC::RCThread.0
call fcn.0057d388
mov edi, eax
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 3
push 0x18
call fcn.0057d388
add esp, 0xc
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 4
add edi, 0x24
mov dword [ebp - 0x30], edi
lea ecx, [edi + 8]
mov dword [edi], 0
mov byte [edi + 4], 0
call fcn.00404580
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 0x20]
push 0x5a6dd8
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 0x10], 0xffffffff
mov dword [eax + 0x14], 0xffffffff
mov byte [eax + 8], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x1c], 0
call fcn.00406350
mov byte [ebp - 4], 7
lea eax, [ebp - 0x60]
push ecx
push 1
push eax
mov ecx, edi
call fcn.00464020
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.00404570
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov dword [ecx + 8], edi
mov dword [edi], eax
mov eax, dword [ecx + 8]
mov dword [eax + 4], 0x53ab20
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x24]
mov eax, dword [edi + 0x10]
cmp eax, ecx
je 0x53a6d7
push 1
lea eax, [ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x53a6cd
push 0xffffffffffffffff
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x53a6cd
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x10], eax
mov edi, eax
jmp 0x53a6d9
mov edi, eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x53a7c8
add ecx, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], ecx
je 0x53a706
mov eax, dword [ecx]
test eax, eax
je 0x53a706
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 8
mov eax, dword [edi + 8]
cmp dword [eax + 4], 0
jne 0x53a73a
mov byte [ebp - 4], 0
test ecx, ecx
je 0x53a7c8
mov eax, dword [ecx]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, eax
je 0x53a72e
push eax
call edi
mov dword [ebp - 0x14], 0
jmp 0x53a7ce
lea eax, [edi + 4]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [edi + 8]
add eax, 0xc
push eax
push 4
push edi
push 0x576890
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [edi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 8]
cmp dword [eax + 0x10], 0
jne 0x53a7a0
push 0xffffffffffffffff
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x53a789
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [edi + 8]
call fcn.00576a50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x53a7c8
mov eax, dword [eax]
jmp 0x53a721
mov byte [eax + 8], 1
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x53a7b8
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x53a791
jmp 0x53a771
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x53a7e9
mov eax, dword [esi]
test eax, eax
je 0x53a7e2
push eax
call edi
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057d0c6
mov esp, ebp
pop ebp
ret 4