Function at 0x1009178c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4c
mov esi, dword [esp + 0x60]
push esi
call fcn.100903cf
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov esi, dword [eax + 0x100]
mov dword [esp + 0x30], ecx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x100917da
mov ecx, dword [esi + 0x84]
mov edx, dword [ecx + 8]
dec edx
and edx, 0xfffffff8
add eax, edx
add eax, 8
push eax
call dword [ecx + 0x14]
add esp, 4
lea ebx, [esi + 0x28]
push ebx
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1017e848]
mov eax, dword [eax]
test eax, 0x7fffffff
jne 0x10091b4d
xor edi, edi
mov al, byte [esi + 0x2c]
mov dword [esp + 0x34], 0
lea eax, [esi + 0x90]
mov dword [esp + 0x20], eax
lea eax, [esi + 0x30]
mov dword [esp + 0x1c], eax
push dword [esp + 0x1c]
call fcn.10094dee
add esp, 4
cmp dl, 2
jne 0x1009187a
lock inc dword [esi + 0x9c]
mov cl, byte [esi + 0x78]
mov ebp, dword [esp + 0x20]
test cl, cl
jne 0x10091901
mov eax, edi
test al, al
setne al
mov edi, eax
push dword [esi + 0x18]
push dword [esi + 0x14]
push dword [esi + 0x10]
push ebx
push ebp
call fcn.100c3c40
add esp, 0x14
mov cl, byte [esi + 0x2c]
test cl, cl
jne 0x10091b5b
mov ecx, dword [esi + 0x60]
test ecx, ecx
jne 0x100918e6
mov cl, byte [esi + 0x78]
test cl, cl
setne dl
or al, dl
jne 0x10091833
jmp 0x1009192e
mov ebp, eax
lock dec dword [esi + 0xa0]
mov eax, edi
test al, al
mov dword [esp + 4], ebx
setne byte [esp + 8]
lea ecx, [esp + 4]
call fcn.10017784
mov eax, dword [ebp + 8]
push ebp
call dword [eax]
add esp, 4
mov eax, 0xffffffc0
lock xadd dword [ebp], eax
cmp eax, 0x3f
jbe 0x10091baa
and eax, 0xffffffc0
cmp eax, 0x40
jne 0x100918c7
mov eax, dword [ebp + 8]
push ebp
call dword [eax + 8]
add esp, 4
push ebx
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1017e848]
mov eax, dword [eax]
test eax, 0x7fffffff
jne 0x100918f6
xor edi, edi
mov al, byte [esi + 0x2c]
jmp 0x10091814
dec ecx
mov dword [esi + 0x60], ecx
cmp byte [esi + 0x78], 0
je 0x10091814
jmp 0x10091901
call fcn.10100a70
xor al, 1
mov edi, eax
jmp 0x100918de
mov dword [esp], ebx
push dword [esp + 0x1c]
call fcn.10094dee
add esp, 4
cmp dl, 2
jne 0x10091a98
lock inc dword [esi + 0x9c]
mov eax, edi
test al, al
setne al
mov edi, eax
mov ebx, dword [esp]
jmp 0x10091983
lea eax, [esi + 0x40]
lea ecx, [esp + 0x30]
lea ebp, [esp + 0x40]
push ecx
push eax
push ebp
call fcn.100953b3
add esp, 0xc
mov eax, dword [esi + 0x70]
mov dword [esp + 0xc], eax
movsd xmm0, qword [esi + 0x68]
movsd qword [esp + 4], xmm0
movsd xmm0, qword [ebp]
movsd qword [esi + 0x68], xmm0
mov eax, dword [ebp + 8]
mov dword [esi + 0x70], eax
lea ebp, [esp + 0x34]
mov ecx, ebp
call fcn.10091c67
mov eax, dword [esp + 0xc]
mov dword [ebp + 8], eax
movsd xmm0, qword [esp + 4]
movsd qword [ebp], xmm0
lock dec dword [esi + 0x98]
xor eax, eax
dec eax
lock xadd dword [esi + 0x9c], eax
mov ecx, dword [esi + 0x9c]
cmp eax, ecx
mov ecx, dword [esp + 0x20]
jb 0x10091bbb
cmp byte [esi + 0x78], 0
je 0x100919c0
mov eax, dword [esi + 0x98]
test eax, eax
jne 0x100919c0
push ecx
call fcn.100be9c0
add esp, 4
lea ebp, [esp + 4]
mov dword [ebp], ebx
mov eax, edi
mov byte [ebp + 4], al
mov ecx, ebp
call fcn.10017784
mov eax, dword [esi + 0x88]
test eax, eax
je 0x100919f6
mov ecx, dword [esi + 0x8c]
mov edx, dword [ecx + 8]
dec edx
and edx, 0xfffffff8
add eax, edx
add eax, 8
push eax
call dword [ecx + 0x14]
add esp, 4
cmp dword [esp + 0x34], 0
je 0x10091a3c
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 4], xmm0
push ebp
call fcn.1008db2d
add esp, 4
test eax, eax
je 0x10091a3c
mov edi, eax
mov ebx, edx
push eax
call dword [edx]
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x10091a3c
push dword [ebx + 8]
push eax
push edi
call fcn.10007550
add esp, 0xc
mov edi, dword [esp + 0x60]
mov eax, dword [edi + 4]
mov dword [esp + 4], eax
lock dec dword [eax]
jne 0x10091a55
push ebp
call fcn.1008e2b4
add esp, 4
lea esi, [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
push esi
push 0x1012b280
call fcn.1008dc27
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x10091a80
lock dec dword [eax]
jne 0x10091a80
push esi
call fcn.1008e3d6
add esp, 4
mov eax, dword [edi]
lock dec dword [eax]
jne 0x10091a90
push edi
call fcn.1008e3d6
add esp, 4
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebp, eax
mov ebx, edx
lock dec dword [esi + 0xa0]
mov eax, edi
test al, al
mov eax, dword [esp]
mov dword [esp + 4], eax
setne byte [esp + 8]
lea ecx, [esp + 4]
call fcn.10017784
test bl, 1
jne 0x10091af0
mov eax, dword [ebp + 8]
push ebp
call dword [eax]
add esp, 4
mov eax, 0xffffffc0
lock xadd dword [ebp], eax
cmp eax, 0x3f
jbe 0x10091baa
and eax, 0xffffffc0
cmp eax, 0x40
mov ebx, dword [esp]
jne 0x10091b0a
mov eax, dword [ebp + 8]
add eax, 8
jmp 0x10091b04
lock sub dword [ebp], 0x40
jb 0x10091baa
mov eax, dword [ebp + 8]
add eax, 0x18
mov ebx, dword [esp]
push ebp
call dword [eax]
add esp, 4
push ebx
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1017e848]
mov eax, dword [eax]
test eax, 0x7fffffff
jne 0x10091b42
xor edi, edi
mov al, byte [esi + 0x2c]
push dword [esp + 0x1c]
call fcn.10094dee
add esp, 4
mov ebp, eax
mov ebx, edx
cmp dl, 2
jne 0x10091a9c
jmp 0x10091919
call fcn.10100a70
xor al, 1
mov edi, eax
jmp 0x10091b21
call fcn.10100a70
xor al, 1
mov edi, eax
jmp 0x100917f8
xor al, 1
mov dword [esp + 4], ebx
mov ecx, edi
mov byte [esp + 8], cl
movzx ecx, word [esp + 0x40]
mov word [esp + 9], cx
mov cl, byte [esp + 0x42]
mov byte [esp + 0xb], cl
mov byte [esp + 0xc], al
movzx eax, word [esp + 0x25]
mov word [esp + 0xd], ax
mov al, byte [esp + 0x27]
mov byte [esp + 0xf], al
push 0x1012c6d8
push 0x1012c0b4
lea eax, [esp + 0xc]
push eax
push 0x2b
push 0x1012c088
call fcn.10101580
push 0x1012c5a4
push 0x27
push str.assertion_failed:_prev.ref_count_____1
call fcn.10101280
mov dword [esp + 4], str.num_idle_threads_underflowed_on_thread_exit
mov dword [esp + 8], 1
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0x1012bd5c
mov dword [esp + 0x10], eax
push 0x1012c71c
lea eax, [esp + 8]
push eax
call fcn.101011a0
push eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov ecx, dword [ecx]
cmp dword [ecx], 0
je 0x10091c18
mov edx, esp
mov dword [edx], ecx
push 0x1012c1a4
push edx
push 4
push 0x1012c1a0
push eax
call fcn.100d7bf0
add esp, 0x14
pop ecx
ret
push 4
push str.NoneSome
push eax
call fcn.100d7760
add esp, 0xc
pop ecx
ret