Function at 0x10100670
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
xor al, al
xor cl, cl
mov byte [esp + 0x28], 0xe8
push edi
mov dword [esp + 0x2d], 0
mov byte [esp + 0x24], 0xe9
mov dword [esp + 0x25], 0
mov word [esp + 0x34], 0x800f
mov dword [esp + 0x36], 0
mov byte [esp + 0x12], al
mov byte [esp + 0x13], cl
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov edi, edi
mov ebp, dword [esi + 8]
movzx edi, al
add edi, dword [esi]
movzx eax, cl
mov dword [esp + 0x20], eax
add ebp, eax
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.100ff630
add esp, 8
mov ebx, eax
test dword [esp + 0x54], 0x1000
mov dword [esp + 0x5c], ebx
jne 0x101009c8
mov dl, byte [esp + 0x12]
mov ecx, edi
mov dword [esp + 0x1c], ecx
cmp dl, 5
jb 0x1010073c
mov dh, byte [esp + 0x3c]
lea ecx, [esp + 0x24]
mov eax, edi
mov ebx, 5
sub eax, ebp
mov ebp, 1
sub eax, 5
mov dword [esp + 0x18], ebp
mov dword [esp + 0x25], eax
mov eax, dword [esp + 0x14]
jmp 0x101007c0
mov dl, byte [esp + 0x42]
cmp dl, 0xe8
jne 0x1010076a
mov dh, byte [esp + 0x3c]
lea ecx, [esp + 0x2c]
movzx eax, dh
mov ebx, 5
sub eax, ebp
add eax, 0xfffffffb
add eax, dword [esp + 0x4c]
add eax, edi
mov dword [esp + 0x2d], eax
mov eax, dword [esp + 0x14]
jmp 0x101007b8
mov al, dl
and al, 0xfd
cmp al, 0xe9
jne 0x101008ea
mov dh, byte [esp + 0x3c]
movzx ecx, dh
add ecx, edi
cmp dl, 0xeb
jne 0x1010078d
movsx eax, byte [esp + 0x4c]
add ecx, eax
jmp 0x10100791
add ecx, dword [esp + 0x4c]
mov eax, dword [esi]
cmp eax, ecx
ja 0x101008c6
add eax, 5
cmp ecx, eax
jae 0x101008c6
mov eax, dword [esp + 0x14]
cmp eax, ecx
jae 0x101007b4
mov eax, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov dl, byte [esp + 0x12]
cmp edi, eax
jae 0x101007cf
movzx eax, dh
cmp ebx, eax
jne 0x101009c8
mov edi, dword [esp + 0x20]
lea eax, [edi + ebx]
cmp eax, 0x20
ja 0x101009c8
mov eax, dword [esi + 0x10]
cmp eax, 8
jae 0x101009c8
mov byte [eax + esi + 0x14], dl
mov eax, dword [esi + 0x10]
mov dl, byte [esp + 0x13]
push ebx
push ecx
mov byte [esi + eax + 0x1c], dl
mov eax, dword [esi + 8]
inc dword [esi + 0x10]
add eax, edi
push eax
call fcn.10163cd0
mov cl, byte [esp + 0x1f]
add esp, 0xc
mov al, byte [esp + 0x12]
add cl, bl
add al, byte [esp + 0x3c]
mov byte [esp + 0x13], cl
mov byte [esp + 0x12], al
test ebp, ebp
je 0x101006d0
cmp al, 5
jae 0x101008b9
mov ebx, dword [esi]
movzx edi, al
mov eax, 5
sub eax, edi
push eax
lea ebp, [ebx + edi]
push ebp
call fcn.101009e0
add esp, 8
test eax, eax
jne 0x101008b9
cmp byte [esp + 0x12], 2
jae 0x10100870
mov eax, 2
sub eax, edi
push eax
push ebp
call fcn.101009e0
add esp, 8
test eax, eax
je 0x101009c8
lea eax, [ebx - 5]
push eax
call fcn.100ff5b0
add esp, 4
test eax, eax
je 0x101009c8
mov eax, dword [esi]
mov dl, byte [eax - 5]
test dl, dl
je 0x1010089b
cmp dl, 0x90
je 0x1010089b
cmp dl, 0xcc
jne 0x101009c8
mov ecx, 1
add eax, 0xfffffffc
cmp byte [eax], dl
jne 0x101009c8
inc ecx
inc eax
cmp ecx, 5
jb 0x101008a3
mov dword [esi + 0xc], 1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret
mov eax, dword [esp + 0x14]
sub ecx, ebp
sub ecx, 5
mov ebx, 5
cmp edi, eax
mov dword [esp + 0x25], ecx
lea ecx, [esp + 0x24]
sbb ebp, ebp
inc ebp
mov dword [esp + 0x18], ebp
jmp 0x101007bc
mov dh, byte [esp + 0x43]
mov bl, dl
and bl, 0xf0
cmp bl, 0x70
je 0x10100932
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x10100932
mov al, dh
and al, 0xf0
cmp al, 0x80
je 0x10100932
mov ebx, dword [esp + 0x5c]
and dl, 0xfe
mov eax, dword [esp + 0x14]
cmp dl, 0xc2
mov dh, byte [esp + 0x3c]
mov dl, byte [esp + 0x12]
jne 0x101009bf
cmp edi, eax
sbb ebp, ebp
inc ebp
mov dword [esp + 0x18], ebp
jmp 0x101007c0
movzx ecx, byte [esp + 0x3c]
add ecx, edi
cmp bl, 0x70
je 0x1010094c
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x1010094c
add ecx, dword [esp + 0x4c]
jmp 0x10100953
movsx eax, byte [esp + 0x4c]
add ecx, eax
mov eax, dword [esi]
cmp eax, ecx
ja 0x10100987
add eax, 5
cmp ecx, eax
jae 0x10100987
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x18]
mov dl, byte [esp + 0x12]
mov dh, byte [esp + 0x3c]
cmp dword [esp + 0x14], ecx
jae 0x1010097a
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
jmp 0x101007c0
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x101009c8
cmp dl, 0xf
jne 0x10100996
mov dl, dh
mov eax, dword [esp + 0x14]
and dl, 0xf
mov dh, byte [esp + 0x3c]
sub ecx, ebp
or dl, 0x80
mov ebx, 6
sub ecx, 6
mov byte [esp + 0x35], dl
mov dword [esp + 0x36], ecx
lea ecx, [esp + 0x34]
jmp 0x101007b8
mov ebp, dword [esp + 0x18]
jmp 0x101007c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret