Function at 0x1004ae10
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor edx, edx
mov dword [ebp - 0x20], ecx
push esi
push edi
mov dword [ebp - 0x14], edx
cmp dword [ebp + 0x10], edx
jbe 0x1004b1ad
mov ecx, dword [ebp + 8]
nop dword [eax]
mov al, byte [edx + ecx]
lea esi, [edx + ecx]
cmp al, 0x90
je 0x1004b19a
cmp al, 0xcc
je 0x1004b19a
test al, al
je 0x1004b19a
push 0x24
call fcn.10061819
mov edi, eax
lea ecx, [ebp - 1]
add esp, 4
mov dword [ebp - 0x1c], edi
lea eax, [edi + 0xc]
mov dword [eax], 0
mov dword [ebp - 0x24], eax
push ecx
mov ecx, eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0
call fcn.10001870
lea eax, [edi + 0x18]
mov ecx, eax
mov dword [ebp - 0x18], eax
call fcn.10009ab0
mov dword [ebp - 0x30], edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], esi
nop word [eax + eax]
lea eax, [ebp - 0xc]
mov edx, esi
push eax
call fcn.1004aaa0
mov ebx, eax
test ebx, ebx
jne 0x1004aebb
inc edi
inc esi
mov dword [ebp - 0x10], edi
jmp 0x1004b118
push 0x10
call fcn.10061819
mov ecx, dword [ebp - 0x1c]
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
mov eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
je 0x1004aeeb
push eax
push 4
call fcn.10001530
add esp, 8
mov dword [eax], edi
mov eax, dword [ebp - 0x24]
add dword [eax + 4], 4
jmp 0x1004aefb
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x24]
push eax
call fcn.1004be50
mov edi, dword [ebp - 0x28]
mov eax, esi
sub eax, dword [ebp - 0x14]
sub eax, dword [ebp + 8]
mov dword [edi + 4], eax
mov eax, esi
sub eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [edi], eax
mov byte [edi + 9], bl
mov dword [ebp - 0x28], eax
mov al, byte [esi]
mov byte [edi + 8], al
movzx eax, byte [edi + 9]
push eax
call fcn.10061c92
mov dword [edi + 0xc], eax
movzx ecx, byte [edi + 9]
push ecx
push esi
push eax
call fcn.100633a0
mov eax, dword [ebp - 0xc]
add esp, 0x10
cmp ebx, 5
jne 0x1004aff9
cmp byte [eax], 0xe8
jne 0x1004b07e
mov edi, dword [ebp - 0x28]
add edi, ebx
add edi, dword [esi + 1]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x14]
jae 0x1004af78
mov ecx, dword [ebp + 8]
cmp byte [eax + ecx], 0xe9
jne 0x1004af78
cmp byte [0x100afb36], 0
je 0x1004af78
mov eax, dword [eax + ecx + 1]
add edi, ebx
add edi, eax
push 8
call fcn.10061819
mov ecx, dword [ebp - 0x28]
add esp, 4
inc ecx
mov dword [ebp - 0x2c], eax
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], edi
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x28], eax
cmp eax, dword [ecx + 0x20]
je 0x1004afbf
mov ecx, dword [ebp - 0x18]
call fcn.1000eef0
push dword [ebp - 0x28]
push 4
call fcn.10001530
mov ecx, dword [ebp - 0x2c]
add esp, 8
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
add dword [eax + 4], 4
jmp 0x1004afcc
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
call fcn.1004bcd0
cmp byte [esi + 5], 0xc3
mov edx, dword [ebp + 8]
jne 0x1004afee
sub edi, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
jae 0x1004afee
mov eax, 0xe990
cmp word [edi + edx], ax
jne 0x1004afee
lea eax, [esi + 6]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
jmp 0x1004b084
cmp ebx, 2
jne 0x1004b058
mov cl, byte [eax]
cmp cl, 0x70
jb 0x1004b029
cmp cl, 0x7f
ja 0x1004b029
cmp dword [ebp - 0x10], ebx
jbe 0x1004b029
movzx ecx, byte [esi + 1]
cmp ecx, 0x7f
ja 0x1004b07e
add ecx, ebx
mov edx, dword [ebp + 8]
add ecx, esi
cmp ecx, dword [ebp - 8]
jbe 0x1004aff1
mov dword [ebp - 8], ecx
jmp 0x1004b084
cmp cl, 0xeb
mov ecx, dword [ebp - 8]
jne 0x1004b081
cmp esi, ecx
jb 0x1004b081
movzx ecx, byte [esi + 1]
cmp ecx, 0x7f
ja 0x1004b07e
mov edx, dword [ebp + 8]
add ecx, 2
cmp byte [esi + 2], 0xd6
je 0x1004b051
add ecx, esi
mov dword [ebp - 8], ecx
jmp 0x1004b084
mov ebx, ecx
mov ecx, dword [ebp - 8]
jmp 0x1004b084
cmp ebx, 6
jne 0x1004b07e
cmp byte [eax], 0xf
jne 0x1004b07e
mov cl, byte [esi + 1]
cmp cl, 0x80
jb 0x1004b07e
cmp cl, 0x8f
ja 0x1004b07e
mov ecx, dword [esi + 2]
cmp ecx, 0x7fffffff
ja 0x1004b07e
add ecx, ebx
jmp 0x1004b01a
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
add edi, ebx
mov dword [ebp - 0x10], edi
cmp esi, ecx
jb 0x1004b108
cmp ebx, 1
jne 0x1004b0a3
mov al, byte [eax]
cmp al, 0xcc
je 0x1004b12e
cmp al, 0xc3
jmp 0x1004b110
cmp ebx, 3
jne 0x1004b0ad
cmp byte [eax], 0xc2
jmp 0x1004b110
cmp ebx, 5
jne 0x1004b0d4
cmp byte [eax], 0xe9
jne 0x1004b112
mov ecx, dword [esi + 1]
lea eax, [esi + 0x1500]
add ecx, ebx
add ecx, esi
cmp ecx, eax
ja 0x1004b12e
lea eax, [esi - 0x1500]
cmp ecx, eax
jb 0x1004b12e
jmp 0x1004b112
cmp ebx, 6
jne 0x1004b112
cmp byte [eax], 0xff
jne 0x1004b112
cmp byte [esi + 1], 0x25
jne 0x1004b112
mov eax, dword [esi + 2]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x14]
jae 0x1004b112
mov ecx, dword [eax + edx]
lea eax, [esi + 0x1500]
cmp ecx, eax
ja 0x1004b12e
lea eax, [esi - 0x1500]
cmp ecx, eax
jb 0x1004b12e
jmp 0x1004b112
cmp ebx, 1
jne 0x1004b112
cmp byte [eax], 0xcc
je 0x1004b12e
add esi, ebx
test ebx, ebx
je 0x1004b12e
cmp edi, 0x2000
jae 0x1004b12e
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
cmp esi, eax
jb 0x1004aea0
mov ebx, dword [ebp - 0x1c]
mov dword [ebx + 8], edi
test edi, edi
jne 0x1004b143
mov ecx, dword [ebp + 8]
lea eax, [edi + 1]
mov edx, dword [ebp - 0x14]
jmp 0x1004b19f
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp + 0xc]
mov dword [ebx], ecx
lea eax, [ecx + edi]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 0x20]
lea esi, [eax + 0x1c]
mov ecx, esi
cmp edi, dword [eax + 0x24]
je 0x1004b182
call fcn.1000eef0
push edi
push 4
call fcn.10001530
mov ecx, dword [ebp + 8]
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [eax], ebx
add dword [esi + 4], 4
mov eax, dword [ebx + 8]
jmp 0x1004b19f
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.1004bcd0
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 8]
jmp 0x1004b19f
mov eax, 1
add edx, eax
mov dword [ebp - 0x14], edx
cmp edx, dword [ebp + 0x10]
jb 0x1004ae30
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
mov edx, esi
push eax
call fcn.1004aaa0
mov edi, eax
test edi, edi
jne 0x1004b1d1
inc ebx
lea edi, [eax + 1]
jmp 0x1004b2c3
mov ecx, dword [ebp - 0x28]
cmp edi, 2
jne 0x1004b219
mov al, byte [ecx]
cmp al, 0x70
jb 0x1004b204
cmp al, 0x7f
ja 0x1004b204
movzx eax, byte [esi + 1]
cmp eax, 0x7f
ja 0x1004b1fc
mov ecx, dword [ebp - 0x1c]
add eax, 2
add eax, esi
cmp eax, ecx
cmova ecx, eax
mov dword [ebp - 0x1c], ecx
add ebx, 2
jmp 0x1004b2c3
cmp al, 0xeb
jne 0x1004b219
cmp esi, dword [ebp - 0x1c]
jb 0x1004b219
movzx eax, byte [esi + 1]
cmp eax, 0x7f
ja 0x1004b219
lea edi, [eax + 2]
add ebx, edi
cmp edi, 5
jne 0x1004b2c3
cmp byte [ecx], 0xe8
jne 0x1004b2c3
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov edx, dword [ebp + 8]
inc ecx
sub eax, edx
add ecx, eax
mov eax, dword [esi + 1]
add eax, 4
mov dword [ebp - 0x24], ecx
add ecx, eax
mov eax, ecx
mov dword [ebp - 0x30], ecx
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x14]
jae 0x1004b26c
cmp byte [eax + edx], 0xe9
jne 0x1004b26c
cmp byte [0x100afb36], 0
je 0x1004b26c
mov eax, dword [eax + edx + 1]
add ecx, edi
add ecx, eax
mov dword [ebp - 0x30], ecx
push 8
call fcn.10061819
mov edx, dword [ebp - 0x20]
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov dword [eax], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
lea eax, [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x30], ecx
cmp ecx, dword [edx + 0x18]
je 0x1004b2b7
mov ecx, eax
call fcn.1000eef0
push dword [ebp - 0x30]
push 4
call fcn.10001530
mov ecx, dword [ebp - 0x2c]
add esp, 8
mov dword [eax], ecx
mov ecx, dword [ebp - 0x20]
add dword [ecx + 0x14], 4
jmp 0x1004b2c3
lea edx, [ebp - 0x2c]
push edx
push ecx
mov ecx, eax
call fcn.1004bcd0
mov ecx, dword [ebp + 0x10]
add esi, edi
cmp ecx, ebx
jbe 0x1004b2d9
mov eax, dword [ebp + 8]
add eax, ecx
cmp esi, eax
jb 0x1004b1b7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10