Function at 0x1000fad0
Capabilities:
Check for hardware breakpoints

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f958
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x310
mov eax, dword [0x10055020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x300], ecx
mov edi, dword [ebx + 8]
mov dword [ebp - 0x30c], edi
mov eax, dword [edi]
cmp dword [eax], 0xc0000005
jne 0x1000fb3b
mov eax, dword [eax + 0xc]
cmp eax, dword [ecx + 0x58]
jb 0x1000fb3b
cmp eax, dword [ecx + 0x5c]
jbe 0x1000ff44
lea esi, [ecx + 4]
push esi
call fcn.1001da09
add esp, 4
test eax, eax
jne 0x100103b0
cmp dword [esi + 0x2c], 0x7fffffff
je 0x100103b7
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, dword [edi]
mov dword [ebp - 0x314], eax
mov edi, dword [esi]
cmp edi, 0x80000004
jne 0x1000fed0
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x300]
push ecx
lea ecx, [ebp - 0x320]
push ecx
lea ecx, [eax + 0x40]
call fcn.10007600
mov eax, dword [ebp - 0x318]
cmp byte [eax + 0xd], 0
jne 0x1000febc
mov ecx, dword [ebp - 0x314]
cmp ecx, dword [eax + 0x10]
jb 0x1000febc
mov ecx, dword [ebp - 0x300]
cmp eax, dword [ecx + 0x40]
je 0x1000fed6
mov edi, dword [eax + 0x14]
lea esi, [ecx + 0x48]
lea eax, [ebp - 0x304]
mov dword [ebp - 0x18], edi
push eax
lea eax, [ebp - 0x320]
mov dword [ebp - 0x304], edi
push eax
mov ecx, esi
call fcn.10007600
mov eax, dword [ebp - 0x318]
cmp byte [eax + 0xd], 0
jne 0x1000fe53
cmp edi, dword [eax + 0x10]
jb 0x1000fe53
mov byte [ebp - 0x2f9], 1
cmp eax, dword [esi]
je 0x1000fe5a
mov esi, dword [ebp - 0x300]
lea eax, [esi + 4]
push eax
call fcn.1001da1a
mov esi, dword [esi + 0x50]
add esp, 4
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x1000fc95
nop dword [eax + eax]
mov edx, dword [ebp - 0x30c]
mov ecx, dword [esi + 0x10]
push 1
push dword [edx + 4]
mov eax, dword [ecx]
push dword [ebp - 0x314]
push edi
mov eax, dword [eax]
call eax
mov byte [ebp - 0x2f9], al
test al, al
jne 0x1000fc95
mov ecx, dword [esi + 8]
cmp byte [ecx + 0xd], al
je 0x1000fc79
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], al
jne 0x1000fc75
cmp esi, dword [ecx + 8]
jne 0x1000fc75
mov esi, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x1000fc65
mov esi, ecx
jmp 0x1000fc8f
mov esi, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1000fc8f
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1000fc83
cmp byte [esi + 0xd], 0
je 0x1000fc30
mov edi, dword [ebp - 0x300]
lea esi, [edi + 4]
push esi
call fcn.1001da09
add esp, 4
test eax, eax
jne 0x100103b0
cmp dword [esi + 0x2c], 0x7fffffff
je 0x100103b7
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x320]
lea esi, [edi + 0x48]
push eax
mov ecx, esi
call fcn.10007600
mov edi, dword [ebp - 0x318]
cmp byte [edi + 0xd], 0
jne 0x1000fe5a
mov eax, dword [ebp - 0x18]
cmp eax, dword [edi + 0x10]
jb 0x1000fe5a
cmp edi, dword [esi]
je 0x1000fe5a
mov cl, byte [edi + 0x1d]
test cl, cl
je 0x1000fdd7
cmp cl, 1
je 0x1000fdd7
cmp cl, 2
je 0x1000fdd7
cmp cl, 3
jne 0x1000fdbf
lea eax, [ebp - 0x18]
push eax
mov eax, dword [sym.imp.kernel32.dll_VirtualProtect]
push 4
push 1
push dword [edi + 0x14]
mov dword [ebp - 0x304], eax
call eax
test eax, eax
jne 0x1000fd87
mov eax, dword [ebp - 0x300]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x310], esp
xorps xmm0, xmm0
mov esi, dword [eax + 0x34]
push 0x38
movups xmmword [ecx], xmm0
push str.VirtualProtect_failed_while_setting_software_breakpoint.
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002de0
mov dword [ebp - 4], 0
push 3
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.10001810
add esp, 0x20
mov ecx, dword [edi + 0x14]
mov al, byte [ecx]
mov byte [edi + 0x1c], al
lea eax, [ebp - 0x20]
push eax
mov byte [ecx], 0xf4
push dword [ebp - 0x18]
push 1
push dword [edi + 0x14]
call dword [ebp - 0x304]
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 0x1000fe5a
cmp cl, 4
jne 0x1000fe5a
lea ecx, [edi + 0x14]
mov dl, 1
call fcn.10010ac0
jmp 0x1000fe5a
mov eax, dword [ebp - 0x30c]
mov esi, dword [edi + 0x14]
mov edx, dword [eax + 4]
cmp cl, 1
jne 0x1000fdef
mov eax, 1
jmp 0x1000fdfc
xor eax, eax
mov edi, 3
cmp cl, 2
cmove eax, edi
mov ecx, dword [edx + 0x18]
test cl, 1
jne 0x1000fe14
or ecx, 1
shl eax, 0x10
or eax, ecx
mov dword [edx + 4], esi
mov dword [edx + 0x18], eax
jmp 0x1000fe5a
test cl, 4
jne 0x1000fe29
or ecx, 4
shl eax, 0x14
or eax, ecx
mov dword [edx + 8], esi
mov dword [edx + 0x18], eax
jmp 0x1000fe5a
test cl, 0x10
jne 0x1000fe3e
or ecx, 0x10
shl eax, 0x18
or eax, ecx
mov dword [edx + 0xc], esi
mov dword [edx + 0x18], eax
jmp 0x1000fe5a
test cl, 0x40
jne 0x1000fe5a
or ecx, 0x40
shl eax, 0x1c
or eax, ecx
mov dword [edx + 0x10], esi
mov dword [edx + 0x18], eax
jmp 0x1000fe5a
mov byte [ebp - 0x2f9], 1
mov eax, dword [ebp - 0x30c]
mov esi, dword [ebp - 0x300]
mov eax, dword [eax + 4]
lea ecx, [esi + 0x40]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.10011aa0
lea eax, [esi + 4]
push eax
call fcn.1001da1a
movzx eax, byte [ebp - 0x2f9]
add esp, 4
neg eax
sbb eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001fd2c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x308], edi
mov dword [ebp - 0x304], edi
jmp 0x1000ff6c
mov ecx, dword [ebp - 0x300]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x308], eax
mov dword [ebp - 0x304], eax
cmp edi, 0xc0000005
jne 0x1000ff64
mov esi, dword [esi + 0x18]
test esi, esi
jns 0x1000ff38
mov eax, dword [ecx + 0x48]
neg esi
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp byte [eax + 0xd], 0
jne 0x1000ff5c
cmp byte [eax + 0x1d], 4
jne 0x1000ff12
cmp dword [eax + 0x18], esi
je 0x1000ff4b
lea ecx, [ebp - 0x18]
call fcn.10011520
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xd], 0
je 0x1000ff07
mov esi, dword [ebp - 0x308]
mov ecx, dword [ebp - 0x300]
cmp esi, dword [ebp - 0x1c]
jne 0x1000ffd6
lea eax, [ecx + 4]
push eax
call fcn.1001da1a
add esp, 4
xor eax, eax
jmp 0x1000fe9c
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x308], esi
mov dword [ebp - 0x304], esi
jmp 0x1000ff29
mov esi, dword [ebp - 0x308]
jmp 0x1000ff2f
cmp edi, 0xc0000096
je 0x1000ffd0
mov eax, dword [ebp - 0x30c]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x14]
test cl, 1
je 0x1000ff8e
mov esi, dword [eax + 4]
mov dword [ebp - 0x308], esi
mov dword [ebp - 0x304], esi
jmp 0x1000ffd6
test cl, 2
je 0x1000ffa4
mov esi, dword [eax + 8]
mov dword [ebp - 0x308], esi
mov dword [ebp - 0x304], esi
jmp 0x1000ffd6
test cl, 4
je 0x1000ffba
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x308], esi
mov dword [ebp - 0x304], esi
jmp 0x1000ffd6
test cl, 8
je 0x1000ffd0
mov esi, dword [eax + 0x10]
mov dword [ebp - 0x308], esi
mov dword [ebp - 0x304], esi
jmp 0x1000ffd6
mov esi, dword [ebp - 0x308]
mov eax, dword [ebp - 0x30c]
lea ecx, [ebp - 0x304]
push ecx
lea ecx, [ebp - 0x320]
push ecx
mov eax, dword [eax + 4]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x300]
lea ecx, [eax + 0x48]
call fcn.10007600
mov edi, dword [ebp - 0x318]
cmp byte [edi + 0xd], 0
jne 0x10010385
cmp esi, dword [edi + 0x10]
jb 0x10010385
mov eax, dword [ebp - 0x300]
cmp edi, dword [eax + 0x48]
je 0x10010385
mov al, byte [edi + 0x1d]
mov byte [ebp - 0x310], al
test al, al
je 0x10010180
cmp al, 1
je 0x10010180
cmp al, 2
je 0x10010180
cmp al, 3
jne 0x100100ee
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [sym.imp.kernel32.dll_VirtualProtect]
push 4
push 1
push dword [edi + 0x14]
mov dword [ebp - 0x310], eax
call eax
test eax, eax
jne 0x100100b9
mov eax, dword [ebp - 0x300]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x20], esp
xorps xmm0, xmm0
mov esi, dword [eax + 0x34]
push 0x38
movups xmmword [ecx], xmm0
push str.VirtualProtect_failed_while_setting_software_breakpoint.
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002de0
mov dword [ebp - 4], 1
push 3
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.10001810
add esp, 0x20
mov ecx, dword [edi + 0x14]
mov al, byte [edi + 0x1c]
mov byte [ecx], al
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 1
push dword [edi + 0x14]
call dword [ebp - 0x310]
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 0x10010253
cmp al, 4
jne 0x10010253
mov eax, dword [ebp - 0x30c]
lea ecx, [edi + 0x14]
mov esi, dword [edi + 0x18]
xor dl, dl
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x310], eax
call fcn.10010ac0
mov ecx, dword [ebp - 0x30c]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x310]
cmp dword [eax + 0x9c], ecx
jne 0x10010131
mov dword [eax + 0x9c], esi
cmp dword [eax + 0xa0], ecx
jne 0x1001013f
mov dword [eax + 0xa0], esi
cmp dword [eax + 0xa4], ecx
jne 0x1001014d
mov dword [eax + 0xa4], esi
cmp dword [eax + 0xa8], ecx
jne 0x1001015b
mov dword [eax + 0xa8], esi
cmp dword [eax + 0xac], ecx
jne 0x10010169
mov dword [eax + 0xac], esi
cmp dword [eax + 0xb0], ecx
jne 0x10010253
mov dword [eax + 0xb0], esi
jmp 0x10010253
mov eax, dword [ebp - 0x30c]
mov edx, dword [edi + 0x14]
push 0
push dword [ebp - 0x310]
mov ecx, dword [eax + 4]
call fcn.100106b0
mov esi, dword [edi + 0x14]
add esp, 8
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov edi, eax
mov dword [ebp - 0x2f8], 0x10010
lea eax, [ebp - 0x2f8]
push eax
push edi
call dword [sym.imp.kernel32.dll_GetThreadContext]
test eax, eax
je 0x10010253
mov eax, dword [ebp - 0x2e0]
cmp dword [ebp - 0x2f4], esi
jne 0x100101ea
test al, 1
je 0x100101ea
mov dword [ebp - 0x2f4], 0
and eax, 0xfff0fffe
jmp 0x1001023f
cmp dword [ebp - 0x2f0], esi
jne 0x10010207
test al, 4
je 0x10010207
mov dword [ebp - 0x2f0], 0
and eax, 0xff0ffffb
jmp 0x1001023f
cmp dword [ebp - 0x2ec], esi
jne 0x10010224
test al, 0x10
je 0x10010224
mov dword [ebp - 0x2ec], 0
and eax, 0xf0ffffef
jmp 0x1001023f
cmp dword [ebp - 0x2e8], esi
jne 0x10010245
test al, 0x40
je 0x10010245
mov dword [ebp - 0x2e8], 0
and eax, 0xfffffbf
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x2f8]
push eax
push edi
call dword [sym.imp.kernel32.dll_SetThreadContext]
mov esi, dword [ebp - 0x300]
mov byte [ebp - 0x2f9], 1
lea eax, [esi + 4]
push eax
call fcn.1001da1a
mov esi, dword [esi + 0x50]
add esp, 4
mov edi, dword [ebp - 0x308]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x100102e5
nop dword [eax]
mov edx, dword [ebp - 0x30c]
mov ecx, dword [esi + 0x10]
push 0
push dword [edx + 4]
mov eax, dword [ecx]
push dword [ebp - 0x314]
push edi
mov eax, dword [eax]
call eax
mov byte [ebp - 0x2f9], al
test al, al
jne 0x100102e5
mov ecx, dword [esi + 8]
cmp byte [ecx + 0xd], al
je 0x100102c9
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], al
jne 0x100102c5
cmp esi, dword [ecx + 8]
jne 0x100102c5
mov esi, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x100102b5
mov esi, ecx
jmp 0x100102df
mov esi, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x100102df
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x100102d3
cmp byte [esi + 0xd], 0
je 0x10010280
mov esi, dword [ebp - 0x300]
add esi, 4
push esi
call fcn.1001da09
add esp, 4
test eax, eax
jne 0x100103b0
cmp dword [esi + 0x2c], 0x7fffffff
je 0x100103b7
mov ecx, dword [ebp - 0x300]
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x320]
push eax
lea ecx, [ecx + 0x48]
call fcn.10007600
mov esi, dword [ebp - 0x318]
mov ecx, dword [ebp - 0x300]
cmp byte [esi + 0xd], 0
jne 0x1001037d
cmp edi, dword [esi + 0x10]
jb 0x1001037d
cmp esi, dword [ecx + 0x48]
je 0x1001037d
mov eax, dword [ebp - 0x314]
lea ecx, [ecx + 0x40]
mov dword [ebp - 0x310], eax
lea eax, [ebp - 0x310]
push eax
call fcn.100119c0
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x30c]
mov ecx, dword [ebp - 0x300]
mov eax, dword [eax + 4]
or dword [eax + 0xc0], 0x100
lea eax, [ecx + 4]
jmp 0x1000fe88
mov eax, dword [ebp - 0x300]
add eax, 4
push eax
call fcn.1001da1a
mov eax, dword [ebp - 0x30c]
add esp, 4
mov ecx, dword [eax]
xor eax, eax
cmp dword [ecx], 0x80000004
setne al
dec eax
jmp 0x1000fe9c
push 5
call fcn.1001d77e
push 6
mov dword [esi + 0x2c], 0x7ffffffe
call fcn.1001d77e
int3