Function at 0x5013a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x5013a8
push ecx
push ebx
push esi
push edi
mov ebx, dword [0x515e14]
xor eax, eax
push ebp
push 0x501d5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41a2e8]
call fcn.00403acc
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x38]
mov eax, dword [0x515c1c]
mov eax, dword [eax]
call fcn.00480684
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00409e74
push dword [ebp - 0x34]
push 0x501d74
mov eax, dword [0x515620]
push dword [eax]
push 0x501d80
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404c90
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x43ae90]
call fcn.0043af40
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x501cfe
push dword fs:[edx]
mov dword fs:[edx], esp
push 1
mov ecx, 0x501d90
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x324]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501db4
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 1], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x314]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 0
mov ecx, 0x501dc8
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 2], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x310]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501ddc
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 3], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x330]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501df0
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 4], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x32c]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501e04
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 5], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x348]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501e18
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 6], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x31c]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 0
mov ecx, 0x501e2c
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 0x3a], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x390]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 0
mov ecx, 0x501e40
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 7], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x320]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501e54
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 8], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x334]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501e68
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 9], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x338]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501e7c
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 0xa], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x354]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501e90
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 0xb], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x358]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501ea4
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 0x38], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x36c]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501eb8
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 0x39], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x370]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 0
mov ecx, 0x501ecc
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 0x40], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x3ac]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501ee0
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 0x41], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x3a4]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501ef4
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 0x42], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x3a0]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501f08
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 0x43], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x3a8]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501f1c
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 0x44], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x3b0]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 1
mov ecx, 0x501f30
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 0x47], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x3c4]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 0
mov ecx, 0x501f44
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 0x45], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x3b4]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 0
mov ecx, 0x501f58
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov edx, dword [0x515da0]
mov byte [edx + 0x46], al
mov edx, dword [ebx]
mov edx, dword [edx + 0x3b8]
xchg edx, eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
push 0x501f70
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x501f7c
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, dword [0x515da0]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x398]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push 0x501f70
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x501f8c
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, dword [0x515da0]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x34c]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push 0x501f70
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x501f9c
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, dword [0x515da0]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x350]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push 0x501f70
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x501fac
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, dword [0x515da0]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x344]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push 0x501f70
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x501fbc
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, dword [0x515da0]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x37c]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push 0x501fd0
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x501fdc
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, dword [0x515da0]
mov dword [edx + 0x1c], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x33c]
mov edx, dword [ebp - 0x10]
call fcn.0046018c
push 0x501ff0
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x501ffc
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, dword [0x515da0]
mov dword [edx + 0x28], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x3c0]
mov edx, dword [ebp - 0x10]
call fcn.0046018c
push 0x502014
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x502020
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, dword [0x515da0]
mov dword [edx + 0x20], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x39c]
mov edx, dword [ebp - 0x10]
call fcn.0046018c
push 0x502038
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x502044
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, dword [0x515da0]
mov dword [edx + 0x2c], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x374]
mov edx, dword [ebp - 0x10]
call fcn.0046018c
push 0x50205c
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x50206c
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, dword [0x515da0]
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x38c]
mov edx, dword [ebp - 0x10]
call fcn.0046018c
push 0x50205c
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x50206c
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, dword [0x515da0]
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x38c]
mov edx, dword [ebp - 0x10]
call fcn.0046018c
xor eax, eax
push ebp
push 0x501c71
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x502080
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x50208c
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0xc]
call fcn.00409974
test eax, eax
jl 0x501c67
mov eax, dword [ebp - 0xc]
call fcn.00409974
test eax, eax
jl 0x501c67
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x24]
call fcn.00409838
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x5020a0
call fcn.00404c1c
mov ecx, dword [ebp - 0x3c]
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx]
cmp dword [ebp - 0x10], 0
je 0x501c5b
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x44]
mov dl, 0x2c
mov eax, dword [ebp - 0x28]
call fcn.0041e754
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
call fcn.0041e5c4
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x501c5b
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x515da0]
mov eax, dword [eax + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x501c2b
inc ebx
xor esi, esi
lea ecx, [ebp - 0x44]
mov eax, dword [0x515da0]
mov eax, dword [eax + 0x3c]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x48]
pop eax
call fcn.00404d1c
jne 0x501c27
mov dword [ebp - 0x20], 1
jmp 0x501c2b
inc esi
dec ebx
jne 0x501bef
cmp dword [ebp - 0x20], 0
jne 0x501c4f
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x515da0]
mov eax, dword [eax + 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x30]
jne 0x501bd3
inc dword [ebp - 0x24]
dec dword [ebp - 0x2c]
jne 0x501b60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x501c7b
push 0x5020b4
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x5020c4
mov edx, 0x501da4
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x10]
call fcn.00409974
mov edx, dword [0x515da0]
mov dword [edx + 0x74], eax
mov eax, dword [0x51716c]
push eax
mov eax, dword [0x515b8c]
mov eax, dword [eax]
call fcn.0046697c
push eax
call sub.user32.dll_UnregisterHotKey
movzx eax, word [ebp - 0x16]
push eax
push 1
mov eax, dword [0x51716c]
push eax
mov eax, dword [0x515b8c]
mov eax, dword [eax]
call fcn.0046697c
push eax
call sub.user32.dll_RegisterHotKey
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x501cf4
lea eax, [ebp - 0x14]
mov edx, 0x5020d4
call fcn.004049a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x501d2e
mov eax, dword [ebp - 4]
call fcn.00403afc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501d65
lea eax, [ebp - 0x4c]
mov edx, 7
call fcn.00404934
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404934
ret