Function at 0x1000faa0
Capabilities:
Check for hardware breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e0f5
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x1005801c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x304], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2fc], ebx
mov eax, dword [ebx]
cmp dword [eax], 0xc0000005
jne 0x1000faf8
mov eax, dword [eax + 0xc]
cmp eax, dword [ecx + 0x58]
jb 0x1000faf8
cmp eax, dword [ecx + 0x5c]
jbe 0x1000feec
lea eax, [ecx + 4]
push eax
mov dword [ebp - 0x308], eax
call fcn.1001d562
add esp, 4
test eax, eax
jne 0x100102ad
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, dword [ebx]
mov dword [ebp - 0x30c], eax
mov edi, dword [esi]
cmp edi, 0x80000004
jne 0x1000fe3d
mov ebx, dword [ebp - 0x304]
mov dword [ebp - 0x300], eax
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebx + 0x40]
call fcn.10007860
mov eax, dword [ebp - 0x310]
cmp byte [eax + 0xd], 0
jne 0x1000fe29
mov ecx, dword [ebp - 0x30c]
cmp ecx, dword [eax + 0x10]
jb 0x1000fe29
cmp eax, dword [ebx + 0x40]
je 0x1000fe3d
mov ebx, dword [eax + 0x14]
lea eax, [ebp - 0x300]
mov esi, dword [ebp - 0x304]
push eax
lea eax, [ebp - 0x318]
mov dword [ebp - 0x300], ebx
push eax
lea edi, [esi + 0x48]
mov ecx, edi
call fcn.10007860
mov eax, dword [ebp - 0x310]
cmp byte [eax + 0xd], 0
jne 0x1000fdd9
cmp ebx, dword [eax + 0x10]
jb 0x1000fdd9
mov byte [ebp - 0x2f1], 1
cmp eax, dword [edi]
je 0x1000fde0
lea eax, [esi + 4]
push eax
call fcn.1001d573
mov esi, dword [esi + 0x50]
add esp, 4
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x1000fc45
nop
mov edx, dword [ebp - 0x2fc]
mov ecx, dword [esi + 0x10]
push 1
push dword [edx + 4]
mov eax, dword [ecx]
push dword [ebp - 0x30c]
push ebx
mov eax, dword [eax]
call eax
mov byte [ebp - 0x2f1], al
test al, al
jne 0x1000fc45
mov ecx, dword [esi + 8]
cmp byte [ecx + 0xd], al
je 0x1000fc29
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], al
jne 0x1000fc25
cmp esi, dword [ecx + 8]
jne 0x1000fc25
mov esi, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x1000fc15
mov esi, ecx
jmp 0x1000fc3f
mov esi, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1000fc3f
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1000fc33
cmp byte [esi + 0xd], 0
je 0x1000fbe0
push dword [ebp - 0x308]
call fcn.1001d562
add esp, 4
test eax, eax
jne 0x100102b3
lea eax, [ebp - 0x300]
mov ecx, edi
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.10007860
mov edi, dword [ebp - 0x310]
cmp byte [edi + 0xd], 0
jne 0x1000fde0
cmp ebx, dword [edi + 0x10]
jb 0x1000fde0
mov esi, dword [ebp - 0x304]
cmp edi, dword [esi + 0x48]
je 0x1000fde0
mov cl, byte [edi + 0x1d]
test cl, cl
je 0x1000fd5d
cmp cl, 1
je 0x1000fd5d
cmp cl, 2
je 0x1000fd5d
cmp cl, 3
jne 0x1000fd45
mov ebx, dword [sym.imp.kernel32.dll_VirtualProtect]
lea eax, [ebp - 0x18]
push eax
push 4
push 1
push dword [edi + 0x14]
call ebx
test eax, eax
jne 0x1000fd11
mov esi, dword [esi + 0x34]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x38
push str.VirtualProtect_failed_while_setting_software_breakpoint.
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0xf
call fcn.100029b0
mov dword [ebp - 4], 0
push 3
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.10001840
add esp, 0x20
mov ecx, dword [edi + 0x14]
mov al, byte [ecx]
mov byte [edi + 0x1c], al
lea eax, [ebp - 0x1c]
push eax
mov byte [ecx], 0xf4
push dword [ebp - 0x18]
push 1
push dword [edi + 0x14]
call ebx
push 1
push dword [edi + 0x14]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_FlushInstructionCache]
mov byte [edi + 0x1d], 3
jmp 0x1000fde0
cmp cl, 4
jne 0x1000fde0
lea ecx, [edi + 0x14]
mov dl, 1
call fcn.10010940
jmp 0x1000fde0
mov eax, dword [ebp - 0x2fc]
mov esi, dword [edi + 0x14]
mov edx, dword [eax + 4]
cmp cl, 1
jne 0x1000fd75
mov eax, 1
jmp 0x1000fd82
xor eax, eax
mov edi, 3
cmp cl, 2
cmove eax, edi
mov ecx, dword [edx + 0x18]
test cl, 1
jne 0x1000fd9a
or ecx, 1
shl eax, 0x10
or eax, ecx
mov dword [edx + 4], esi
mov dword [edx + 0x18], eax
jmp 0x1000fde0
test cl, 4
jne 0x1000fdaf
or ecx, 4
shl eax, 0x14
or eax, ecx
mov dword [edx + 8], esi
mov dword [edx + 0x18], eax
jmp 0x1000fde0
test cl, 0x10
jne 0x1000fdc4
or ecx, 0x10
shl eax, 0x18
or eax, ecx
mov dword [edx + 0xc], esi
mov dword [edx + 0x18], eax
jmp 0x1000fde0
test cl, 0x40
jne 0x1000fde0
or ecx, 0x40
shl eax, 0x1c
or eax, ecx
mov dword [edx + 0x10], esi
mov dword [edx + 0x18], eax
jmp 0x1000fde0
mov byte [ebp - 0x2f1], 1
mov eax, dword [ebp - 0x2fc]
mov ecx, dword [ebp - 0x304]
mov eax, dword [eax + 4]
lea ecx, [ecx + 0x40]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.10011910
push dword [ebp - 0x308]
call fcn.1001d573
movzx eax, byte [ebp - 0x2f1]
add esp, 4
neg eax
sbb eax, eax
jmp 0x1001028f
mov ebx, dword [esi + 0xc]
mov dword [ebp - 0x2f8], ebx
mov dword [ebp - 0x300], ebx
jmp 0x1000fefb
mov eax, dword [esi + 0xc]
mov ebx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2f8], ebx
mov dword [ebp - 0x300], ebx
cmp edi, 0xc0000005
jne 0x1000fef3
mov esi, dword [esi + 0x18]
test esi, esi
jns 0x1000fede
mov eax, dword [ebp - 0x304]
neg esi
mov eax, dword [eax + 0x48]
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
jne 0x1000fed5
cmp byte [eax + 0x1d], 4
jne 0x1000fe82
cmp dword [eax + 0x18], esi
je 0x1000fec6
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x1000fea8
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x1000fea4
cmp eax, dword [ecx + 8]
jne 0x1000fea4
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x1000fe94
mov eax, ecx
jmp 0x1000febe
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x1000febe
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x1000feb2
cmp byte [eax + 0xd], 0
je 0x1000fe77
jmp 0x1000fed5
mov ebx, dword [eax + 0x14]
mov dword [ebp - 0x2f8], ebx
mov dword [ebp - 0x300], ebx
cmp ebx, dword [ebp - 0x18]
jne 0x1000ff5f
push dword [ebp - 0x308]
call fcn.1001d573
add esp, 4
xor eax, eax
jmp 0x1001028f
cmp edi, 0xc0000096
je 0x1000ff5f
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x14]
test cl, 1
je 0x1000ff1d
mov ebx, dword [eax + 4]
mov dword [ebp - 0x2f8], ebx
mov dword [ebp - 0x300], ebx
jmp 0x1000ff65
test cl, 2
je 0x1000ff33
mov ebx, dword [eax + 8]
mov dword [ebp - 0x2f8], ebx
mov dword [ebp - 0x300], ebx
jmp 0x1000ff65
test cl, 4
je 0x1000ff49
mov ebx, dword [eax + 0xc]
mov dword [ebp - 0x2f8], ebx
mov dword [ebp - 0x300], ebx
jmp 0x1000ff65
test cl, 8
je 0x1000ff5f
mov ebx, dword [eax + 0x10]
mov dword [ebp - 0x2f8], ebx
mov dword [ebp - 0x300], ebx
jmp 0x1000ff65
mov ebx, dword [ebp - 0x2f8]
mov eax, dword [ebp - 0x2fc]
mov esi, dword [ebp - 0x304]
mov eax, dword [eax + 4]
lea ecx, [esi + 0x48]
mov dword [eax + 0x14], 0
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.10007860
mov edi, dword [ebp - 0x310]
cmp byte [edi + 0xd], 0
jne 0x1001026d
cmp ebx, dword [edi + 0x10]
jb 0x1001026d
cmp edi, dword [esi + 0x48]
je 0x1001026d
mov al, byte [edi + 0x1d]
mov byte [ebp - 0x14], al
test al, al
je 0x100100ec
cmp al, 1
je 0x100100ec
cmp al, 2
je 0x100100ec
cmp al, 3
jne 0x10010067
mov ebx, dword [sym.imp.kernel32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 4
push 1
push dword [edi + 0x14]
call ebx
test eax, eax
jne 0x10010036
sub esp, 0x18
mov eax, esi
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov esi, dword [eax + 0x34]
push 0x38
push str.VirtualProtect_failed_while_setting_software_breakpoint.
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.100029b0
mov dword [ebp - 4], 1
push 3
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.10001840
add esp, 0x20
mov ecx, dword [edi + 0x14]
mov al, byte [edi + 0x1c]
mov byte [ecx], al
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
push 1
push dword [edi + 0x14]
call ebx
push 1
push dword [edi + 0x14]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_FlushInstructionCache]
mov byte [edi + 0x1d], 3
jmp 0x1001014a
cmp al, 4
jne 0x10010150
mov eax, dword [ebp - 0x2fc]
lea ecx, [edi + 0x14]
mov esi, dword [edi + 0x18]
xor dl, dl
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
call fcn.10010940
mov edi, dword [ebp - 0x2fc]
mov eax, dword [edi + 4]
cmp dword [eax + 0x9c], ebx
jne 0x1001009e
mov dword [eax + 0x9c], esi
cmp dword [eax + 0xa0], ebx
jne 0x100100ac
mov dword [eax + 0xa0], esi
cmp dword [eax + 0xa4], ebx
jne 0x100100ba
mov dword [eax + 0xa4], esi
cmp dword [eax + 0xa8], ebx
jne 0x100100c8
mov dword [eax + 0xa8], esi
cmp dword [eax + 0xac], ebx
jne 0x100100d6
mov dword [eax + 0xac], esi
cmp dword [eax + 0xb0], ebx
mov ebx, dword [ebp - 0x2f8]
jne 0x10010156
mov dword [eax + 0xb0], esi
jmp 0x10010156
mov eax, dword [ebp - 0x2fc]
mov esi, dword [ebp - 0x14]
mov edx, dword [edi + 0x14]
push 0
mov ecx, dword [eax + 4]
push esi
call fcn.10010550
mov ebx, dword [edi + 0x14]
add esp, 8
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov edi, eax
mov dword [ebp - 0x2f0], 0x10010
lea eax, [ebp - 0x2f0]
push eax
push edi
call dword [sym.imp.kernel32.dll_GetThreadContext]
test eax, eax
je 0x1001014a
push 0
push esi
mov edx, ebx
lea ecx, [ebp - 0x2f0]
call fcn.10010550
add esp, 8
mov eax, ecx
push eax
push edi
call dword [sym.imp.kernel32.dll_SetThreadContext]
mov ebx, dword [ebp - 0x2f8]
mov edi, dword [ebp - 0x2fc]
push dword [ebp - 0x308]
mov byte [ebp - 0x2f1], 1
call fcn.1001d573
mov eax, dword [ebp - 0x304]
add esp, 4
mov esi, dword [eax + 0x50]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x100101e2
nop dword [eax]
mov ecx, dword [esi + 0x10]
push 0
push dword [edi + 4]
mov eax, dword [ecx]
push dword [ebp - 0x30c]
push ebx
mov eax, dword [eax]
call eax
mov byte [ebp - 0x2f1], al
test al, al
jne 0x100101e2
mov ecx, dword [esi + 8]
cmp byte [ecx + 0xd], al
je 0x100101c4
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], al
jne 0x100101c0
nop
cmp esi, dword [ecx + 8]
jne 0x100101c0
mov esi, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x100101b0
mov esi, ecx
jmp 0x100101dc
mov esi, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x100101dc
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x100101d0
cmp byte [esi + 0xd], 0
je 0x10010180
push dword [ebp - 0x308]
call fcn.1001d562
add esp, 4
test eax, eax
jne 0x100102b9
mov edi, dword [ebp - 0x304]
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x318]
push eax
lea ecx, [edi + 0x48]
call fcn.10007860
mov esi, dword [ebp - 0x310]
cmp byte [esi + 0xd], 0
jne 0x1001022c
cmp ebx, dword [esi + 0x10]
jb 0x1001022c
mov ecx, edi
mov eax, dword [ecx + 0x48]
jmp 0x10010233
mov esi, dword [edi + 0x48]
mov ecx, edi
mov eax, esi
cmp esi, eax
je 0x1000fe0b
mov eax, dword [ebp - 0x30c]
add ecx, 0x40
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10011830
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
or dword [eax + 0xc0], 0x100
jmp 0x1000fe0b
push dword [ebp - 0x308]
call fcn.1001d573
mov eax, dword [ebp - 0x2fc]
add esp, 4
mov ecx, dword [eax]
xor eax, eax
cmp dword [ecx], 0x80000004
setne al
dec eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001fb3b
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.1001d20d
push eax
call fcn.1001d20d
push eax
call fcn.1001d20d
int3