Function at 0x1002ff60
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x100b5004]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], 9
xor ecx, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
mov edx, dword [edi + 4]
mov dword [esp + 0x20], edx
test edx, edx
jne 0x1002ff9f
mov eax, dword [edi]
mov edx, dword [eax + 0x50]
mov dword [esp + 0x20], edx
mov al, byte [edi + 0x20e]
mov dword [esp + 0xc], 4
cmp al, 3
jne 0x1002ffbb
cmp byte [edi + 0x20f], al
jb 0x1002ffd3
jmp 0x1002ffc8
cmp al, 0xfe
jne 0x1002ffd3
cmp byte [edi + 0x20f], 0xfd
ja 0x1002ffd3
movzx eax, word [edx + 2]
add eax, 6
mov dword [esp + 0xc], eax
mov ebx, dword [edi + 0x1584]
test ebx, ebx
jne 0x1002ffe6
mov eax, dword [edi]
mov ebx, dword [eax + 0x24]
test ebx, ebx
je 0x10030014
mov esi, dword [ebx + 4]
test esi, esi
je 0x1003000d
mov esi, dword [esi + 0x4c8]
lea edx, [esp + 0x25]
mov ecx, esi
call fcn.1004ff00
mov ecx, dword [esp + 0x10]
add eax, esi
add ecx, 3
add ecx, eax
mov dword [esp + 0x10], ecx
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x1002ffe6
mov ebx, dword [esp + 0xc]
mov eax, 0x300
add ebx, ecx
test word [edi + 0x3e0], ax
jne 0x100304f4
test byte [edi + 0x3de], 0x80
lea edx, [ebx + 9]
mov al, byte [edi + 0x3d0]
mov dword [esp + 0xc], edx
jne 0x10030054
test al, al
je 0x100300b6
cmp byte [edi + 0xd1], 0
je 0x10030063
add edx, 0x66
jmp 0x1003005f
add edx, 0x10
mov dword [esp + 0x1c], 0x19
mov dword [esp + 0xc], edx
test al, al
je 0x100300b6
cmp byte [edi + 0xd1], 0
je 0x100300b6
cmp byte [edi + 0x21b], 2
jne 0x1003008f
movzx eax, word [edi + 0x218]
cmp byte [edi + 0x21a], 9
lea ecx, [eax + 8]
cmove ecx, eax
jmp 0x100300a8
movzx eax, word [edi + 0x216]
movzx ecx, byte [edi + 0x21f]
add ecx, eax
movzx eax, word [edi + 0x214]
add ecx, eax
xor eax, eax
cmp eax, ecx
sbb eax, eax
and eax, ecx
add edx, eax
mov dword [esp + 0xc], edx
mov eax, 0x8000
mov ecx, edi
or word [edi + 0x3e2], ax
call fcn.10025ab0
test eax, eax
jne 0x100304f6
mov ecx, dword [edi + 0x11c]
mov esi, 0x80
add ecx, dword [edi + 0x114]
mov edx, 0
mov eax, dword [edi + 0x118]
add eax, ecx
and si, word [edi + 0x3de]
push 0
setne dl
mov dword [esp + 0x1c], eax
push edi
push 0x16
mov ecx, eax
lea edx, [edx*8 + 4]
add edx, ebx
call fcn.100251e0
add esp, 0xc
xor ecx, ecx
test si, si
mov edx, ebx
mov esi, dword [esp + 0x18]
setne cl
push edi
push 0xd
push ebx
lea ecx, [ecx*8 + 5]
push 0
add ecx, esi
call fcn.10025270
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov byte [esi + ecx], 1
mov al, byte [edi + 0x3e7]
cmp al, 0xc0
je 0x10030150
cmp al, 0xcc
jne 0x1003015b
cmp byte [edi + 0x21e], 3
mov al, 0x40
je 0x1003015d
mov al, 1
mov byte [esi + ecx + 1], al
lea ebx, [ecx + 2]
mov al, byte [edi + 0x20e]
cmp al, 3
jne 0x10030178
cmp byte [edi + 0x20f], al
jb 0x100301be
jmp 0x10030185
cmp al, 0xfe
jne 0x100301be
cmp byte [edi + 0x20f], 0xfd
ja 0x100301be
mov edx, dword [esp + 0x20]
movzx ecx, word [edx + 2]
mov eax, ecx
mov byte [ebx + esi + 1], cl
shr eax, 8
mov byte [ebx + esi], al
add ebx, 2
movzx eax, word [edx + 2]
push eax
lea eax, [edx + 0x130]
push eax
lea eax, [esi + ebx]
push eax
call fcn.1007e990
mov eax, dword [esp + 0x2c]
add esp, 0xc
movzx eax, word [eax + 2]
add ebx, eax
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 8
mov byte [esi + ebx], al
mov byte [esi + ebx + 1], cl
add ebx, 2
mov eax, dword [edi + 0x1584]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100301f0
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10030280
mov edi, esi
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x10030269
mov esi, dword [ecx + 0x4c8]
lea edx, [esp + 0x2d]
mov ecx, esi
call fcn.1004ff00
inc esi
add eax, esi
mov esi, dword [esp + 0x1c]
movzx ecx, ax
mov eax, ecx
mov byte [edi + ebx + 1], cl
shr eax, 8
mov byte [edi + ebx], al
add ebx, 2
mov ecx, dword [esi + 0x4c8]
lea eax, [edi + ebx]
test eax, eax
je 0x1003023c
mov byte [eax], 0x30
lea edx, [eax + 1]
jmp 0x1003023e
xor edx, edx
call fcn.1004ff00
push dword [esi + 0x4c8]
inc eax
add ebx, eax
lea eax, [esi + 0x37c]
push eax
lea eax, [edi + ebx]
push eax
call fcn.1007e990
mov eax, dword [esp + 0x1c]
add esp, 0xc
add ebx, dword [esi + 0x4c8]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100301f2
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp byte [edi + 0x3d0], 0
je 0x100303c4
cmp byte [edi + 0xd1], 0
je 0x100303c4
movzx eax, word [edi + 0x3de]
and eax, 0x80
or eax, 0x50
shr eax, 4
sub ebx, eax
mov dword [esp + 0x14], eax
test ebx, ebx
jg 0x100302cd
mov eax, 0xffffff7c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100df564]
push ebx
test eax, eax
je 0x100302db
call eax
jmp 0x100302e0
call fcn.10080ffe
mov esi, eax
add esp, 4
test esi, esi
jne 0x100302fe
lea eax, [esi - 0x7d]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, ecx
push ebx
push eax
push esi
call fcn.1007e990
add esp, 0xc
test byte [edi + 0x3de], 0x80
je 0x10030377
push 0xd
push ebx
mov edx, esi
mov ecx, edi
call fcn.10024bc0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x10030377
mov ecx, dword [0x100df55c]
push esi
test ecx, ecx
je 0x10030359
call ecx
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
call fcn.1008107c
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x18]
push 0
push ecx
push 0
push 1
push 0x16
push ebx
push esi
push dword [esp + 0x28]
mov ecx, edi
call fcn.1002ed60
add esp, 0x20
mov ebx, eax
mov eax, dword [0x100df55c]
push esi
test eax, eax
je 0x100303a4
call eax
jmp 0x100303a9
call fcn.1008107c
add esp, 4
test ebx, ebx
jns 0x1003042c
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
test byte [edi + 0x3de], 0x80
je 0x10030407
push 0xd
push ebx
mov edx, esi
mov ecx, edi
call fcn.10024bc0
add esp, 8
test eax, eax
jne 0x100304f6
test byte [edi + 0x3de], 0x80
je 0x10030407
mov ecx, dword [edi + 0x3b8]
lea eax, [ecx + 1]
mov dword [edi + 0x3b8], eax
cmp ecx, eax
jbe 0x10030407
inc word [edi + 0x3b6]
push 0
push ebx
mov edx, esi
mov ecx, edi
call fcn.10025080
add esp, 8
test eax, eax
je 0x10030430
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x18]
cmp byte [edi + 0x919], 0
je 0x1003049b
mov eax, dword [edi + 0x910]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1003049b
test ebx, ebx
jle 0x1003049b
cmp byte [edi + 0x3d0], 1
je 0x1003049b
movzx eax, byte [edi + 0x20e]
push dword [edi + 0x914]
movzx edx, byte [edi + 0x20f]
mov ecx, eax
and ecx, 0xf0
and eax, 0xf
shl ecx, 4
add ecx, eax
mov eax, edx
push edi
shl ecx, 4
and eax, 0xf0
push ebx
add ecx, eax
and edx, 0xf
push esi
shl ecx, 4
push 0x16
add ecx, edx
push ecx
push 1
call dword [esp + 0x30]
add esp, 0x1c
add dword [edi + 0x118], ebx
mov eax, 0x2000
test word [edi + 0x3e0], ax
je 0x100304cf
mov ecx, 0x7fff
xor eax, eax
and word [edi + 0x3e2], cx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.10025930
mov ecx, 0x7fff
and word [edi + 0x3e2], cx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret