Function at 0x10017960
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102b64f7
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1036a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [0x1036ea74]
cmp dword [ebx + 4], 0
jne 0x10017ba6
push 0xc
call fcn.102af9f4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
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], 1
push 0x44
mov dword [eax], vtable.RC::RCThread.0
call fcn.102af9f4
mov edi, eax
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 2
push 0x18
call fcn.102af9f4
add esp, 0xc
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 3
lea esi, [edi + 0x24]
mov dword [ebp - 0x14], esi
xor eax, eax
mov dword [esi], 0
mov byte [esi + 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 7
mov word [esi + 8], ax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push 0x102dc908
mov byte [edi + 8], al
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.10018ae0
mov byte [ebp - 4], 6
sub esp, 8
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.10113010
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.10018a30
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 8], edi
mov dword [edi], ebx
mov eax, dword [ecx + 8]
mov dword [eax + 4], 0x10017730
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
cmp esi, ecx
je 0x10017ad5
push 1
lea eax, [ecx + 4]
push eax
call edi
mov esi, dword [ebx + 4]
test esi, esi
je 0x10017acd
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
call edi
sub eax, 1
jne 0x10017acd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov esi, eax
mov dword [ebx + 4], eax
mov edi, dword [esi + 8]
test edi, edi
je 0x10017ba6
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x10017afc
mov eax, dword [edi]
test eax, eax
je 0x10017afc
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 7
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x10017b87
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea eax, [esi + 4]
push 1
push eax
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x10112400
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
je 0x10017b6b
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x10017b5d
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10017b87
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
call ebx
sub eax, 1
jne 0x10017b7f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.101125c0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10017ba6
mov eax, dword [edi]
test eax, eax
je 0x10017b9f
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102af9d5
mov esp, ebp
pop ebp
ret