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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
mov dword [esi + 0x8c], esp
mov dword [esi + 0x98], 0xffffffff
lea eax, [esi + 0x90]
mov dword [esi + 0x94], 0x1002f810
mov edx, dword fs:[0]
mov dword [esi + 0x90], edx
mov dword fs:[0], eax
cmp byte [ecx + 0x189], 0
jne 0x10020905
mov dword [esi + 0x70], ecx
mov eax, 0x226ca3ac
mov ecx, 0xd18bc650
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov eax, 0xe3f0cec2
mov ecx, 0xac68312f
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x38], eax
mov eax, 0xab7bee5f
mov ebx, 0x1ec28a69
mov dword [esi + 0x1c], eax
mov dword [esi + 0x44], ebx
mov edx, 0xe5909738
mov ecx, 0xe20c77bc
mov edi, 0x4d00cfed
mov eax, 0xb4ffa733
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], edi
mov eax, 0x8682a696
mov edi, 0xe821554e
mov dword [esi + 0x10], eax
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], eax
mov dword [esi + 0x64], ebx
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x40], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x68], edx
lea ebx, [esi + 0x50]
xor eax, eax
mov ecx, ebx
vmovaps xmm0, xmmword [esi + 0x30]
vxorps xmm0, xmm0, xmmword [ecx]
vmovaps xmmword [esi + 0x30], xmm0
vmovaps xmm0, xmmword [esi + 0x40]
vxorps xmm0, xmm0, xmmword [ecx + 0x10]
mov eax, 0x3f65a699
mov ecx, 0xd89b8903
mov dword [esi + 0x24], ecx
mov dword [esi + 0x20], eax
mov eax, 0xe821554e
mov ecx, 0x8682a6fa
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], ecx
mov eax, dword [esi + 0xc]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x50], eax
mov dword [esi + 0x5c], edi
mov eax, dword [esi + 0x10]
mov dword [esi + 0x58], eax
xor eax, eax
vmovaps xmmword [esi + 0x40], xmm0
vmovaps xmm0, xmmword [esi + 0x20]
vxorps xmm0, xmm0, xmmword [ebx]
xor edi, edi
vmovaps xmmword [esi + 0x20], xmm0
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [esi + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call sub.MSVCP140.dll__Thrd_hardware_concurrency
test eax, eax
jne 0x100205fa
call sub.MSVCP140.dll__Thrd_hardware_concurrency
test eax, eax
je 0x100208e0
xor edi, edi
jmp 0x100205b7
lea eax, [esi + 0x20]
push eax
call sub.MSVCP140_ATOMIC_WAIT.dll___std_atomic_notify_all_direct
inc edi
call sub.MSVCP140.dll__Thrd_hardware_concurrency
cmp edi, eax
jae 0x100208e0
mov eax, 1
lock xadd dword [esi + 0x20], eax
cmp eax, 0x7fffffff
jae 0x10020919
mov eax, dword [esi + 0x24]
test eax, eax
je 0x100205a9
cmp eax, 2
jl 0x100205a0
lea eax, [esi + 0x20]
push eax
call sub.MSVCP140_ATOMIC_WAIT.dll___std_atomic_notify_one_direct
jmp 0x100205a9
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
nop dword [eax + eax]
inc edi
call sub.MSVCP140.dll__Thrd_hardware_concurrency
cmp edi, eax
jae 0x1002058f
mov dword [esi + 0x1c], edi
mov eax, dword [0x1029fb94]
mov dword [esi + 0x14], eax
mov dword [esi + 0x98], 0xffffffff
push 0x18
call fcn.100e80cd
add esp, 4
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [esi + 0xc], eax
mov dword [eax], vtable.std::_Ref_count_obj2_class_std::packaged_task_void____cdecl___void___.0
mov dword [esi + 0x98], 0
push 0xa8
call fcn.100e80cd
add esp, 4
mov edi, eax
mov ebx, dword [esi + 0xc]
mov eax, ebx
add eax, 0xc
mov dword [esi + 0x10], eax
mov dword [edi], vtable.std::_Associated_state_int_.0
vmovaps xmm0, xmmword [0x10145a30]
vmovups xmmword [edi + 4], xmm0
lea eax, [edi + 0xc]
push eax
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void__
add esp, 4
lea eax, [edi + 0x14]
vxorps xmm0, xmm0, xmm0
vmovups ymmword [edi + 0x24], ymm0
vmovups ymmword [edi + 0x14], ymm0
push 2
push eax
vzeroupper
call sub.MSVCP140.dll__Mtx_init_in_situ
add esp, 8
lea eax, [edi + 0x44]
push eax
call sub.MSVCP140.dll__Cnd_init_in_situ
add esp, 4
mov byte [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x73], 0
mov dword [edi + 0x78], 0
mov dword [edi], vtable.std::_Packaged_state_void____cdecl___void__.0
mov eax, edi
sub eax, 0xffffff80
mov dword [edi + 0x80], 0x101460e4
lea ecx, [esi + 0x20]
mov dword [edi + 0x84], ecx
mov ecx, dword [esi + 0x7c]
mov dword [edi + 0x88], ecx
mov dword [edi + 0xa4], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x50], eax
mov dword [ebx + 0xc], edi
mov byte [ebx + 0x10], 0
mov dword [esi + 0x54], ebx
mov byte [ebx + 0x14], 1
mov dword [esi + 0x80], edi
mov byte [esi + 0x84], 1
lock inc dword [edi + 4]
mov ebx, dword [esi + 0x14]
lea eax, [ebx + 4]
mov dword [esi + 0x10], eax
push eax
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x1002091f
cmp dword [ebx + 0x30], 0x7fffffff
je 0x10020933
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x54]
test eax, eax
je 0x10020750
lock inc dword [eax + 4]
mov edi, dword [esi + 0x54]
jmp 0x10020752
xor edi, edi
mov eax, dword [esi + 0x50]
mov dword [esi + 0xc], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov edx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x4c]
lea ecx, [eax + 1]
cmp edx, ecx
mov ecx, edx
ja 0x10020790
mov dword [esi + 0x18], edi
lea ecx, [ebx + 0x3c]
mov dword [esi + 0x98], 2
push 1
call fcn.1002caa0
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x4c]
mov edi, dword [esi + 0x18]
dec ecx
mov edx, dword [ebx + 0x48]
and edx, ecx
mov dword [ebx + 0x48], edx
add edx, eax
and ecx, edx
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + ecx*4]
test eax, eax
jne 0x100207e0
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x98], 2
push 0x28
call fcn.100e80cd
add esp, 4
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebx + 0x40]
mov edx, dword [esi + 0x78]
mov dword [ecx + edx*4], eax
mov eax, dword [ebx + 0x44]
dec eax
and eax, dword [esi + 0x74]
mov ecx, dword [ebx + 0x40]
mov eax, dword [ecx + eax*4]
mov edi, dword [esi + 0x18]
mov dword [eax + 0x24], 0
mov dword [eax], 0x101462a4
mov dword [eax + 4], 0
mov dword [eax + 8], 0
test edi, edi
je 0x10020810
lock inc dword [edi + 4]
mov ecx, dword [esi + 0x30]
mov dword [esi + 0xc], ecx
mov edi, dword [esi + 0x34]
jmp 0x10020812
xor edi, edi
mov ecx, dword [esi + 0xc]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0x24], eax
inc dword [ebx + 0x4c]
test edi, edi
je 0x10020840
lock dec dword [edi + 4]
jne 0x10020840
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock dec dword [edi + 8]
jne 0x10020840
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
nop
push dword [esi + 0x10]
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
lock inc dword [ebx + 0x50]
mov eax, 1
lock xadd dword [ebx + 0x34], eax
cmp eax, 0x7fffffff
jae 0x10020919
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x10020886
add ebx, 0x34
cmp eax, 2
jl 0x10020880
push ebx
call sub.MSVCP140_ATOMIC_WAIT.dll___std_atomic_notify_one_direct
jmp 0x10020886
push ebx
call sub.MSVCP140_ATOMIC_WAIT.dll___std_atomic_notify_all_direct
mov edi, dword [esi + 0x54]
test edi, edi
je 0x100208b0
lock dec dword [edi + 4]
jne 0x100208b0
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock dec dword [edi + 8]
jne 0x100208b0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
nop word cs:[eax + eax]
mov eax, dword [esi + 0x80]
test eax, eax
mov edi, dword [esi + 0x1c]
je 0x100205f0
lock dec dword [eax + 4]
jne 0x100205f0
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x100205e3
mov edx, dword [ecx]
push eax
call dword [edx]
jmp 0x100205f0
mov edi, dword [0x1029fb94]
cmp dword [edi + 0x50], 0
je 0x100208fb
nop dword [eax]
call sub.MSVCP140.dll__Thrd_yield
cmp dword [edi + 0x50], 0
jne 0x100208f0
mov eax, dword [esi + 0x70]
mov byte [eax + 0x189], 1
mov eax, dword [esi + 0x90]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov dword [esi + 0x98], 1
push 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
add esp, 4
mov dword [ebx + 0x30], Ordinal_2
mov dword [esi + 0x98], 1
push 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
add esp, 4
nop
push ebp
sub esp, 8
lea esi, [ebp - 0x9c]
mov ebp, dword [esi + 0x88]
push dword [esi + 0xc]
call fcn.100e81ab
add esp, 0xc
pop ebp
ret