Function at 0x100041c0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008c527
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x100b5070]
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 edi, ecx
cmp dword [edi + 8], 0
jne 0x100045a7
push 0xc
call fcn.10041577
mov ebx, eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], 0
lea eax, [ebx + 4]
mov dword [ebx], vtable.RC::RCRefCounted.0
mov dword [ebp - 0x4c], eax
mov dword [eax], 0
mov byte [ebp - 4], 1
push 0x44
mov dword [ebx], vtable.RC::RCThread.0
call fcn.10041577
mov esi, eax
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 2
push 0x18
call fcn.10041577
add esp, 0xc
mov dword [esi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 3
mov eax, esi
lea esi, [eax + 0x24]
xor ecx, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov byte [esi + 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 7
mov word [esi + 8], cx
mov byte [ebp - 4], 5
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x10], 0xffffffff
mov dword [eax + 0x14], 0xffffffff
mov byte [eax + 8], cl
mov dword [eax + 0x18], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x1c], ecx
xor eax, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
push eax
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x68]
push 0x100a46dc
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
call fcn.100052c0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x68]
push ecx
push 1
push eax
mov ecx, esi
call fcn.10014460
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x1000430b
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004301
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100045ab
push edx
push ecx
call fcn.100419a9
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x48]
mov dword [ebx + 8], esi
mov dword [esi], edi
mov eax, dword [ebx + 8]
mov dword [eax + 4], 0x10004800
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 8]
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
je 0x10004371
push 1
push dword [ebp - 0x4c]
call ebx
mov esi, dword [edi + 8]
test esi, esi
je 0x1000436b
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
call ebx
sub eax, 1
jne 0x1000436b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x50]
mov dword [edi + 8], eax
test eax, eax
je 0x10004544
xor eax, eax
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
push 0x100a46dc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.100052c0
mov dword [ebp - 4], 7
lea eax, [ebp - 0x2c]
push ecx
push 1
push eax
lea ecx, [edi + 0x1c]
call fcn.10014460
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10004400
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100043f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100045b0
push edx
push ecx
call fcn.100419a9
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], eax
push 0x100a46dc
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.100052c0
mov dword [ebp - 4], 8
lea eax, [ebp - 0x44]
push ecx
push 0
push eax
lea ecx, [edi + 0x3c]
call fcn.10014460
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x1000448d
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004483
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100045b5
push edx
push ecx
call fcn.100419a9
add esp, 8
mov esi, dword [edi + 8]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov edi, dword [esi + 8]
test edi, edi
je 0x10004544
add edi, 0x20
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], edi
je 0x100044c7
mov eax, dword [edi]
test eax, eax
je 0x100044c7
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 9
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x10004525
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 0x10013900
push 0
push 0
call fcn.100617b5
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x10004562
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
call ebx
sub eax, 1
jne 0x1000451d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.10013ac0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10004544
mov eax, dword [edi]
test eax, eax
je 0x1000453d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
xor al, al
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.10041566
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1000457a
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
je 0x10004509
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100045a7
mov eax, dword [edi]
test eax, eax
je 0x100045a0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov al, 1
jmp 0x10004546
call fcn.1004e0a8
call fcn.1004e0a8
call fcn.1004e0a8
int3