Function at 0x1002a9e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bbef8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x100f6458]
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 0x1002aa25
xor eax, eax
jmp 0x1002ae90
xorps xmm0, xmm0
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.10065f32
mov edi, eax
add esp, 4
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x1002ab18
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.10065f32
mov esi, eax
add esp, 4
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x1002aafd
push 0x7c
push ebx
push esi
call fcn.10089510
lea eax, [esi + 0xc]
mov dword [esi], vtable.std::_Associated_state_struct_HWND____.0
push eax
mov dword [esi + 4], 1
call fcn.10039ec7
mov byte [ebp - 4], 6
lea eax, [esi + 0x14]
push 2
push eax
mov dword [ebp - 0x28], eax
call fcn.1003946a
mov byte [ebp - 4], 8
lea eax, [esi + 0x44]
push eax
call fcn.1003a1c8
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 0x1002aaff
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 0x1002ab1a
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 0x1002adfb
mov byte [ebp - 4], 0xd
mov eax, dword [edx]
test eax, eax
je 0x1002aec2
cmp byte [edx + 4], 0
je 0x1002abbe
mov al, byte [eax + 0x6c]
test al, al
jne 0x1002aec2
cmp byte [edx + 8], 0
jne 0x1002aeae
lea eax, [ebp - 0x48]
mov byte [edx + 8], 1
xor ebx, ebx
mov dword [ebp - 0x48], 0
cmp eax, edx
je 0x1002abf6
mov eax, dword [edx]
test eax, eax
jne 0x1002abe7
mov dword [ebp - 0x48], ebx
jmp 0x1002abf6
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 0x1002adfb
mov esi, dword [ebp - 0x34]
add esi, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x30], esi
je 0x1002ac5e
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0x13
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x1002ac9a
lea eax, [esi + 0x1c]
push eax
push 0
push esi
push 0x1001cb20
push 0
push 0
call fcn.100910ad
add esp, 0x18
mov dword [esi + 0x18], eax
test eax, eax
jne 0x1002ac9a
mov byte [ebp - 4], 2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor cl, cl
jmp 0x1002ade9
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], 0x1002a610
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
test edi, edi
je 0x1002acd2
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.100294d0
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 0x1002ad4e
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x1002ad4e
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x38]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x1002ad4e
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 0x1002ad6a
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.10029380
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x1002adae
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x1002adae
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x28]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x1002adae
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 0x1002addc
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x1002addc
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x38]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x1002addc
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
jmp 0x1002adfe
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x44], 0
jne 0x1002ae0d
mov dword [eax + 0x40], 0
jmp 0x1002ae38
test ebx, ebx
je 0x1002aed6
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
mov al, byte [eax + 0x44]
test al, al
je 0x1002ae38
mov dword [ebp - 0x30], 1
test ecx, ecx
jne 0x1002ae3f
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0
test ebx, ebx
je 0x1002ae64
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x1002ae64
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x1002ae5c
mov eax, dword [ecx]
push ebx
jmp 0x1002ae62
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1002ae8d
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1002ae8d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1002ae8d
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.100662e1
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x18]
push 2
push eax
call fcn.10018860
add esp, 8
push eax
call fcn.100395cf
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.10018860
add esp, 8
push eax
call fcn.100395cf
lea eax, [ebp - 0x18]
push 4
push eax
call fcn.10018860
add esp, 8
push eax
call fcn.100395cf
int3