Function at 0x10067900
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov ebx, ecx
mov byte [ebp - 0x34], 0xe8
xor cl, cl
mov dword [ebp - 0x18], ebx
mov byte [ebp - 2], cl
lea edx, [ebp - 0x58]
xor ecx, ecx
mov dword [ebp - 0x33], 0
mov eax, dword [ebx + 8]
push esi
mov esi, dword [ebx]
push edi
xor edi, edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov ecx, esi
mov byte [ebp - 0x2c], 0xe9
mov dword [ebp - 0x2b], 0
mov word [ebp - 0x3c], 0x800f
mov dword [ebp - 0x3a], 0
mov byte [ebp - 1], 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebp - 0x14], eax
call fcn.100669b0
test dword [ebp - 0x40], 0x1000
mov ecx, eax
mov dword [ebp - 0xc], ecx
jne 0x10067b4c
cmp byte [ebp - 1], 5
mov dword [ebp - 0x10], esi
jb 0x1006799c
mov eax, esi
mov dword [ebp - 8], 1
sub eax, dword [ebp - 0x14]
mov ecx, 5
sub eax, 5
mov dword [ebp - 0x2b], eax
lea eax, [ebp - 0x2c]
jmp 0x10067ac0
mov dl, byte [ebp - 0x52]
cmp dl, 0xe8
jne 0x100679c3
movzx eax, byte [ebp - 0x58]
mov ecx, 5
sub eax, dword [ebp - 0x14]
add eax, 0xfffffffb
add eax, dword [ebp - 0x48]
add eax, esi
mov dword [ebp - 0x33], eax
lea eax, [ebp - 0x34]
jmp 0x10067ac0
mov al, dl
and al, 0xfd
cmp al, 0xe9
jne 0x10067a20
movzx ecx, byte [ebp - 0x58]
add ecx, esi
cmp dl, 0xeb
jne 0x100679de
movsx eax, byte [ebp - 0x48]
add ecx, eax
jmp 0x100679e1
add ecx, dword [ebp - 0x48]
mov eax, dword [ebx]
cmp eax, ecx
ja 0x10067a02
add eax, 5
cmp ecx, eax
jae 0x10067a02
cmp dword [ebp - 0x20], ecx
mov edi, ecx
mov ecx, dword [ebp - 0xc]
cmovae edi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edi
jmp 0x10067ac6
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
sub ecx, 5
cmp esi, edi
mov dword [ebp - 0x2b], ecx
mov ecx, 5
sbb edx, edx
inc edx
mov dword [ebp - 8], edx
jmp 0x10067ac0
mov dh, byte [ebp - 0x51]
mov bl, dl
and bl, 0xf0
cmp bl, 0x70
je 0x10067a52
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x10067a52
mov al, dh
and al, 0xf0
cmp al, 0x80
je 0x10067a52
mov ebx, dword [ebp - 0x18]
and dl, 0xfe
cmp dl, 0xc2
jne 0x10067ac6
cmp esi, edi
sbb edx, edx
inc edx
mov dword [ebp - 8], edx
jmp 0x10067ac6
movzx ecx, byte [ebp - 0x58]
add ecx, esi
cmp bl, 0x70
je 0x10067a6a
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x10067a6a
add ecx, dword [ebp - 0x48]
jmp 0x10067a70
movsx eax, byte [ebp - 0x48]
add ecx, eax
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
cmp eax, ecx
ja 0x10067a91
add eax, 5
cmp ecx, eax
jae 0x10067a91
cmp dword [ebp - 0x20], ecx
mov edi, ecx
mov ecx, dword [ebp - 0xc]
cmovae edi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edi
jmp 0x10067ac6
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x10067b4c
movzx eax, dl
cmp dl, 0xf
jne 0x10067aa8
movzx eax, dh
sub ecx, dword [ebp - 0x14]
and al, 0xf
or al, 0x80
sub ecx, 6
mov byte [ebp - 0x3b], al
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3a], ecx
mov ecx, 6
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
cmp esi, edi
jae 0x10067ad2
movzx eax, byte [ebp - 0x58]
cmp ecx, eax
jne 0x10067b4c
mov eax, dword [ebp - 0x24]
add eax, ecx
cmp eax, 0x20
ja 0x10067b4c
mov eax, dword [ebx + 0x10]
cmp eax, 8
jae 0x10067b4c
mov dl, byte [ebp - 1]
mov esi, dword [ebp - 0x10]
mov byte [eax + ebx + 0x14], dl
mov eax, dword [ebx + 0x10]
mov dl, byte [ebp - 2]
movzx edi, dl
mov byte [eax + ebx + 0x1c], dl
mov eax, dword [ebx + 8]
add edi, eax
add dl, byte [ebp - 0xc]
inc dword [ebx + 0x10]
rep movsb byte es:[edi], byte [esi]
mov cl, byte [ebp - 1]
add cl, byte [ebp - 0x58]
cmp dword [ebp - 8], 0
mov byte [ebp - 2], dl
mov byte [ebp - 1], cl
jne 0x10067b55
mov edi, dword [ebp - 0x1c]
movzx esi, cl
add esi, dword [ebx]
movzx ecx, dl
lea edx, [ebp - 0x58]
add eax, ecx
mov dword [ebp - 0x24], ecx
mov ecx, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], eax
call fcn.100669b0
test dword [ebp - 0x40], 0x1000
mov ecx, eax
mov dword [ebp - 0xc], ecx
je 0x10067974
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 5
jae 0x10067bc3
mov edi, dword [ebx]
mov edx, 5
movzx esi, cl
sub edx, esi
lea ecx, [edi + esi]
call fcn.100678c0
test eax, eax
jne 0x10067bc3
cmp byte [ebp - 1], 2
jae 0x10067b88
mov edx, 2
sub edx, esi
call fcn.100678c0
test eax, eax
je 0x10067b4c
lea ecx, [edi - 5]
call fcn.10066970
test eax, eax
je 0x10067b4c
mov edx, dword [ebx]
mov cl, byte [edx - 5]
test cl, cl
je 0x10067ba7
cmp cl, 0x90
je 0x10067ba7
cmp cl, 0xcc
jne 0x10067b4c
mov eax, 1
nop dword [eax]
cmp byte [edx + eax - 5], cl
jne 0x10067b4c
inc eax
cmp eax, 5
jb 0x10067bb0
mov dword [ebx + 0xc], 1
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret