Function at 0x429dbc
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov dword [esp + 0x20], ecx
mov eax, dword [0x803620]
cmp eax, 3
jne 0x42a1a0
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0x8037b0
mov eax, dword [0x8037bc]
cmp eax, 3
jne 0x42a1cf
mov eax, dword [esp + 0x28]
xor edx, edx
xor edi, edi
mov ebx, dword [eax + 8]
mov esi, dword [eax]
mov ecx, ebx
call fcn.00617f78
add ebx, ebx
mov dword [esp + 0xc], edx
push ebx
mov ebx, eax
push esi
push eax
call fcn.0064a810
add esp, 0xc
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
jne 0x429e38
call dword [sym.imp.kernel32.dll_GetLastError]
xor eax, eax
push edi
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
push 0x80800a0
call dword [sym.imp.user32.dll_CreateWindowExW]
cmp dword [esp + 0xc], 0
mov esi, eax
je 0x429e66
push ebx
push 0
push dword [0x8032a8]
call dword [sym.imp.kernel32.dll_HeapFree]
push 0x90000000
push 0xfffffffffffffff0
mov dword [esp + 0x14], esi
push esi
call dword [sym.imp.user32.dll_SetWindowLongW]
call fcn.005ba5a0
xor ecx, ecx
mov ebx, eax
call fcn.005a31f0
lock inc dword [eax]
jle 0x42a202
mov esi, eax
mov al, byte [0x803894]
mov ecx, 0x18
mov edx, 4
call fcn.004889b0
test eax, eax
je 0x42a206
mov edi, eax
xor eax, eax
mov dword [esp + 0x1c], ebx
inc eax
mov dword [edi], eax
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esp + 0xa4], edi
lock inc dword [edi]
jle 0x42a202
xor ecx, ecx
call fcn.005b0f00
mov ebx, eax
test eax, eax
je 0x429eed
lock inc dword [ebx]
jle 0x42a202
mov ecx, ebx
jmp 0x429eef
xor ecx, ecx
call fcn.005b0f00
test eax, eax
mov dword [esp + 0x10], esi
je 0x429f08
lock dec dword [eax]
jne 0x429f08
mov ecx, eax
call fcn.005b10f0
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x429f22
add ecx, 8
call fcn.005a6010
mov al, byte [0x803894]
mov ecx, 0x14
mov edx, 4
call fcn.004889b0
test eax, eax
je 0x42a215
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0xc]
lea ebx, [esp + 0x30]
mov dword [eax + 0x10], ecx
mov ecx, ebx
push 0x6665bc
push eax
call fcn.005ba920
add esp, 8
movzx edi, byte [ebx]
cmp edi, 4
jne 0x42a224
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lock dec dword [esi]
jne 0x429fa5
mov ecx, dword [esp + 0x30]
call fcn.004e3475
mov eax, dword [esp + 0x34]
lock dec dword [eax]
jne 0x429fb7
lea ecx, [esp + 0x34]
call fcn.00602b3f
xor edi, edi
xorps xmm0, xmm0
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], edi
movaps xmmword [esp + 0x30], xmm0
call fcn.005c24a9
mov esi, dword [eax]
call fcn.005c24a9
push dword [eax]
push esi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageW]
mov dword [esp + 0x24], eax
call fcn.005c24a9
mov ecx, dword [esp + 0x34]
cmp ecx, dword [eax]
jne 0x42a298
lea esi, [esp + 0x30]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
call fcn.005a62b0
mov dword [esp + 0x14], ecx
mov ecx, esi
mov dword [esp + 0x10], eax
mov ebx, edx
call fcn.005c3589
mov eax, dword [esp + 0xc]
mov ecx, 0x78
mov edx, 8
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x28], 0x3b9aca00
mov byte [esi + 0x6c], 0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], 8
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x48], edi
mov al, byte [0x803894]
call fcn.004889b0
test eax, eax
je 0x42a2d7
mov edi, eax
mov dword [eax + 4], 1
lea esi, [esp + 0x30]
mov ecx, 0x1c
mov ebx, eax
mov edx, 0x40
add edi, 8
rep movsd dword es:[edi], dword [esi]
mov dword [eax], 2
mov ecx, 0x100
mov al, byte [0x803894]
call fcn.004889b0
test eax, eax
je 0x42a2e3
movaps xmm0, xmmword [0x6616f0]
mov esi, eax
xor eax, eax
xor ecx, ecx
mov edx, 4
inc ecx
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x80], eax
mov byte [esi + 0x84], al
mov dword [esi + 0x88], 4
mov dword [esi + 0x8c], eax
movaps xmmword [esi + 0x90], xmm0
mov byte [esi + 0xa0], 1
mov dword [esi + 0xc0], ecx
mov dword [esi + 0xc4], ecx
mov byte [esi + 0xc8], al
mov ecx, 0xc
mov al, byte [0x803894]
call fcn.004889b0
mov edi, dword [esp + 0xc]
test eax, eax
je 0x42a2ef
xor ecx, ecx
inc ecx
mov dword [eax], ecx
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
push eax
push ecx
push 0x42a328
push edi
call dword [sym.imp.comctl32.dll_SetWindowSubclass]
test eax, eax
je 0x42a300
mov eax, 0x2000
mov dword [esp + 0x30], 0x20001
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 0x60001
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
push 0xc
push 2
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.user32.dll_RegisterRawInputDevices]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [eax], 1
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0xa4]
lea esi, [esp + 0x30]
mov ecx, 0x803620
xor edx, edx
mov byte [eax], 1
mov dword [esi], eax
push 0x7c2f88
push 0x7c221c
push esi
call fcn.00659910
add esp, 0xc
jmp 0x429ddd
lea eax, [esp + 0x28]
lea ecx, [esp + 0xa4]
xor edx, edx
mov dword [ecx], eax
lea eax, [esp + 0x30]
mov dword [eax], ecx
lea ecx, [0x8037bc]
push 0x7c1f30
push 0x7c2140
push eax
call fcn.00659910
add esp, 0xc
jmp 0x429dfd
ud2
mov ecx, 4
mov edx, 0x18
jmp 0x42a2f9
mov ecx, 4
mov edx, 0x14
jmp 0x42a2f9
movzx eax, byte [esp + 0x33]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
movzx esi, word [esp + 0x31]
shl eax, 0x10
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], eax
lock dec dword [ecx]
jne 0x42a252
lea ecx, [esp + 0xa4]
call fcn.00602b3f
mov eax, dword [esp + 0x10]
add esi, dword [esp + 0x18]
lock dec dword [eax]
jne 0x42a268
mov ecx, dword [esp + 0x10]
call fcn.004e3475
mov eax, dword [esp + 0xc]
shl esi, 8
mov ecx, str.failed_to_spawn_thread
mov edx, 0x16
or esi, edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
push 0x6665ac
push 0x666bf8
push ebx
call fcn.006525c0
add esp, 0xc
ud2
lea edx, [esp + 0x24]
lea esi, [esp + 0x28]
lea edi, [esp + 0xa4]
lea ecx, [esp + 0x34]
mov dword [esi], edx
xor edx, edx
mov dword [esi + 4], fcn.004adee0
mov dword [edi], 0x7c30b0
inc edx
mov dword [edi + 4], edx
mov dword [edi + 8], esi
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], 0
mov edx, eax
push edi
call fcn.0065b0d8
jmp 0x42a314
mov ecx, 8
mov edx, 0x78
jmp 0x42a2f9
mov ecx, 0x40
mov edx, 0x100
jmp 0x42a2f9
mov ecx, 4
mov edx, 0xc
call fcn.00651860
ud2
mov ecx, 0x7c4455
mov edx, 0x2b
push 0x6666e0
call fcn.006522d0
add esp, 4
ud2