Function at 0x10046a60
Capabilities:
Access peb ldr_data
Enumerate gui resources
Get number of processors
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e913
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x1007a058]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebx], 0
push 0x38
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.1001fad7
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebx + 4], eax
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x1c], 8
mov dword [ebx], 0x3f800000
push dword [ebx + 4]
push 0x10
call fcn.10004320
mov dword [ebp - 4], 2
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov byte [ebp - 4], 5
lea esi, [ebx + 0x44]
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
push 0x14
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.1001fad7
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 7
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.10004320
mov dword [ebp - 4], 8
mov eax, dword [ebp + 8]
push 0x1007e604
mov dword [ebx + 0x6c], eax
mov dword [ebp + 8], 0x1007e604
call fcn.1001e6a4
add esp, 4
test eax, eax
jne 0x10046d8a
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.100465c0
movzx eax, byte [ebp + 0xb]
mov byte [ebp - 0x4c], al
movzx eax, byte [ebp + 0xb]
mov byte [ebp - 0x4b], al
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8core_binder__AEXABV__basic_string_DU__char_traits_D_std__V__allocator_D_2__2__N_ZPAV34_ABU___Ph__00_2_ABU___Ph__01_2__std__XABV__basic_string_DU__char_traits_D_std__V__allocator_D_2__2__N_std__.0
mov dword [ebp - 0x50], 0x100462b0
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x30], eax
lea eax, [ebx + 0x2c]
mov byte [ebp - 4], 0xa
mov esi, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x10046c39
mov dword [ebp - 0x1c], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x10046c33
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
lea eax, [ebx + 0x2c]
mov ecx, dword [ebp - 0x30]
add dword [eax + 4], 0x28
jmp 0x10046c48
lea ecx, [ebp - 0x54]
push ecx
push esi
mov ecx, eax
call fcn.10004780
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x10046c5c
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x54]
cmp ecx, eax
setne al
push eax
call edx
mov al, byte [ebp + 0xb]
mov byte [ebp - 0x4c], al
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8core_binder__AEXABV__basic_string_DU__char_traits_D_std__V__allocator_D_2__2__ZPAV34_ABU___Ph__00_2__std__XABV__basic_string_DU__char_traits_D_std__V__allocator_D_2__2__std__.0
mov dword [ebp - 0x50], 0x10046280
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xd
mov esi, dword [ebx + 0x3c]
cmp esi, dword [ebx + 0x40]
je 0x10046cab
mov dword [ebp - 0x1c], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x10046ca5
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov ecx, dword [ebp - 0x30]
add dword [ebx + 0x3c], 0x28
jmp 0x10046cbb
lea eax, [ebp - 0x54]
push eax
push esi
lea ecx, [ebx + 0x38]
call fcn.10004780
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x10046cd4
mov edx, dword [ecx]
lea eax, [ebp - 0x54]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, ebx
call fcn.10047c90
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x10047100
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x10046ea0
push 0xfffffffffffffffc
push eax
mov dword [ebx + 0x68], eax
call edi
lea ecx, [ebx + 0x64]
mov esi, eax
push ecx
push 0
push 0x8000
push dword [ebx + 0x68]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push 0xfffffffffffffffc
push dword [ebx + 0x68]
call edi
mov eax, dword [ebx + 0x68]
mov esi, dword [sym.imp.USER32.dll_RegisterRawInputDevices]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push 1
push eax
mov dword [ebp - 0x28], 0x20001
mov dword [ebp - 0x24], 0
call esi
mov eax, dword [ebx + 0x68]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push 1
push eax
mov dword [ebp - 0x28], 0x60001
mov dword [ebp - 0x24], 0
call esi
push 0x1007e604
call fcn.1001e6b5
add esp, 4
mov eax, ebx
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
push eax
call fcn.1001e32a
int3