Function at 0x4661a0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1a
push 0
push 0
dec ecx
jne 0x4661a9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x466c01
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov dword [ebx + 0x50], 0x1f4
lea eax, [ebx + 0x54]
call fcn.00404570
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x64], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.0045e6dc
cmp dword [ebp - 0x18], 0
jne 0x466229
lea eax, [ebp - 0x18]
mov edx, dword [ebx + 0x14]
call fcn.00404608
lea eax, [ebp - 0x1c]
mov edx, dword [ebx + 0x18]
call fcn.00404608
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x14]
call fcn.00408408
mov eax, dword [ebp - 0x44]
mov edx, 0x466c1c
call fcn.0040497c
jne 0x46628d
cmp dword [ebx + 0x40], 0
setne byte [ebp - 0x39]
mov eax, dword [ebx + 0x1c]
add eax, 0x204
mov edx, dword [ebx + 0x40]
call fcn.004045c4
mov eax, dword [ebx + 0x1c]
add eax, 0x208
mov edx, dword [ebx + 0x44]
call fcn.004045c4
mov eax, dword [ebx + 0x1c]
add eax, 0x218
mov edx, dword [ebx + 0x48]
call fcn.004045c4
mov eax, dword [ebx + 0x1c]
add eax, 0x21c
mov edx, dword [ebx + 0x4c]
call fcn.004045c4
jmp 0x4662c5
mov byte [ebp - 0x39], 0
mov eax, dword [ebx + 0x1c]
add eax, 0x204
call fcn.00404570
mov eax, dword [ebx + 0x1c]
add eax, 0x208
call fcn.00404570
mov eax, dword [ebx + 0x1c]
add eax, 0x218
call fcn.00404570
mov eax, dword [ebx + 0x1c]
add eax, 0x21c
call fcn.00404570
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4662d9
cmp eax, 0
seta al
jmp 0x4662dc
setg al
mov byte [ebp - 6], al
mov al, byte [ebx + 0x3d]
and al, byte [ebp - 6]
je 0x4662f6
mov eax, dword [ebx + 0x38]
mov edx, 0x466c2c
call fcn.0040497c
je 0x4662fa
xor eax, eax
jmp 0x4662fc
mov al, 1
mov byte [ebp - 7], al
cmp byte [ebp - 7], 0
je 0x466314
mov ecx, 0x466c38
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
cmp byte [ebp - 6], 0
je 0x46636b
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.004088d4
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
mov edx, 0x466c58
call fcn.0040487c
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
cmp dword [ebx + 0x34], 0
je 0x46636b
lea eax, [ebp - 0x50]
mov ecx, dword [ebx + 0x34]
mov edx, 0x466c74
call fcn.0040487c
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
cmp dword [ebx + 0x58], 0
je 0x46638e
lea eax, [ebp - 0x54]
mov ecx, dword [ebx + 0x58]
mov edx, 0x466c8c
call fcn.0040487c
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
mov esi, dword [ebx + 0x68]
test esi, esi
jg 0x46639b
cmp dword [ebx + 0x6c], 0
jle 0x466412
cmp esi, dword [ebx + 0x6c]
jg 0x4663e1
push 0x466ca4
lea edx, [ebp - 0x5c]
mov eax, esi
call fcn.004087e8
push dword [ebp - 0x5c]
push 0x466cbc
lea edx, [ebp - 0x60]
mov eax, dword [ebx + 0x6c]
call fcn.004087e8
push dword [ebp - 0x60]
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.004048f0
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
jmp 0x466412
push 0x466ca4
lea edx, [ebp - 0x68]
mov eax, esi
call fcn.004087e8
push dword [ebp - 0x68]
push 0x466cbc
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.004048f0
mov ecx, dword [ebp - 0x64]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
lea eax, [ebp - 0x34]
call fcn.00404570
mov eax, dword [ebx + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x466463
inc esi
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x34], 0
je 0x466444
lea eax, [ebp - 0x34]
mov edx, 0x466cc8
call fcn.00404838
lea ecx, [ebp - 0x6c]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebx + 0x5c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x34]
call fcn.00404838
inc dword [ebp - 0x40]
dec esi
jne 0x466431
cmp dword [ebp - 0x34], 0
je 0x466486
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0x34]
mov edx, 0x466cd4
call fcn.0040487c
mov ecx, dword [ebp - 0x70]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
cmp byte [ebx + 0x3c], 0
jne 0x46649b
mov ecx, 0x466ce8
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
cmp dword [ebp - 0x18], 0
je 0x4664e1
push dword [ebp - 0x18]
push 0x466d04
push dword [ebp - 0x1c]
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.004048f0
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
call fcn.0045f014
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, 0x466d10
call fcn.0040487c
mov ecx, dword [ebp - 0x74]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
cmp dword [ebx + 0x40], 0
je 0x46653f
cmp dword [ebx + 0x48], 0
je 0x46653f
cmp byte [ebp - 0x39], 0
jne 0x46653f
push dword [ebx + 0x48]
push 0x466d04
push dword [ebx + 0x4c]
lea eax, [ebp - 0x88]
mov edx, 3
call fcn.004048f0
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.0045f014
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 0x466d30
call fcn.0040487c
mov ecx, dword [ebp - 0x80]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
mov eax, dword [ebp - 0x20]
call fcn.0045f1c0
test al, al
je 0x466567
push 0x466d54
push dword [ebp - 0x20]
push 0x466d60
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.004048f0
jmp 0x466572
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x20]
call fcn.00404608
cmp byte [ebx + 0x70], 0
je 0x4665b9
mov eax, dword [ebp - 0x24]
mov edx, 0x466d6c
call fcn.0040497c
je 0x4665b9
push 0x466d78
push dword [ebp - 0x34]
push 0x466d04
push dword [ebp - 0x24]
lea eax, [ebp - 0x8c]
mov edx, 4
call fcn.004048f0
mov ecx, dword [ebp - 0x8c]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
jmp 0x4665dc
lea eax, [ebp - 0x90]
mov ecx, dword [ebp - 0x34]
mov edx, 0x466d78
call fcn.0040487c
mov ecx, dword [ebp - 0x90]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
cmp dword [ebx + 0x40], 0
je 0x46660b
cmp byte [ebp - 0x39], 0
jne 0x46660b
push dword [ebp - 0x14]
push 0x466d88
push dword [ebp - 0x34]
push 0x466d04
push dword [ebp - 0x24]
push dword [ebp - 0x30]
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.004048f0
mov eax, dword [ebp - 0x30]
mov edx, 0x466d94
call fcn.0040497c
jne 0x466627
lea eax, [ebp - 0x30]
mov edx, 0x466da0
call fcn.00404608
mov eax, dword [ebx + 0x38]
mov edx, 0x466dac
call fcn.0040497c
jne 0x466674
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 4]
call fcn.00408408
push dword [ebp - 0x98]
push 0x466db8
push dword [ebp - 0x30]
lea eax, [ebp - 0x94]
mov edx, 3
call fcn.004048f0
mov ecx, dword [ebp - 0x94]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
jmp 0x4666b8
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 4]
call fcn.00408408
push dword [ebp - 0xa0]
push 0x466db8
push dword [ebp - 0x30]
push 0x466dc4
push dword [ebx + 0x38]
lea eax, [ebp - 0x9c]
mov edx, 5
call fcn.004048f0
mov ecx, dword [ebp - 0x9c]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
cmp dword [ebx + 0x40], 0
je 0x4666dc
cmp byte [ebp - 0x39], 0
jne 0x4666dc
lea eax, [ebx + 4]
mov edx, dword [ebx + 0x40]
call fcn.004045c4
lea eax, [ebx + 8]
mov edx, dword [ebx + 0x44]
call fcn.004045c4
jmp 0x4666f2
lea eax, [ebx + 4]
mov edx, dword [ebp - 0x20]
call fcn.004045c4
lea eax, [ebx + 8]
mov edx, dword [ebp - 0x24]
call fcn.004045c4
mov esi, dword [ebx + 0x2c]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
lea ecx, [ebp - 0xa4]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0xc]
cmp dword [ebp - 0xa4], 0
je 0x46671f
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 0x14]
call fcn.00408408
mov eax, dword [ebp - 0xa8]
mov edx, 0x466c1c
call fcn.0040497c
sete dl
mov eax, ebx
call fcn.00466144
test al, al
jne 0x466760
lea eax, [ebx + 0x24]
call fcn.00404570
lea eax, [ebx + 0x28]
call fcn.00404570
jmp 0x466bce
push 0
push 0
mov eax, dword [ebx + 0x30]
call fcn.004179b8
lea eax, [ebp - 0xc]
call fcn.00404570
cmp byte [ebp - 7], 0
je 0x466842
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.00466030
mov edx, dword [ebp - 0xac]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1b8], 0
jne 0x466bce
lea ecx, [ebp - 0x34]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x1c]
mov esi, dword [eax]
call dword [esi + 0x38]
cmp dword [ebp - 0x34], 0
jne 0x4667c9
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1b8], 0
je 0x4667a9
mov edx, dword [ebp - 0x34]
mov eax, ebx
call fcn.00465f60
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x34]
call fcn.00404608
lea ecx, [ebp - 0x34]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x1c]
mov esi, dword [eax]
call dword [esi + 0x38]
cmp dword [ebp - 0x34], 0
je 0x4667fe
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1b8], 0
je 0x4667de
mov eax, dword [ebx + 0x50]
cmp eax, 0x64
jl 0x46690e
cmp eax, 0xc8
jge 0x46690e
lea eax, [ebp - 0xc]
call fcn.00404570
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx]
mov dword [ebx + 0x64], eax
mov esi, dword [ebx + 0x30]
mov eax, esi
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [esi + 4]
mov eax, dword [ebx + 0x1c]
mov esi, dword [eax]
call dword [esi + 0x54]
jmp 0x46690e
cmp byte [ebp - 6], 0
je 0x4668f3
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x466861
cmp eax, 0x10000
jb 0x4668a0
jmp 0x466863
jl 0x4668a0
lea edx, [ebp - 0xb0]
mov eax, ebx
call fcn.00466030
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx]
mov dword [ebx + 0x64], eax
mov esi, dword [ebx + 0x30]
mov eax, esi
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [esi + 4]
mov eax, dword [ebx + 0x1c]
mov esi, dword [eax]
call dword [esi + 0x54]
jmp 0x46690e
mov esi, dword [ebx + 0x30]
mov eax, esi
mov edx, dword [eax]
call dword [edx]
mov edx, eax
lea ecx, [ebp - 0xb4]
mov eax, esi
call fcn.0045ed54
mov eax, dword [ebp - 0xb4]
push eax
lea edx, [ebp - 0xb8]
mov eax, ebx
call fcn.00466030
mov edx, dword [ebp - 0xb8]
lea eax, [ebp - 0x34]
pop ecx
call fcn.0040487c
mov eax, dword [ebp - 0x34]
call fcn.00404830
mov dword [ebx + 0x64], eax
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp 0x46690e
lea edx, [ebp - 0xbc]
mov eax, ebx
call fcn.00466030
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1b8], 0
jne 0x466bce
mov eax, ebx
call fcn.00465f20
or esi, 0xffffffff
mov byte [ebx + 0x20], 0
cmp dword [ebp - 0xc], 0
jne 0x4669bf
lea ecx, [ebp - 0x34]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x1c]
mov edi, dword [eax]
call dword [edi + 0x38]
cmp dword [ebp - 0x34], 0
jne 0x466956
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1b8], 0
je 0x466936
lea edx, [ebp - 0xc0]
mov eax, dword [ebp - 0x34]
call fcn.00408408
mov edx, dword [ebp - 0xc0]
mov eax, 0x466dd4
call fcn.00404b74
dec eax
jne 0x46698e
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 0x34]
mov eax, ebx
call fcn.00465f60
jmp 0x4669ab
lea eax, [ebp - 0x34]
mov edx, 0x466de4
call fcn.00404838
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x30]
call fcn.0045ed84
xor eax, eax
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1b8], 0
jne 0x4669ca
cmp dword [ebx + 0x50], 0x64
je 0x466956
jmp 0x4669ca
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x38]
mov edx, 0x466c2c
call fcn.0040497c
setne byte [ebp - 0xd]
mov eax, dword [ebx + 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x466b18
lea ecx, [ebp - 0x34]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x1c]
mov edi, dword [eax]
call dword [edi + 0x38]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp - 0x34], 0
je 0x466b18
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x34]
call fcn.00408408
mov edx, dword [ebp - 0x38]
mov eax, 0x466df0
call fcn.00404b74
dec eax
jne 0x466a6c
lea ecx, [ebp - 0xc8]
mov edx, 0x466db8
mov eax, dword [ebp - 0x34]
call fcn.0045e69c
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc4]
call fcn.00408680
mov eax, dword [ebp - 0xc4]
or edx, 0xffffffff
call fcn.00408960
mov esi, eax
cmp esi, 0xffffffff
je 0x466a6c
cmp byte [ebx + 0x20], 0
jne 0x466a6c
mov byte [ebx + 0x20], 1
mov edx, dword [ebp - 0x38]
mov eax, 0x466e08
call fcn.00404b74
dec eax
jne 0x466aae
lea ecx, [ebp - 0xd0]
mov edx, 0x466db8
mov eax, dword [ebp - 0x34]
call fcn.0045e69c
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xcc]
call fcn.00408680
mov edx, dword [ebp - 0xcc]
lea eax, [ebx + 0x34]
call fcn.004045c4
mov edx, dword [ebp - 0x38]
mov eax, 0x466e20
call fcn.00404b74
dec eax
jne 0x466af4
lea ecx, [ebp - 0xd4]
mov edx, 0x466db8
mov eax, dword [ebp - 0x38]
call fcn.0045e69c
mov eax, dword [ebp - 0xd4]
lea edx, [ebp - 0x34]
call fcn.00408680
mov edx, dword [ebp - 0x34]
mov eax, 0x466e3c
call fcn.00404b74
test eax, eax
jle 0x466af4
mov byte [ebx + 0x20], 2
mov edx, dword [ebp - 0x38]
mov eax, 0x466e4c
call fcn.00404b74
dec eax
jne 0x466b08
mov byte [ebp - 0xd], 1
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1b8], 0
je 0x4669eb
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1b8], 0
sete byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x466bce
mov eax, dword [ebp - 4]
mov edx, 0x466e68
call fcn.0040497c
setne al
test al, al
je 0x466b4d
cmp dword [ebx + 0x50], 0xcc
jne 0x466b51
xor eax, eax
jmp 0x466b53
mov al, 1
test al, al
je 0x466b60
cmp dword [ebx + 0x50], 0x130
jne 0x466b64
xor eax, eax
jmp 0x466b66
mov al, 1
test al, al
je 0x466b9d
mov al, byte [ebx + 0x20]
sub al, 1
jb 0x466b79
je 0x466b85
dec al
je 0x466b93
jmp 0x466b9d
mov eax, ebx
call fcn.00466e70
mov byte [ebp - 5], al
jmp 0x466b9d
mov edx, esi
mov eax, ebx
call fcn.00466efc
mov byte [ebp - 5], al
jmp 0x466b9d
mov eax, ebx
call fcn.00466f3c
mov byte [ebp - 5], al
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + 0x30]
mov esi, dword [eax]
call dword [esi + 0x14]
cmp byte [ebp - 0xd], 0
je 0x466bc7
mov eax, dword [ebx + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
lea eax, [ebx + 0x24]
call fcn.00404570
lea eax, [ebx + 0x28]
call fcn.00404570
mov eax, ebx
call fcn.00467060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466c08
lea eax, [ebp - 0xd4]
mov edx, 0x25
call fcn.00404594
lea eax, [ebp - 0x38]
mov edx, 0xa
call fcn.00404594
lea eax, [ebp - 0xc]
call fcn.00404570
ret