Function at 0x10040ae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d092
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1008400c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x10], 0
jne 0x10040cf4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 4]
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x18], 0
mov edi, dword [eax + 0x29c]
test edi, edi
je 0x10040cf4
mov esi, dword [edi]
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x2c]
push eax
mov esi, dword [esi]
mov ecx, esi
push 0xb
call dword [0x1006f584]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x18]
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebx + 0xc], ecx
test ecx, ecx
je 0x10040cde
mov eax, dword [ecx + 0xc]
inc eax
mov dword [ecx + 0xc], eax
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
mov esi, dword [eax + 0x64]
mov ecx, esi
call dword [0x1006f584]
mov ecx, edi
call esi
test al, al
je 0x10040cdb
mov eax, dword [ebx + 4]
push 0x44
mov eax, dword [eax + 0x294]
mov dword [ebp - 0x1c], eax
call fcn.10069221
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov dword [esi + 8], vtable.CAnnoTextInputHostObserver.0
lea edi, [esi + 0x10]
mov dword [esi], vtable.CAnnoTextInputWindows.0
lea edx, [edi + 0x14]
mov dword [esi + 8], vtable.CAnnoTextInputWindows.1.0
mov dword [esi + 0xc], 0
xor eax, eax
mov dword [ebp - 0x24], edi
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 3
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov al, byte [ecx + 0xc]
mov byte [edi + 0xc], al
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x10], eax
lea eax, [ecx + 0x14]
cmp edx, eax
je 0x10040c2e
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x10040c20
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edx
call fcn.10002800
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x2c]
mov dword [edi + 0x2c], eax
mov ax, word [ecx + 0x30]
mov dword [ebp - 4], 0xffffffff
mov word [edi + 0x30], ax
mov dword [ebx + 0x10], esi
mov dword [esi + 4], ebx
mov edi, dword [ebx + 4]
mov dword [ebx + 8], 3
push 3
mov eax, dword [edi + 0x28c]
mov esi, dword [eax]
mov ecx, esi
call dword [0x1006f584]
lea ecx, [edi + 0x28c]
call esi
or dword [ebp - 0x14], eax
mov eax, dword [ebx + 4]
mov edi, dword [eax + 0x29c]
lea eax, [ebp - 0xd]
push eax
push dword [ebx + 0xc]
mov esi, dword [edi]
push 0x11
mov esi, dword [esi]
mov ecx, esi
call dword [0x1006f584]
mov ecx, edi
call esi
or dword [ebp - 0x14], eax
mov eax, dword [ebx + 4]
mov edi, dword [eax + 0x29c]
lea eax, [ebp - 0xd]
push eax
push dword [ebx + 0xc]
mov esi, dword [edi]
push 0xf
mov esi, dword [esi]
mov ecx, esi
call dword [0x1006f584]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x14]
mov ecx, ebx
or esi, eax
call fcn.10040d10
or esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x14]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4