Function at 0x56f450
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74909a
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x8bb040]
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
mov dword [ebp - 0x3c], edi
xor eax, eax
mov dword [ebp - 0x80], edi
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [ebp - 4], eax
lea eax, [edi + 8]
mov ebx, dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
push eax
call ebx
mov esi, dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea eax, [edi + 0x30]
xor ecx, ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
push 2
push eax
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
call esi
lea eax, [edi + 0x60]
push eax
call ebx
lea eax, [edi + 0x88]
xor ecx, ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
push 2
push eax
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
call esi
lea eax, [edi + 0xb8]
mov dword [eax], 0
push eax
mov dword [eax + 4], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void__]
xor eax, eax
mov dword [edi + 0xc0], 3
mov dword [edi + 0xc4], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xdc], 0
mov dword [edi + 0xe0], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0xe8], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0
mov dword [edi + 0xfc], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x74]
push 2
push eax
call esi
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 6
push eax
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 0
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 0x28
test eax, eax
je 0x56f61e
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [ebp - 0x48]
cmp eax, 0x7fffffff
jne 0x56f634
dec eax
push 6
mov dword [ebp - 0x48], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov byte [ebp - 0x78], 1
lea eax, [ebp - 0x38]
push eax
call ebx
push 0x10
mov byte [ebp - 4], 8
call fcn.0073298e
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x3c], eax
mov dword [eax], ecx
lea ecx, [ebp - 0x38]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], 0x56f8e0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
push ecx
push 0
push eax
push 0x56ff50
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x20
mov dword [ebp - 0x44], ecx
test ecx, ecx
je 0x56f706
cmp dword [edi + 4], 0
je 0x56f693
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x40]
mov dword [edi], ecx
mov dword [edi + 4], eax
mov eax, dword [edi + 0xc4]
test eax, eax
jne 0x56f6c7
mov esi, dword [sym.imp.MSVCP140.dll__Cnd_wait]
jmp 0x56f6b0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x38]
push eax
call esi
mov eax, dword [edi + 0xc4]
add esp, 8
test eax, eax
je 0x56f6b0
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCP140.dll__Cnd_destroy_in_situ]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_destroy_in_situ]
add esp, 0xc
mov eax, edi
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.0073297b
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x40], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3