Function at 0x410870
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov ebx, ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push dword [ebx + 4]
push dword [ebx + 0x40]
call dword [sym.imp.USER32.dll_CallWindowProcA]
mov ecx, ebx
mov dword [ebp + 0x10], eax
call fcn.0040fe00
push dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
mov esi, eax
push esi
call edi
test eax, eax
je 0x4108b9
nop
push eax
mov esi, eax
call edi
test eax, eax
jne 0x4108b0
mov eax, dword [ebx + 0x6c]
lea edi, [ebx + 0x5c]
test eax, eax
jne 0x4108cf
call fcn.0041d1c6
mov dword [edi + 0x10], eax
test eax, eax
je 0x4108f6
push edi
push 0x416840
push eax
call fcn.0041d2c8
push dword [edi + 0x10]
call fcn.0041d22b
push eax
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
test eax, eax
je 0x4108f6
mov dword [edi + 0x18], eax
mov dword [edi], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x14
push 0x41e
push dword [ebx + 4]
call esi
push 0
push 0
push 0x430
push dword [ebx + 4]
call esi
push 0x47502c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x476f44], 0
jne 0x410957
push 0xc
call fcn.0041ddf4
add esp, 4
test eax, eax
je 0x410a1c
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [0x476f44], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x476f44]
mov edi, eax
xor ecx, ecx
mov eax, dword [esi + 8]
test eax, eax
jle 0x410980
mov edx, dword [esi]
cmp dword [edx], edi
je 0x410a28
inc ecx
add edx, 4
cmp ecx, eax
jl 0x410970
push 8
call fcn.0041ddf4
add esp, 4
mov ebx, eax
push edi
test ebx, ebx
je 0x410a4c
mov dword [ebx], 0
mov dword [ebx + 4], 0
push dword [0x4770e4]
push 0x410370
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
je 0x410a5f
mov dword [ebx], eax
mov dword [ebx + 4], 1
mov esi, dword [0x476f44]
push 4
mov eax, dword [esi + 8]
inc eax
push eax
push dword [esi]
call fcn.0043b174
add esp, 0xc
test eax, eax
je 0x410a5f
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.0043b174
add esp, 0xc
test eax, eax
je 0x410a5f
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
lea ecx, [eax*4]
mov eax, dword [esi]
add eax, ecx
je 0x410a0e
mov dword [eax], edi
mov eax, dword [esi + 4]
add eax, ecx
je 0x410a17
mov dword [eax], ebx
inc dword [esi + 8]
jmp 0x410a5f
mov dword [0x476f44], 0
jmp 0x410a62
cmp ecx, 0xffffffff
je 0x410980
test ecx, ecx
js 0x410a9d
cmp ecx, eax
jge 0x410a9d
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x410980
inc dword [eax + 4]
jmp 0x410a62
push dword [0x4770e4]
push 0x410370
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov ebx, dword [ebp - 4]
push 0x47502c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov cl, byte [ebx + 0x85]
shr eax, 0x16
and cl, 0xbf
and al, 1
shl al, 6
pop edi
or cl, al
mov eax, dword [ebp + 0x10]
pop esi
mov byte [ebx + 0x85], cl
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 1
push 0xc000008c
call fcn.00416bc0
int3