Function at 0x1000f9a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
push dword [edi + 0xb0]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1000fc16
mov edx, dword [ebp + 0xc]
mov dword [edi + 0x84], eax
lea eax, [edi + 0x1c]
push ebx
push esi
test edx, edx
jne 0x1000f9d3
xor ecx, ecx
jmp 0x1000f9f2
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000f9e0
sub ecx, esi
lea eax, [edi + 0x1c]
sar ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.1000deb0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1000fb0e
mov esi, ecx
lea ebx, [edi + 4]
lea edx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1000fa10
sub esi, edx
mov edx, dword [ebx + 0x14]
sar esi, 1
mov dword [ebp - 8], edx
cmp esi, edx
ja 0x1000fa56
mov dword [ebp + 8], ebx
mov eax, ebx
cmp edx, 8
jb 0x1000fa38
mov eax, dword [ebx]
mov dword [ebp + 8], eax
mov dword [ebx + 0x10], esi
add esi, esi
push esi
push ecx
push eax
call fcn.1009e240
mov eax, dword [ebp + 8]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x1000fb0e
cmp esi, 0x7ffffffe
ja 0x1000fc22
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x1000fa76
mov ecx, 0x7ffffffe
jmp 0x1000fa9a
mov eax, edx
shr eax, 1
mov dword [ebp + 0xc], eax
mov eax, 0x7ffffffe
sub eax, dword [ebp + 0xc]
cmp edx, eax
jbe 0x1000fa90
mov ecx, 0x7ffffffe
jmp 0x1000fa9a
mov eax, dword [ebp + 0xc]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp + 0xc], ecx
push eax
mov ecx, ebx
call fcn.10010910
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x10], esi
add esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
push eax
mov dword [ebx + 0x14], ecx
call fcn.1009dcc0
mov ecx, dword [ebp - 4]
xor eax, eax
add esp, 0xc
mov word [esi + ecx], ax
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x1000fb0c
lea ecx, [eax*2 + 2]
mov eax, dword [ebx]
cmp ecx, 0x1000
jb 0x1000fafb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fc27
mov eax, edx
push ecx
push eax
call fcn.10010eee
mov eax, dword [ebp - 4]
add esp, 8
mov dword [ebx], eax
jmp 0x1000fb0e
mov dword [ebx], ecx
mov eax, dword [edi + 0x1c]
mov ebx, dword [edi]
sub ebx, 0x10
mov dword [ebp + 0xc], eax
lea esi, [eax - 0x10]
cmp esi, ebx
je 0x1000fba6
cmp dword [ebx + 0xc], 0
jl 0x1000fb9b
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x1000fb9b
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x1000fb49
cmp ecx, dword [esi]
jne 0x1000fb49
lock inc dword [eax]
jmp 0x1000fb7d
mov eax, dword [ecx]
lea edx, [esi + 4]
push 2
push dword [edx]
mov dword [ebp + 8], edx
call dword [eax]
mov esi, eax
test esi, esi
je 0x1000fc2c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [esi + 4], eax
mov eax, dword [ecx]
inc eax
push eax
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.100087f0
add esp, 0x10
or eax, 0xffffffff
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000fb94
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esi + 0x10]
mov dword [edi], eax
jmp 0x1000fba6
push dword [eax - 0xc]
mov ecx, edi
push eax
call fcn.1000deb0
push dword [0x100f9144]
mov ecx, edi
call fcn.1000f7c0
pop esi
pop ebx
test ax, ax
jne 0x1000fbd0
push 0x100cd7fc
call fcn.1000c680
add esp, 4
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
push dword [0x100f9144]
mov ecx, edi
call fcn.1000f840
test eax, eax
jne 0x1000fbf7
push 0x100cd80c
call fcn.1000c680
add esp, 4
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 0x78], 0
jne 0x1000fc16
push 0
push 0
push edi
push 0x100104b0
push 0
push 0
call fcn.100a4d7d
add esp, 0x18
mov dword [edi + 0x78], eax
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 8
call fcn.100071f0
call fcn.100a07d9
call fcn.1000ad50
int3