Function at 0x47a6f8
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
add ebx, ebx
inc ebx
test ebx, ebx
js 0x47a719
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x47a712
mov edx, esp
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47aaf0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00479eb4
mov ecx, 0x64
cdq
idiv ecx
mov esi, eax
cmp esi, 3
jne 0x47a760
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00479eb4
cmp eax, 0x130
jne 0x47a770
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x58], 0
je 0x47a93d
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x58]
call fcn.004041dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0xf8], 0
je 0x47a854
mov edx, dword [eax + 0xf0]
cmp edx, dword [eax + 0xf4]
jge 0x47a854
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
movzx eax, byte [eax + 0x98]
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 0xf0]
push eax
lea ecx, [ebp - 0x12]
lea edx, [ebp - 8]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xa4]
test al, al
je 0x47a83e
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x94
mov edx, dword [ebp - 8]
call fcn.00404198
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00479eb4
cmp eax, 0x12e
je 0x47a812
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00479eb4
cmp eax, 0x12f
jne 0x47a82c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
xor edx, edx
mov dword [eax + 0x9c], edx
mov byte [eax + 0x98], 1
jmp 0x47a8b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
movzx edx, byte [ebp - 0x12]
mov byte [eax + 0x98], dl
jmp 0x47a8b0
push ebp
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0047a52c
pop ecx
mov byte [ebp - 0x11], 1
jmp 0x47aada
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
movzx eax, byte [eax + 0x98]
mov byte [ebp - 0x12], al
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 0xf0]
push eax
lea ecx, [ebp - 0x12]
lea edx, [ebp - 8]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xa4]
test al, al
jne 0x47a89f
push ebp
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0047a52c
pop ecx
mov byte [ebp - 0x11], 1
jmp 0x47aada
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, 0x58
mov edx, dword [ebp - 8]
call fcn.00404198
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x58]
test al, al
je 0x47aada
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x74]
mov edx, dword [eax + 0xa0]
mov dword [ebp - 0x18], edx
xor edx, edx
push ebp
push 0x47a936
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [eax + 0xa0], 0xfa0
xor eax, eax
push ebp
push 0x47a90c
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.0047a66c
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47a916
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47aada
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x74]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0xa0], edx
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp dword [eax + 0x74], 0
je 0x47a98e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x58]
test al, al
je 0x47a983
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x74]
mov edx, dword [0x47477c]
call fcn.004034a8
test al, al
je 0x47a983
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00479d0c
test al, al
je 0x47a983
xor eax, eax
jmp 0x47a985
mov al, 1
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov byte [edx + 0x7c], al
cmp esi, 2
je 0x47aa9c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00479eb4
sub eax, 0x191
je 0x47a9b3
sub eax, 6
je 0x47aa1e
jmp 0x47aa89
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 0xc8]
cmp eax, dword [ebx + 0xdc]
jge 0x47a9e1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x9c]
test al, al
jne 0x47aa0c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x8c]
test eax, eax
je 0x47a9f6
mov edx, dword [eax]
call dword [edx + 0x20]
push ebp
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0047a52c
pop ecx
mov byte [ebp - 0x11], 1
jmp 0x47aada
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test byte [eax + 0xf9], 1
setne bl
jmp 0x47aa9c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 0xcc]
cmp eax, dword [ebx + 0xdc]
jge 0x47aa4c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xa0]
test al, al
jne 0x47aa77
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x104]
mov eax, dword [eax + 4]
test eax, eax
je 0x47aa64
mov edx, dword [eax]
call dword [edx + 0x20]
push ebp
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0047a52c
pop ecx
mov byte [ebp - 0x11], 1
jmp 0x47aada
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test byte [eax + 0xf9], 1
setne bl
jmp 0x47aa9c
push ebp
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0047a52c
pop ecx
mov byte [ebp - 0x11], 1
jmp 0x47aada
test bl, bl
je 0x47aaad
push ebp
call fcn.0047a66c
pop ecx
mov byte [ebp - 0x11], 4
jmp 0x47aada
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00479eb4
cmp eax, 0xcc
je 0x47aad6
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004788a4
mov byte [ebp - 0x11], 1
jmp 0x47aada
mov byte [ebp - 0x11], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47aaf7
lea eax, [ebp - 8]
call fcn.00404144
ret