Function at 0x10097524
Capabilities:
Check for software breakpoints
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x10016004]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
xor edi, edi
call dword [0x1000f010]
cmp dword [0x10017378], eax
je 0x1009756d
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.10098779
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x10017374]
test eax, eax
jne 0x100979d2
mov ecx, dword [0x10017370]
test ecx, ecx
jne 0x10097596
mov dword [0x10017374], 6
lea eax, [ecx + 6]
jmp 0x100979c8
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
call fcn.10096f34
mov esi, eax
mov ecx, 0x10002a30
mov dword [esp + 0x18], esi
call fcn.10096f34
mov dword [esp + 0x2c], eax
cmp eax, esi
jne 0x100975ce
cmp dword [0x10017330], edi
jne 0x100979c6
jmp 0x10097987
push 0x18
call fcn.10098787
mov dword [esp + 0x28], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.10096b04
mov ecx, dword [0x1001737c]
add esp, 8
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, dword [0x10017384]
test ecx, ecx
jne 0x1009760f
test eax, eax
je 0x10097622
mov ecx, eax
mov dword [0x1001737c], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x10097622
cmp edx, ebx
jb 0x10097622
cmp edx, edi
jbe 0x100976ac
mov ecx, eax
mov dword [0x1001737c], ecx
test eax, eax
je 0x1009764e
test ecx, ecx
je 0x10097641
mov eax, dword [ecx + 8]
test eax, eax
je 0x10097641
cmp eax, ebx
jb 0x10097641
cmp eax, edi
jbe 0x100976ac
mov ecx, dword [ecx + 4]
mov dword [0x1001737c], ecx
test ecx, ecx
jne 0x10097632
movzx eax, si
mov ecx, esi
push edi
sub ecx, eax
mov edx, ebx
call fcn.10096d94
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10097982
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x10017384]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x1001737c], ecx
mov dword [0x10017384], ecx
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x10097698
mov esi, dword [esp + 0x18]
mov dword [ecx + 8], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x1c], edx
cmp edx, ebx
jb 0x10097982
cmp edx, edi
ja 0x10097982
mov eax, dword [edx + 0x40]
xorps xmm0, xmm0
mov dword [ecx + 8], eax
mov ebx, edx
mov dword [edx], 0xcccccccc
lea eax, [edx + 0x38]
mov dword [edx + 4], 0xcccccccc
mov dword [edx + 8], 0xcccccccc
mov dword [edx + 0xc], 0xcccccccc
mov dword [edx + 0x10], 0xcccccccc
mov dword [edx + 0x14], 0xcccccccc
mov dword [edx + 0x18], 0xcccccccc
mov dword [edx + 0x1c], 0xcccccccc
mov dword [edx + 0x20], 0xcccccccc
mov dword [edx + 0x24], 0xcccccccc
mov dword [edx + 0x28], 0xcccccccc
mov dword [edx + 0x2c], 0xcccccccc
mov dword [edx + 0x30], 0xcccccccc
mov dword [edx + 0x34], 0xcccccccc
mov dword [edx + 0x40], 0xcccccccc
mov dword [edx + 0x44], 0xcccccccc
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
movq qword [eax], xmm0
mov dword [esp + 0x10], 0
push 0x70
lea eax, [esp + 0x3c]
mov edi, esi
push 0
push eax
call fcn.10099da4
add esp, 0xc
mov dword [esp + 0x64], 0
lea eax, [esp + 0x64]
mov dword [esp + 0x30], 0
test ebx, ebx
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x68]
lea eax, [esp + 0x30]
cmovne ecx, ebx
mov dword [esp + 0x5c], eax
test esi, esi
jne 0x1009779e
push 0xd
call dword [0x1000f034]
jmp 0x100977b6
movzx eax, byte [esi]
push esi
push ecx
lea ecx, [esp + 0x40]
lea eax, [eax*8 + 0x10018820]
push eax
mov eax, dword [eax + 4]
call eax
mov esi, eax
mov edx, dword [esp + 0x1c]
mov eax, esi
sub eax, edi
add eax, dword [esp + 0x30]
add ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, esi
mov ah, byte [esp + 0x14]
sub ebx, dword [esp + 0x18]
sub ah, dl
mov edx, dword [esp + 0x20]
mov cl, bl
inc dword [esp + 0x20]
and cl, 7
mov al, ah
mov byte [esp + 0xf], ah
shl al, 3
or cl, al
mov byte [edx], cl
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 8
jae 0x10097860
mov al, byte [edi]
cmp al, 0xeb
je 0x10097860
cmp al, 0xe9
je 0x10097860
cmp al, 0xe0
je 0x10097860
cmp al, 0xc2
je 0x10097860
cmp al, 0xc3
je 0x10097860
cmp al, 0xcc
je 0x10097860
cmp al, 0xf3
jne 0x10097856
cmp byte [edi + 1], 0xc3
je 0x10097860
cmp al, 0x26
je 0x1009783c
cmp al, 0x2e
je 0x1009783c
cmp al, 0x36
je 0x1009783c
cmp al, 0x3e
je 0x1009783c
cmp al, 0x64
je 0x1009783c
cmp al, 0x65
jne 0x10097848
cmp byte [edi + 1], 0xff
jne 0x10097848
cmp byte [edi + 2], 0x25
je 0x10097860
cmp ebx, 5
jae 0x10097892
mov ebx, dword [esp + 0x14]
jmp 0x10097754
cmp al, 0xff
jne 0x10097824
cmp byte [edi + 1], 0x25
jmp 0x10097846
cmp ebx, 5
jae 0x10097889
mov ecx, esi
call fcn.10096b94
test eax, eax
je 0x10097972
add esi, eax
mov ebx, esi
sub ebx, dword [esp + 0x18]
cmp ebx, 5
jb 0x10097865
mov ah, byte [esp + 0xf]
mov ecx, dword [esp + 0x10]
cmp ecx, 8
ja 0x10097972
lea edi, [edx + 0x1e]
cmp dword [esp + 0x14], edi
jbe 0x1009789c
int3
mov esi, dword [esp + 0x18]
push ebx
mov byte [edi], ah
lea eax, [edx + 0x20]
push esi
push eax
mov byte [edx + 0x36], bl
call fcn.1009b274
add esp, 0xc
cmp ebx, 0x19
jbe 0x100978c2
mov edi, 6
jmp 0x10097987
mov eax, dword [esp + 0x1c]
lea edx, [ebx + esi]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x44], ecx
movzx ecx, byte [edi]
add ecx, eax
mov dword [eax + 0x40], edx
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
mov eax, edi
mov dword [ecx + 1], edx
add ecx, 5
sub eax, ecx
xor edx, edx
cmp ecx, edi
cmova eax, edx
test eax, eax
je 0x10097904
push eax
push 0xcc
push ecx
call fcn.10099da4
add esp, 0xc
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
push 0x40
push ebx
push esi
call dword [section..rdata]
test eax, eax
jne 0x10097929
call dword [0x1000f01c]
mov edi, eax
jmp 0x10097987
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0x10017370
mov dword [ecx + 0xc], esi
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x14], eax
mov eax, dword [0x1001738c]
mov dword [ecx], eax
xor eax, eax
mov dword [0x1001738c], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.10098779
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x10017330], 0
mov edi, 9
jne 0x1009798d
jmp 0x10097987
mov edi, 8
mov dword [0x10017374], edi
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x100979b3
push 0x48
push 0
mov esi, ebx
push ebx
and esi, 0xffff0000
call fcn.10099da4
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov dword [esi + 8], ebx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100979c6
push 0x18
push eax
call fcn.100987b7
add esp, 8
mov eax, edi
mov dword [0x10017380], 0x10017370
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10098779
mov esp, ebp
pop ebp
ret 0xc