Function at 0x10027910
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c4148
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1010739c]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], eax
cmp byte [eax + 0x44], 0
je 0x10027955
xor eax, eax
jmp 0x10027dfe
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
xorps xmm0, xmm0
mov dword [0x1010cc94], eax
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
xor ebx, ebx
movlpd qword [ebp - 0x68], xmm0
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x64], bl
mov byte [ebp - 4], 3
push 0x18
call fcn.10050f0a
mov edi, eax
add esp, 4
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x10027a5b
lea eax, [edi + 0xc]
mov dword [edi + 4], 1
push 0x7c
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_std::promise_struct_HWND_____.0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x6c], eax
call fcn.10050f0a
mov esi, eax
add esp, 4
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x10027a40
push 0x7c
push ebx
push esi
call fcn.1008f970
lea eax, [esi + 0xc]
mov dword [esi], vtable.std::_Associated_state_struct_HWND____.0
push eax
mov dword [esi + 4], 1
call fcn.100449ec
mov byte [ebp - 4], 6
lea eax, [esi + 0x14]
push 2
push eax
mov dword [ebp - 0x28], eax
call fcn.10044fc6
mov byte [ebp - 4], 8
lea eax, [esi + 0x44]
push eax
call fcn.10045297
add esp, 0x1c
mov byte [ebp - 4], 9
mov byte [esi + 0x6c], bl
mov dword [esi + 0x70], ebx
mov word [esi + 0x74], bx
mov byte [esi + 0x76], bl
mov dword [esi + 0x78], ebx
mov byte [ebp - 4], 5
jmp 0x10027a42
xor esi, esi
mov byte [ebp - 4], 4
mov dword [edi + 0xc], esi
mov byte [edi + 0x10], 0
mov byte [ebp - 4], 0xa
mov byte [edi + 0x14], 0
mov byte [ebp - 4], 4
jmp 0x10027a5d
xor edi, edi
mov byte [ebp - 4], 3
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
lea edx, [edi + 0xc]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 3
mov ecx, 1
mov dword [ebp - 0x24], ecx
and ecx, 0xfffffffe
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 2
or esi, 0xffffffff
test edx, edx
je 0x10027d4b
mov byte [ebp - 4], 0xd
mov eax, dword [edx]
test eax, eax
je 0x10027e30
cmp byte [edx + 4], 0
je 0x10027b01
mov al, byte [eax + 0x6c]
test al, al
jne 0x10027e30
cmp byte [edx + 8], 0
jne 0x10027e1c
lea eax, [ebp - 0x48]
mov byte [edx + 8], 1
xor ebx, ebx
mov dword [ebp - 0x48], 0
cmp eax, edx
je 0x10027b39
mov eax, dword [edx]
test eax, eax
jne 0x10027b2a
mov dword [ebp - 0x48], ebx
jmp 0x10027b39
lock inc dword [eax + 4]
mov al, byte [edx + 4]
mov ebx, dword [edx]
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x44], al
mov byte [ebp - 0x44], 1
mov byte [ebp - 4], 0xd
or ecx, 2
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x5c], 1
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x5c], 0
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x64], 0
mov byte [ebp - 4], 0xd
and ecx, 0xfffffffd
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 2
test ebx, ebx
je 0x10027d4b
mov eax, dword [0x1010cc94]
test eax, eax
je 0x10027d50
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x30], 0
lea esi, [ecx + 8]
mov dword [ebp - 0x30], esi
test esi, esi
je 0x10027bb0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0x13
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x10027bec
lea eax, [esi + 0x1c]
push eax
push 0
push esi
push 0x10007fb0
push 0
push 0
call fcn.10095900
add esp, 0x18
mov dword [esi + 0x18], eax
test eax, eax
jne 0x10027bec
mov byte [ebp - 4], 2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor cl, cl
jmp 0x10027d3b
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x58]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0x100264c0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
test edi, edi
je 0x10027c24
lock inc dword [edi + 4]
lea eax, [edi + 0xc]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x58]
or dword [ebp - 0x24], 4
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10022440
add esp, 8
mov byte [ebp - 4], 0x1b
and dword [ebp - 0x24], 0xfffffffb
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x58]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x54]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x10027ca0
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x10027ca0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x38]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x10027ca0
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
test ecx, ecx
je 0x10027cbc
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 0x23
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x20]
call fcn.100222f0
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x10027d00
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x10027d00
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x28]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x10027d00
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x10027d2e
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x10027d2e
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x38]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x10027d2e
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov cl, 1
mov eax, dword [ebp - 0x34]
or esi, 0xffffffff
mov dword [ebp - 0x30], 0
mov byte [eax + 0x44], cl
mov eax, dword [0x1010cc94]
mov ecx, dword [ebp - 0x34]
cmp byte [ecx + 0x44], 0
jne 0x10027d7c
test eax, eax
je 0x10027d6e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1010cc94], 0
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dword [eax + 0x40], 0
jmp 0x10027d95
test ebx, ebx
je 0x10027e44
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x40], ecx
cmp byte [eax + 0x44], 0
je 0x10027da6
mov dword [ebp - 0x30], 1
test ecx, ecx
jne 0x10027dad
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0
test ebx, ebx
je 0x10027dd2
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x10027dd2
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x10027dca
mov eax, dword [ecx]
push ebx
jmp 0x10027dd0
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10027dfb
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10027dfb
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10027dfb
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
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.100512b9
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x18]
push 2
push eax
call fcn.10009740
add esp, 8
push eax
call fcn.10045b1e
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.10009740
add esp, 8
push eax
call fcn.10045b1e
lea eax, [ebp - 0x18]
push 4
push eax
call fcn.10009740
add esp, 8
push eax
call fcn.10045b1e
int3