Function at 0x10018930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100443f7
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1006f368]
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, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [eax + 4], 0
mov dword [eax + 8], str.invalid_control
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0x10063f90
mov dword [eax], vtable.c_key_bind.0
mov dword [eax + 0x24], str.Always
mov dword [eax + 0x28], str.Hold
mov dword [eax + 0x2c], str.Toggle
mov dword [eax + 0x30], str.Off_Key
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
push 0x28
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
mov dword [eax + 8], edi
call fcn.10041382
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
lea esi, [ebx + 0xc]
xorps xmm0, xmm0
mov ecx, esi
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
push edi
mov dword [ebx + 4], 1
mov dword [ebx + 8], 1
mov dword [ebx], vtable.std::_Ref_count_obj2_struct_key_bind_t_.0
call fcn.10018850
mov edi, dword [ebp - 0x14]
mov dword [edi + 0x34], esi
mov esi, dword [edi + 0x38]
mov dword [edi + 0x38], ebx
or ebx, 0xffffffff
test esi, esi
je 0x10018a8f
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10018a8f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10018a8f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [edi + 0xc], 7
mov eax, dword [edi + 0x38]
test eax, eax
je 0x10018aa1
lock inc dword [eax + 4]
mov eax, dword [edi + 0x34]
mov esi, dword [edi + 0x38]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 2
mov ebx, dword [0x10070c40]
mov ecx, dword [0x10070c3c]
mov edx, dword [0x10070c38]
lea eax, [ebx + ecx]
test al, 1
jne 0x10018af3
lea eax, [ebx + 2]
shr eax, 1
cmp edx, eax
ja 0x10018af3
push ecx
mov ecx, 0x10070c30
call fcn.10003290
mov ebx, dword [0x10070c40]
mov ecx, dword [0x10070c3c]
mov edx, dword [0x10070c38]
lea eax, [edx*2 - 1]
and ecx, eax
lea eax, [edx - 1]
add ebx, ecx
mov dword [0x10070c3c], ecx
mov ecx, ebx
shr ecx, 1
and ecx, eax
mov eax, dword [0x10070c34]
mov dword [ebp - 0x14], ecx
cmp dword [eax + ecx*4], 0
jne 0x10018b39
push 0x10
call fcn.10041382
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [0x10070c34]
add esp, 4
mov dword [eax + edx*4], ecx
mov ecx, edx
mov eax, dword [0x10070c34]
mov eax, dword [eax + ecx*4]
and ebx, 1
mov dword [eax + ebx*8], 0
mov dword [eax + ebx*8 + 4], 0
test esi, esi
je 0x10018b56
lock inc dword [esi + 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + ebx*8], ecx
mov dword [eax + ebx*8 + 4], esi
inc dword [0x10070c40]
test esi, esi
je 0x10018b93
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10018b93
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10018b93
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x20], ecx
jmp 0x10018b99
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x20], eax
mov eax, edi
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.10040c92
mov esp, ebp
pop ebp
ret 0xc