Function at 0x4ef958
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x11c], ebx
test dl, dl
je 0x4ef980
add esp, 0xfffffff0
call fcn.00403da4
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4efe25
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4ea728]
call fcn.004ec0b4
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x80], ebx
mov eax, dword [ebp - 4]
mov dword [ebx + 0xf4], eax
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov dword [ebx + 0xf0], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0xec], eax
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
mov dword [ebx + 0xe8], eax
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
mov dword [ebx + 0xdc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x86], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0xa0], 0x8000000d
mov eax, dword [ebp - 4]
mov word [eax + 0x84], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x70], 0
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004550c8
mov eax, dword [ebp - 4]
mov edx, dword [0x4eae68]
call fcn.00403ba8
test al, al
je 0x4efb79
mov eax, dword [ebp - 0xc]
mov edx, dword [0x439204]
call fcn.00403ba8
test al, al
je 0x4efb79
mov eax, dword [ebp - 0xc]
call fcn.0041f91c
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4efb79
inc ebx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041f8dc
mov edx, dword [0x44e86c]
call fcn.00403ba8
test al, al
je 0x4efb41
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041f8dc
mov edx, dword [0x44e86c]
call fcn.00403bc0
mov eax, dword [eax + 0x3c]
mov edx, dword [0x439a88]
call fcn.00403bc0
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004f0fc4
xor eax, eax
push ebp
push 0x4efb3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041f8dc
mov edx, dword [0x44e86c]
call fcn.00403bc0
mov eax, dword [eax + 0x28]
call fcn.00451c30
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4efb1c
inc ebx
xor esi, esi
push ebp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041f8dc
mov edx, dword [0x44e86c]
call fcn.00403bc0
mov eax, dword [eax + 0x28]
mov edx, esi
call fcn.00451c5c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
call fcn.004ef7b0
pop ecx
inc esi
dec ebx
jne 0x4efae6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4efb79
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041f8dc
call fcn.00403a08
ret
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041f8dc
mov edx, dword [0x4eae68]
call fcn.00403ba8
test al, al
je 0x4efb6f
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041f8dc
cmp eax, dword [ebp - 4]
je 0x4efb6f
mov byte [ebp - 0xd], 1
inc dword [ebp - 0x14]
dec ebx
jne 0x4efa64
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 1
mov dl, 1
mov eax, dword [0x44c520]
call fcn.004039ac
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], ebx
mov eax, dword [ebp - 4]
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], 0x4f0fe8
mov dl, 1
mov eax, dword [0x420b20]
call fcn.00422294
mov edx, dword [ebp - 4]
mov dword [edx + 0x90], eax
mov dl, 1
mov eax, dword [0x420b20]
call fcn.00422294
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
mov dl, 1
mov eax, dword [0x420b20]
call fcn.00422294
mov edx, dword [ebp - 4]
mov dword [edx + 0xa4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4eff1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4eff1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4eff1c
mov eax, dword [ebp - 4]
test byte [eax + 0x20], 0x10
je 0x4efc67
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, 0x8000000e
call fcn.004224b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, 0x4efe58
call fcn.0042272c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, 7
call fcn.004227bc
mov eax, dword [ebp - 4]
mov edx, dword [0x4eae68]
call fcn.00403ba8
test al, al
jne 0x4efc8b
mov eax, dword [ebp - 4]
mov edx, dword [0x4eb070]
call fcn.00403ba8
test al, al
je 0x4efcf4
mov eax, dword [ebp - 0xc]
mov edx, dword [0x439204]
call fcn.00403ba8
test al, al
jne 0x4efcf4
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403928
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x18]
call fcn.00404ae0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x11c]
mov eax, dword [0x567934]
call fcn.00406ea4
mov edx, dword [ebp - 0x11c]
pop eax
call fcn.00404b44
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x4ea028]
call fcn.0040e328
call fcn.004041fc
jmp 0x4efdff
mov eax, dword [ebp - 4]
call fcn.004efe64
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004f0f74
mov eax, dword [ebp - 4]
mov edx, dword [0x4eae68]
call fcn.00403ba8
test al, al
jne 0x4efd2e
mov eax, dword [ebp - 4]
mov edx, dword [0x4eb070]
call fcn.00403ba8
test al, al
jne 0x4efd2e
xor eax, eax
jmp 0x4efd30
mov al, 1
push eax
mov eax, dword [0x567748]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004e9d40
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x6c], ebx
mov eax, dword [ebp - 4]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], fcn.004eb43c
mov eax, dword [ebp - 4]
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x20], fcn.004eb54c
mov eax, dword [ebp - 4]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], 0x4f0654
cmp byte [ebp - 0xd], 0
jne 0x4efdd8
mov eax, dword [ebp - 4]
mov edx, dword [0x4eaf58]
call fcn.00403ba8
test al, al
jne 0x4efd92
mov eax, dword [ebp - 4]
call fcn.004effa4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
test byte [eax + 0x20], 0x10
jne 0x4efdff
cmp dword [0x56709c], 0
jne 0x4efdc5
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x4ef6cc
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x56709c], eax
cmp dword [0x567098], 0
jne 0x4efdff
mov eax, dword [ebp - 4]
mov dword [0x567098], eax
jmp 0x4efdff
lea edx, [ebp - 0x120]
mov eax, dword [0x5673bc]
call fcn.00406ea4
mov ecx, dword [ebp - 0x120]
mov dl, 1
mov eax, dword [0x4ea028]
call fcn.0040e328
call fcn.004041fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4efe2c
lea eax, [ebp - 0x120]
mov edx, 2
call fcn.004048b8
lea eax, [ebp - 0x18]
call fcn.00404894
ret