Function at 0x4fb86c
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 0x4fb894
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 0x4fbd39
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4f663c]
call fcn.004f7fc8
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.00455d74
mov eax, dword [ebp - 4]
mov edx, dword [0x4f6d7c]
call fcn.00403ba8
test al, al
je 0x4fba8d
mov eax, dword [ebp - 0xc]
mov edx, dword [0x439d54]
call fcn.00403ba8
test al, al
je 0x4fba8d
mov eax, dword [ebp - 0xc]
call fcn.0041f91c
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4fba8d
inc ebx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041f8dc
mov edx, dword [0x44f518]
call fcn.00403ba8
test al, al
je 0x4fba55
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041f8dc
mov edx, dword [0x44f518]
call fcn.00403bc0
mov eax, dword [eax + 0x3c]
mov edx, dword [0x43a5d8]
call fcn.00403bc0
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004fced8
xor eax, eax
push ebp
push 0x4fba4e
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 [0x44f518]
call fcn.00403bc0
mov eax, dword [eax + 0x28]
call fcn.004528dc
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4fba30
inc ebx
xor esi, esi
push ebp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041f8dc
mov edx, dword [0x44f518]
call fcn.00403bc0
mov eax, dword [eax + 0x28]
mov edx, esi
call fcn.00452908
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
call fcn.004fb6c4
pop ecx
inc esi
dec ebx
jne 0x4fb9fa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fba8d
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 [0x4f6d7c]
call fcn.00403ba8
test al, al
je 0x4fba83
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0041f8dc
cmp eax, dword [ebp - 4]
je 0x4fba83
mov byte [ebp - 0xd], 1
inc dword [ebp - 0x14]
dec ebx
jne 0x4fb978
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 1
mov dl, 1
mov eax, dword [0x44d1cc]
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], 0x4fcefc
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], 0x4fbe30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4fbe30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4fbe30
mov eax, dword [ebp - 4]
test byte [eax + 0x20], 0x10
je 0x4fbb7b
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, 0x4fbd6c
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 [0x4f6d7c]
call fcn.00403ba8
test al, al
jne 0x4fbb9f
mov eax, dword [ebp - 4]
mov edx, dword [0x4f6f84]
call fcn.00403ba8
test al, al
je 0x4fbc08
mov eax, dword [ebp - 0xc]
mov edx, dword [0x439d54]
call fcn.00403ba8
test al, al
jne 0x4fbc08
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 [0x5789cc]
call fcn.00406ea4
mov edx, dword [ebp - 0x11c]
pop eax
call fcn.00404b44
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x4f5f3c]
call fcn.0040e328
call fcn.004041fc
jmp 0x4fbd13
mov eax, dword [ebp - 4]
call fcn.004fbd78
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004fce88
mov eax, dword [ebp - 4]
mov edx, dword [0x4f6d7c]
call fcn.00403ba8
test al, al
jne 0x4fbc42
mov eax, dword [ebp - 4]
mov edx, dword [0x4f6f84]
call fcn.00403ba8
test al, al
jne 0x4fbc42
xor eax, eax
jmp 0x4fbc44
mov al, 1
push eax
mov eax, dword [0x5787dc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004f5c54
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.004f7350
mov eax, dword [ebp - 4]
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x20], fcn.004f7460
mov eax, dword [ebp - 4]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], 0x4fc568
cmp byte [ebp - 0xd], 0
jne 0x4fbcec
mov eax, dword [ebp - 4]
mov edx, dword [0x4f6e6c]
call fcn.00403ba8
test al, al
jne 0x4fbca6
mov eax, dword [ebp - 4]
call fcn.004fbeb8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
test byte [eax + 0x20], 0x10
jne 0x4fbd13
cmp dword [0x578130], 0
jne 0x4fbcd9
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x4fb5e0
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x578130], eax
cmp dword [0x57812c], 0
jne 0x4fbd13
mov eax, dword [ebp - 4]
mov dword [0x57812c], eax
jmp 0x4fbd13
lea edx, [ebp - 0x120]
mov eax, dword [0x578450]
call fcn.00406ea4
mov ecx, dword [ebp - 0x120]
mov dl, 1
mov eax, dword [0x4f5f3c]
call fcn.0040e328
call fcn.004041fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fbd40
lea eax, [ebp - 0x120]
mov edx, 2
call fcn.004048b8
lea eax, [ebp - 0x18]
call fcn.00404894
ret