Function at 0x10040980
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov dword [ebp - 0x1c], edx
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
movups xmmword [edx], xmm0
xor cl, cl
mov dword [ebp - 0x10], 0x100af018
movq qword [edx + 0x10], xmm0
push ebx
mov ebx, eax
mov byte [ebp - 0xc], cl
mov dword [edx + 0x18], 0
mov byte [ebp - 6], 0x10
mov ch, byte [ebx]
inc ebx
movzx eax, ch
add eax, 0xffffffda
mov byte [ebp - 2], ch
cmp eax, 0xcd
ja case.0x100409cd.39
movzx eax, byte [eax + 0x10040f40]
jmp dword [eax*4 + 0x10040f24]
mov byte [edx + 1], ch
mov al, 4
jmp 0x100409fc
mov byte [edx + 1], ch
mov al, 2
jmp 0x100409fc
mov byte [edx + 2], ch
mov al, 0x20
jmp 0x100409fc
mov byte [edx + 3], ch
mov al, 0x40
jmp 0x100409fc
mov byte [edx + 4], ch
mov al, 8
jmp 0x100409fc
mov byte [edx + 5], ch
mov al, 0x10
mov ah, byte [ebp - 6]
or cl, al
dec ah
mov byte [ebp - 6], ah
test ah, ah
jne 0x100409b3
push esi
push edi
movzx edi, cl
mov esi, 1
shl edi, 0x17
test cl, cl
movzx eax, cl
cmovne esi, eax
mov dword [edx + 0x18], edi
mov dword [ebp - 0x18], esi
mov byte [edx + 6], ch
cmp ch, 0xf
jne 0x10040a42
mov ch, byte [ebx]
inc ebx
mov cl, byte [ebp - 0x18]
mov byte [ebp - 2], ch
mov byte [edx + 7], ch
mov dword [ebp - 0x10], 0x100af062
jmp 0x10040a63
mov eax, dword [ebp - 0x18]
mov cl, al
mov byte [ebp - 3], cl
cmp ch, 0xa0
jb 0x10040a66
mov byte [ebp - 3], cl
cmp ch, 0xa3
ja 0x10040a66
test al, 0x10
je 0x10040a60
or cl, 8
jmp 0x10040a63
and cl, 0xf7
mov byte [ebp - 3], cl
movzx edx, ch
mov eax, edx
mov dword [ebp - 0x18], edx
shr eax, 2
mov esi, edx
mov edx, dword [ebp - 0x10]
and esi, 3
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esi
movzx eax, byte [eax + edx]
add eax, esi
mov esi, edx
mov edx, dword [ebp - 0x1c]
mov al, byte [eax + esi]
mov dword [ebp - 0x10], eax
cmp al, 0xff
jne 0x10040abb
xor al, al
or edi, 0x3000
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
and eax, 0xfffffffd
mov dword [edx + 0x18], edi
cmp eax, 0x24
jne 0x10040ab8
mov al, 1
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
jmp 0x10040ad6
mov eax, dword [ebp - 0x10]
mov byte [ebp - 0x14], 0
test al, al
jns 0x10040ad6
movzx eax, al
and eax, 0x7f
movzx eax, word [eax + esi]
mov dword [ebp - 0x10], eax
shr eax, 8
mov dword [ebp - 0x14], eax
mov al, byte [edx + 7]
mov esi, edi
mov byte [ebp - 5], al
test al, al
je 0x10040b04
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + str.JJJJKRJJJJOLJJJJJJJJUE_JJJEYMFJ_JJJJJJJJJJJJJJacgNJJkmJJEmJJDEJJ]
test byte [eax + edx + str.JJJJKRJJJJOLJJJJJJJJUE_JJJEYMFJ_JJJJJJJJJJJJJJacgNJJkmJJEmJJDEJJ], cl
mov edx, dword [ebp - 0x1c]
je 0x10040b04
or esi, 0x3000
mov dword [edx + 0x18], esi
mov eax, dword [ebp - 0x10]
test al, 1
je 0x10040e33
mov cl, byte [ebx]
or esi, 1
mov al, cl
mov byte [edx + 8], cl
shr al, 6
mov edi, esi
mov byte [ebp - 1], al
mov byte [edx + 9], al
mov al, cl
and al, 7
shr cl, 3
and cl, 7
mov byte [ebp - 6], al
mov byte [edx + 0xb], al
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x18], esi
mov byte [ebp - 4], cl
mov byte [edx + 0xa], cl
test al, al
je 0x10040b56
movzx eax, al
shl eax, cl
test al, al
jns 0x10040b56
or edi, 0x3000
mov dword [edx + 0x18], edi
cmp byte [ebp - 5], 0
mov eax, edi
jne 0x10040ba4
cmp ch, 0xd9
jb 0x10040ba4
cmp ch, 0xdf
ja 0x10040ba4
mov al, ch
movzx esi, cl
add al, 0x27
cmp byte [ebp - 1], 3
movzx eax, al
jne 0x10040b84
mov al, byte [esi + eax*8 + 0x100af110]
mov cl, byte [ebp - 6]
jmp 0x10040b8f
mov al, byte [eax + 0x100af109]
mov ecx, esi
mov ch, byte [ebp - 2]
shl al, cl
mov byte [ebp - 7], al
mov eax, edi
cmp byte [ebp - 7], 0
jge 0x10040ba4
or eax, 0x3000
mov dword [edx + 0x18], eax
mov cl, byte [ebp - 3]
test cl, 0x20
je 0x10040c17
cmp byte [ebp - 1], 3
jne 0x10040bbc
or eax, 0x9000
mov dword [edx + 0x18], eax
jmp 0x10040c17
cmp byte [ebp - 5], 0
mov eax, 0x100af1e3
mov esi, 0x100af1d1
cmovne esi, eax
mov al, ch
and al, 0xfe
movzx ecx, ch
cmp byte [ebp - 5], 0
movzx eax, al
cmove ecx, eax
mov eax, 0x100af1d1
mov dword [ebp - 0x24], ecx
mov ecx, 0x100af1b9
cmovne ecx, eax
cmp ecx, esi
je 0x10040c0d
mov al, byte [ecx]
inc ecx
cmp al, byte [ebp - 0x24]
je 0x10040c01
inc ecx
cmp ecx, esi
jne 0x10040bf2
jmp 0x10040c0d
movzx eax, byte [ecx]
mov cl, byte [ebp - 4]
shl eax, cl
test al, al
jns 0x10040c14
or dword [edx + 0x18], 0x9000
mov cl, byte [ebp - 3]
mov ch, byte [ebp - 5]
mov esi, dword [ebp - 0x18]
test ch, ch
je 0x10040c76
lea eax, [esi - 0x20]
cmp eax, 3
ja case.default.0x10040c29
jmp dword [eax*4 + 0x10041010]
mov al, byte [ebp - 4]
mov byte [ebp - 1], 3
cmp al, 4
ja case.0x10040cfb.197
cmp al, 1
jne case.0x10040cfb.81
or dword [edx + 0x18], 0x11000
jmp case.0x10040cfb.81
mov al, byte [ebp - 4]
mov byte [ebp - 1], 3
cmp al, 4
je case.0x10040cfb.197
cmp al, 5
jne case.0x10040cfb.81
or dword [edx + 0x18], 0x11000
jmp case.0x10040cfb.81
mov eax, esi
sub eax, 0x8c
je 0x10040d34
sub eax, 2
je 0x10040d29
mov al, byte [ebp - 1]
cmp al, 3
jne 0x10040ce6
test ch, ch
mov ecx, 0x100af1e3
je 0x10040cb6
cmp byte [ebp - 5], 0
mov edi, 0x100af1f2
mov esi, 0x100af21c
cmovne ecx, edi
cmp ecx, esi
jne 0x10040cbb
mov ah, byte [ebp - 2]
jmp 0x10040d0d
mov esi, 0x100af1f2
mov ah, byte [ebp - 2]
nop
mov al, byte [ecx]
inc ecx
cmp al, ah
je 0x10040cd0
add ecx, 2
cmp ecx, esi
jne 0x10040cc0
jmp 0x10040d0a
mov al, byte [ebp - 3]
test byte [ecx], al
je 0x10040d0a
movzx eax, byte [ecx + 1]
mov cl, byte [ebp - 4]
shl eax, cl
test al, al
jns case.0x10040cfb.197
jmp case.0x10040cfb.81
test ch, ch
je 0x10040cb1
lea eax, [esi - 0x50]
cmp eax, 0xa7
ja case.0x10040cfb.81
movzx eax, byte [eax + 0x10041030]
jmp dword [eax*4 + 0x10041020]
test cl, 9
jne case.0x10040cfb.197
mov ah, byte [ebp - 2]
mov al, byte [ebp - 1]
mov ch, byte [ebx + 1]
add ebx, 2
cmp byte [ebp - 4], 1
ja 0x10040d4c
cmp ah, 0xf6
jne 0x10040d43
or byte [ebp - 0x10], 2
jmp 0x10040d4c
test cl, 6
jmp 0x10040d05
mov al, byte [ebp - 4]
cmp al, 1
je case.0x10040cfb.197
cmp al, 5
jmp 0x10040d38
cmp byte [ebp - 4], 5
jbe case.0x10040cfb.81
or dword [edx + 0x18], 0x11000
jmp case.0x10040cfb.81
cmp ah, 0xf7
jne 0x10040d4c
or byte [ebp - 0x10], 0x10
mov cl, byte [ebp - 3]
mov esi, 4
movzx eax, al
sub eax, 0
je 0x10040d7b
sub eax, 1
je 0x10040d75
sub eax, 1
jne 0x10040da0
mov byte [ebp - 0xc], 2
test cl, 0x10
jne 0x10040da0
mov byte [ebp - 0xc], 4
jmp 0x10040da0
mov byte [ebp - 0xc], 1
jmp 0x10040da0
test cl, 0x10
je 0x10040d90
cmp byte [ebp - 6], 6
setne al
sub al, 1
and eax, 0xffffff02
jmp 0x10040d9d
mov eax, dword [ebp - 0xc]
cmp byte [ebp - 6], 5
movzx eax, al
cmove eax, esi
mov dword [ebp - 0xc], eax
mov ah, byte [ebp - 1]
cmp ah, 3
je 0x10040de6
cmp byte [ebp - 6], 4
jne 0x10040de6
test cl, 0x10
jne 0x10040de6
or dword [edx + 0x18], 2
mov al, ch
shr al, 6
inc ebx
mov byte [edx + 0xd], al
mov al, ch
shr al, 3
mov byte [edx + 0xc], ch
and al, 7
and ch, 7
mov byte [edx + 0xe], al
mov byte [edx + 0xf], ch
cmp ch, 5
jne 0x10040de6
test ah, 1
mov eax, dword [ebp - 0xc]
movzx eax, al
cmove eax, esi
jmp 0x10040de9
mov eax, dword [ebp - 0xc]
movzx esi, al
dec ebx
mov eax, esi
sub eax, 1
je 0x10040e23
sub eax, 1
je 0x10040e11
sub eax, 2
jne 0x10040e2c
mov eax, dword [ebx]
or dword [edx + 0x18], 0x80
add ebx, esi
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x10]
jmp 0x10040e41
mov ax, word [ebx]
or dword [edx + 0x18], 0x40
add ebx, esi
mov word [edx + 0x14], ax
mov eax, dword [ebp - 0x10]
jmp 0x10040e41
mov al, byte [ebx]
or dword [edx + 0x18], 0x20
mov byte [edx + 0x14], al
mov eax, dword [ebp - 0x10]
add ebx, esi
jmp 0x10040e41
test cl, 0x20
je 0x10040e41
or esi, 0x9000
mov dword [edx + 0x18], esi
test al, 0x10
je 0x10040e91
and cl, 8
test al, 0x40
je 0x10040e6a
test cl, cl
je 0x10040ed9
mov ax, word [ebx]
or dword [edx + 0x18], 0x108
add ebx, 2
mov word [edx + 0x10], ax
jmp 0x10040efc
mov eax, dword [edx + 0x18]
test cl, cl
je 0x10040e83
or eax, 8
mov dword [edx + 0x18], eax
mov ax, word [ebx]
add ebx, 2
mov word [edx + 0x10], ax
jmp 0x10040e91
or eax, 0x10
mov dword [edx + 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x10]
test cl, 4
je 0x10040ec5
mov eax, dword [edx + 0x18]
movzx esi, word [ebx]
test al, 0x10
je 0x10040ea9
mov word [edx + 0x14], si
jmp 0x10040ebc
test al, 8
je 0x10040eb8
mov word [edx + 0x14], si
or eax, 0x800
jmp 0x10040ebf
mov word [edx + 0x10], si
or eax, 8
mov dword [edx + 0x18], eax
add ebx, 2
test cl, 2
je 0x10040ed4
mov al, byte [ebx]
or dword [edx + 0x18], 4
inc ebx
mov byte [edx + 0x10], al
test cl, 0x40
je 0x10040eea
mov eax, dword [ebx]
or dword [edx + 0x18], 0x110
add ebx, 4
mov dword [edx + 0x10], eax
jmp 0x10040efc
test cl, 0x20
je 0x10040efc
mov al, byte [ebx]
or dword [edx + 0x18], 0x104
inc ebx
mov byte [edx + 0x10], al
sub bl, byte [ebp - 0x28]
mov byte [edx], bl
pop edi
pop esi
cmp bl, 0xf
jbe 0x10040f1c
or dword [edx + 0x18], 0x5000
mov al, 0xf
mov byte [edx], 0xf
movzx eax, al
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, bl
pop ebx
mov esp, ebp
pop ebp
ret