Function at 0x10066180
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, 0x800f
push edi
mov byte [ebp - 0x54], 0xe8
mov dword [ebp - 0x53], eax
mov byte [ebp - 0x40], 0xe9
mov dword [ebp - 0x3f], eax
mov word [ebp - 0x4c], cx
mov dword [ebp - 0x4a], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x38], eax
mov edi, edi
mov edi, dword [ebx]
add edi, dword [ebp - 0x2c]
mov esi, dword [ebx + 8]
add esi, dword [ebp - 0x44]
lea edx, [ebp - 0x20]
push edx
push edi
call fcn.10066440
add esp, 8
test dword [ebp - 8], 0x1000
mov dword [ebp - 0x34], eax
jne 0x10066429
cmp dword [ebp - 0x2c], 5
mov dword [ebp - 0x30], edi
jb 0x1006620f
mov eax, edi
sub eax, esi
sub eax, 5
mov dword [ebp - 0x3f], eax
lea ecx, [ebp - 0x40]
mov eax, 5
mov dword [ebp - 0x38], 1
jmp 0x10066335
mov cl, byte [ebp - 0x1a]
cmp cl, 0xe8
jne 0x10066231
mov edx, dword [ebp - 0x10]
sub edx, esi
lea eax, [ebp - 0x54]
add edx, edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x53], edx
mov eax, 5
jmp 0x10066338
mov dl, cl
and dl, 0xfd
cmp dl, 0xe9
jne 0x10066290
movzx edx, byte [ebp - 0x20]
add edx, edi
cmp cl, 0xeb
jne 0x1006624e
movsx ecx, byte [ebp - 0x10]
add edx, ecx
jmp 0x10066251
add edx, dword [ebp - 0x10]
mov ecx, dword [ebx]
cmp ecx, edx
ja 0x1006626f
add ecx, 5
cmp edx, ecx
jae 0x1006626f
cmp dword [ebp - 0x24], edx
jae 0x10066338
mov dword [ebp - 0x24], edx
jmp 0x10066338
sub edx, esi
sub edx, 5
cmp edi, dword [ebp - 0x24]
mov dword [ebp - 0x3f], edx
sbb ecx, ecx
lea edx, [ebp - 0x40]
inc ecx
mov dword [ebp - 0x30], edx
mov eax, 5
mov dword [ebp - 0x38], ecx
jmp 0x10066338
mov dl, cl
and dl, 0xf0
mov byte [ebp - 0x25], dl
cmp dl, 0x70
je 0x100662c5
mov dl, cl
and dl, 0xfc
cmp dl, 0xe0
je 0x100662c5
mov dl, byte [ebp - 0x19]
and dl, 0xf0
cmp dl, 0x80
je 0x100662c5
and cl, 0xfe
cmp cl, 0xc2
jne 0x10066338
cmp edi, dword [ebp - 0x24]
sbb ecx, ecx
inc ecx
mov dword [ebp - 0x38], ecx
jmp 0x10066338
movzx edx, byte [ebp - 0x20]
add edx, edi
cmp byte [ebp - 0x25], 0x70
je 0x100662de
mov al, cl
and al, 0xfc
cmp al, 0xe0
je 0x100662de
add edx, dword [ebp - 0x10]
jmp 0x100662e4
movsx eax, byte [ebp - 0x10]
add edx, eax
mov eax, dword [ebx]
cmp eax, edx
ja 0x100662fe
add eax, 5
cmp edx, eax
jae 0x100662fe
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x24], edx
jae 0x10066338
mov dword [ebp - 0x24], edx
jmp 0x10066338
mov al, cl
and al, 0xfc
cmp al, 0xe0
je 0x10066429
movzx eax, cl
cmp cl, 0xf
jne 0x10066316
movzx eax, byte [ebp - 0x19]
and eax, 0xf
shl eax, 8
or eax, 0x800f
sub edx, esi
sub edx, 6
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x4a], edx
lea ecx, [ebp - 0x4c]
mov eax, 6
mov dword [ebp - 0x30], ecx
cmp edi, dword [ebp - 0x24]
jae 0x10066349
movzx edx, byte [ebp - 0x20]
cmp eax, edx
jne 0x10066429
mov ecx, dword [ebp - 0x44]
lea edx, [eax + ecx]
mov dword [ebp - 0x34], edx
cmp edx, dword [ebx + 0xc]
ja 0x10066429
cmp dword [ebx + 0x14], 8
jae 0x10066429
mov esi, dword [ebx + 0x14]
mov edx, dword [ebp - 0x2c]
mov byte [esi + ebx + 0x18], dl
mov esi, dword [ebx + 0x14]
mov byte [esi + ebx + 0x20], cl
mov edi, dword [ebx + 8]
inc dword [ebx + 0x14]
mov esi, dword [ebp - 0x30]
add edi, ecx
mov ecx, eax
mov eax, dword [ebp - 0x34]
rep movsb byte es:[edi], byte [esi]
movzx ecx, byte [ebp - 0x20]
add edx, ecx
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x2c], edx
je 0x100661c0
mov eax, edx
cmp eax, 5
jae 0x10066413
mov edi, dword [ebx]
mov edx, 5
lea esi, [edi + eax]
sub edx, eax
call fcn.10066150
test eax, eax
jne 0x10066413
mov eax, dword [ebp - 0x2c]
cmp eax, 2
jae 0x100663d2
mov edx, 2
sub edx, eax
call fcn.10066150
test eax, eax
je 0x10066429
add edi, 0xfffffffb
push edi
call fcn.10066110
add esp, 4
test eax, eax
je 0x10066429
mov eax, dword [ebx]
mov cl, byte [eax - 5]
test cl, cl
je 0x100663f5
cmp cl, 0x90
je 0x100663f5
cmp cl, 0xcc
jne 0x10066429
mov esi, 1
lea ebx, [ebx]
cmp byte [esi + eax - 5], cl
jne 0x10066429
inc esi
cmp esi, 5
jb 0x10066400
mov dword [ebx + 0x10], 1
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10066b1b
mov esp, ebp
pop ebp
ret