Function at 0x100c87b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016f9e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
push edi
mov edi, edx
mov dword [ebp - 0x20], edi
test ebx, ebx
js 0x100c8b5e
je 0x100c8b5e
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_malloc]
push 0x20
push 0x28
call esi
add esp, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x100c880e
push edi
push ebx
mov ecx, eax
call fcn.100778d0
jmp 0x100c8810
xor eax, eax
xor edi, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], edi
test ebx, ebx
jle 0x100c8b4a
lea ebx, [eax + 8]
mov dword [ebp - 0x24], ebx
nop dword [eax]
push 0x20
push 0x80
call esi
mov esi, eax
add esp, 8
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 3
test esi, esi
je 0x100c8887
push 0x20
push 0x360
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_malloc]
add esp, 8
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x100c8870
mov ecx, eax
call fcn.100c0590
jmp 0x100c8872
xor eax, eax
push dword [ebp - 0x20]
mov byte [ebp - 4], 3
mov ecx, esi
push dword [ebp - 0x1c]
push edi
push eax
call fcn.10075b30
jmp 0x100c8889
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 5
mov edx, dword [ebx + 4]
cmp edx, dword [ebx + 8]
je 0x100c88a5
xor ecx, ecx
mov dword [edx], eax
add dword [ebx + 4], 4
jmp 0x100c88b4
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
push edx
call fcn.1008ad20
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x100c88c5
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebx]
push 0x170
mov esi, dword [eax + edi*4]
call fcn.100cd0b0
mov edi, eax
add esp, 4
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 6
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0x101a104c
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x44], eax
xorps xmm0, xmm0
movq qword [edi], xmm0
lea esi, [edi + 8]
mov dword [ebp - 0x34], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x100c891a
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov byte [edi + 0x30], 0
push 0x20
push 0x80000
mov dword [edi + 0x34], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0xb4], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_malloc]
mov dword [edi + 0xb8], eax
mov esi, dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea eax, [edi + 0xbc]
push 2
push eax
call esi
lea eax, [edi + 0xec]
push 2
push eax
call esi
mov esi, dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
lea eax, [edi + 0x11c]
push eax
call esi
add esp, 0x1c
lea eax, [edi + 0x144]
push eax
call esi
add esp, 4
push 8
mov byte [ebp - 4], 0xf
call fcn.100cd0b0
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], edi
mov dword [eax + 4], 0x1008a980
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x10
push ecx
push 0
push eax
push 0x1008aef0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x100c8b3b
mov byte [ebp - 4], 0xf
cmp dword [edi + 4], 0
jne 0x100c8b2e
mov eax, dword [ebp - 0x38]
xorps xmm0, xmm0
mov dword [edi], ecx
mov dword [edi + 4], eax
mov ecx, dword [ebp - 0x44]
movlpd qword [ebp - 0x3c], xmm0
test ecx, ecx
je 0x100c8a04
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
mov dword [ebp - 4], 0x11
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x100c8a26
xor esi, esi
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x100c8a33
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.1008ab70
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100c8b17
lea edi, [esi + 0xbc]
mov dword [ebp - 4], 0x12
push edi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
jne 0x100c8b34
mov byte [esi + 0x30], 1
push edi
mov byte [ebp - 4], 0x13
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
test eax, eax
jne 0x100c8b34
lea ebx, [esi + 0x144]
mov byte [ebp - 4], 0x14
push ebx
call dword [sym.imp.MSVCP140.dll__Cnd_signal]
add esp, 4
test eax, eax
jne 0x100c8b34
mov ecx, esi
mov byte [ebp - 4], 0x12
call fcn.10078200
push ebx
mov ebx, dword [sym.imp.MSVCP140.dll__Cnd_destroy_in_situ]
call ebx
add esp, 4
lea eax, [esi + 0x11c]
push eax
call ebx
mov ebx, dword [sym.imp.MSVCP140.dll__Mtx_destroy_in_situ]
lea eax, [esi + 0xec]
add esp, 4
push eax
call ebx
add esp, 4
push edi
call ebx
add esp, 4
lea ecx, [esi + 0x34]
call fcn.10078110
mov ecx, dword [esi + 0x2c]
lea edi, [esi + 8]
test ecx, ecx
je 0x100c8af9
mov edx, dword [ecx]
cmp ecx, edi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [edi + 0x24], 0
cmp dword [esi + 4], 0
jne 0x100c8b2e
push 0x170
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.100cd0a2
mov ebx, dword [ebp - 0x24]
add esp, 8
mov edi, dword [ebp - 0x18]
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0x1c]
jge 0x100c8b4a
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_malloc]
jmp 0x100c8830
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
push 6
mov dword [ebp - 0x38], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_malloc]
push 0x20
push 0x80
call edi
mov esi, eax
add esp, 8
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x100c8bc6
push 0x20
push 0x360
call edi
add esp, 8
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x100c8ba0
mov ecx, eax
call fcn.100c0590
jmp 0x100c8ba2
xor eax, eax
push dword [ebp - 0x20]
mov ecx, esi
mov byte [ebp - 4], 0
push 1
push 0
push eax
call fcn.10075b30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret