Function at 0x514a18
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 0x514a40
add esp, 0xfffffff0
call fcn.004034b0
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x514ee5
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x50f7e8]
call fcn.00511174
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.004487e8
mov eax, dword [ebp - 4]
mov edx, dword [0x50ff28]
call fcn.004032e8
test al, al
je 0x514c39
mov eax, dword [ebp - 0xc]
mov edx, dword [0x431a44]
call fcn.004032e8
test al, al
je 0x514c39
mov eax, dword [ebp - 0xc]
call fcn.0041a134
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x514c39
inc ebx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041a108
mov edx, dword [0x4431c8]
call fcn.004032e8
test al, al
je 0x514c01
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041a108
mov edx, dword [0x4431c8]
call fcn.00403300
mov eax, dword [eax + 0x3c]
mov edx, dword [0x4322c8]
call fcn.00403300
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00516084
xor eax, eax
push ebp
push 0x514bfa
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041a108
mov edx, dword [0x4431c8]
call fcn.00403300
mov eax, dword [eax + 0x28]
call fcn.00446038
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x514bdc
inc ebx
xor esi, esi
push ebp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041a108
mov edx, dword [0x4431c8]
call fcn.00403300
mov eax, dword [eax + 0x28]
mov edx, esi
call fcn.00446048
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
call fcn.00514870
pop ecx
inc esi
dec ebx
jne 0x514ba6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514c39
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041a108
call fcn.00403170
ret
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041a108
mov edx, dword [0x50ff28]
call fcn.004032e8
test al, al
je 0x514c2f
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041a108
cmp eax, dword [ebp - 4]
je 0x514c2f
mov byte [ebp - 0xd], 1
inc dword [ebp - 0x14]
dec ebx
jne 0x514b24
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 1
mov dl, 1
mov eax, dword [0x440e7c]
call fcn.00403140
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], 0x5160a8
mov dl, 1
mov eax, dword [0x41b00c]
call fcn.0041c544
mov edx, dword [ebp - 4]
mov dword [edx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b00c]
call fcn.0041c544
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
mov dl, 1
mov eax, dword [0x41b00c]
call fcn.0041c544
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], 0x514fdc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x514fdc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x514fdc
mov eax, dword [ebp - 4]
test byte [eax + 0x20], 0x10
je 0x514d27
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, 0x8000000e
call fcn.0041c718
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, 0x514f18
call fcn.0041c940
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, 7
call fcn.0041c9b8
mov eax, dword [ebp - 4]
mov edx, dword [0x50ff28]
call fcn.004032e8
test al, al
jne 0x514d4b
mov eax, dword [ebp - 4]
mov edx, dword [0x510130]
call fcn.004032e8
test al, al
je 0x514db4
mov eax, dword [ebp - 0xc]
mov edx, dword [0x431a44]
call fcn.004032e8
test al, al
jne 0x514db4
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004030bc
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x18]
call fcn.00404134
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x11c]
mov eax, dword [0x645700]
call fcn.0040608c
mov edx, dword [ebp - 0x11c]
pop eax
call fcn.00404198
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x50f0e8]
call fcn.0040cb64
call fcn.00403908
jmp 0x514ebf
mov eax, dword [ebp - 4]
call fcn.00514f24
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00516034
mov eax, dword [ebp - 4]
mov edx, dword [0x50ff28]
call fcn.004032e8
test al, al
jne 0x514dee
mov eax, dword [ebp - 4]
mov edx, dword [0x510130]
call fcn.004032e8
test al, al
jne 0x514dee
xor eax, eax
jmp 0x514df0
mov al, 1
push eax
mov eax, dword [0x645478]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0050bbfc
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.005104fc
mov eax, dword [ebp - 4]
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x20], fcn.0051060c
mov eax, dword [ebp - 4]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], 0x515714
cmp byte [ebp - 0xd], 0
jne 0x514e98
mov eax, dword [ebp - 4]
mov edx, dword [0x510018]
call fcn.004032e8
test al, al
jne 0x514e52
mov eax, dword [ebp - 4]
call fcn.00515064
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
test byte [eax + 0x20], 0x10
jne 0x514ebf
cmp dword [0x6418f4], 0
jne 0x514e85
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
push 0x51478c
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x6418f4], eax
cmp dword [0x6418f0], 0
jne 0x514ebf
mov eax, dword [ebp - 4]
mov dword [0x6418f0], eax
jmp 0x514ebf
lea edx, [ebp - 0x120]
mov eax, dword [0x644ff0]
call fcn.0040608c
mov ecx, dword [ebp - 0x120]
mov dl, 1
mov eax, dword [0x50f0e8]
call fcn.0040cb64
call fcn.00403908
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514eec
lea eax, [ebp - 0x120]
mov edx, 2
call fcn.00403f34
lea eax, [ebp - 0x18]
call fcn.00403f10
ret