Function at 0x471998
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x16
push 0
push 0
dec ecx
jne 0x4719a1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x30], edx
mov esi, eax
xor eax, eax
push ebp
push 0x47235d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x31], 0
mov dword [esi + 0x48], 0x1f4
lea eax, [esi + 0x4c]
call fcn.004050d0
xor eax, eax
mov dword [esi + 0x58], eax
xor eax, eax
mov dword [esi + 0x5c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0046a448
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.00409610
mov eax, dword [ebp - 0x40]
mov edx, 0x472378
call fcn.004054f8
jne 0x471a69
cmp dword [esi + 0x38], 0
setne byte [ebp - 0x35]
mov eax, dword [esi + 0x14]
add eax, 0x39c
mov edx, dword [esi + 0x38]
call fcn.00405124
mov eax, dword [esi + 0x14]
add eax, 0x3a0
mov edx, dword [esi + 0x3c]
call fcn.00405124
mov eax, dword [esi + 0x14]
add eax, 0x3b0
mov edx, dword [esi + 0x40]
call fcn.00405124
mov eax, dword [esi + 0x14]
add eax, 0x3b4
mov edx, dword [esi + 0x44]
call fcn.00405124
jmp 0x471aa1
mov byte [ebp - 0x35], 0
mov eax, dword [esi + 0x14]
add eax, 0x39c
call fcn.004050d0
mov eax, dword [esi + 0x14]
add eax, 0x3a0
call fcn.004050d0
mov eax, dword [esi + 0x14]
add eax, 0x3b0
call fcn.004050d0
mov eax, dword [esi + 0x14]
add eax, 0x3b4
call fcn.004050d0
mov eax, dword [esi + 0x28]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x471ab5
cmp eax, 0
seta al
jmp 0x471ab8
setg al
mov byte [ebp - 0x32], al
movzx eax, byte [esi + 0x35]
and al, byte [ebp - 0x32]
je 0x471ad3
mov eax, dword [esi + 0x30]
mov edx, 0x472388
call fcn.004054f8
je 0x471ad7
xor eax, eax
jmp 0x471ad9
mov al, 1
mov byte [ebp - 0x33], al
cmp byte [ebp - 0x33], 0
je 0x471af1
mov ecx, 0x472394
xor edx, edx
mov eax, dword [esi + 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp byte [ebp - 0x32], 0
je 0x471b48
mov eax, dword [esi + 0x28]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.00409d10
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 0x4723b4
call fcn.004053e8
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov eax, dword [esi + 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp dword [esi + 0x2c], 0
je 0x471b48
lea eax, [ebp - 0x4c]
mov ecx, dword [esi + 0x2c]
mov edx, 0x4723d0
call fcn.004053e8
mov ecx, dword [ebp - 0x4c]
xor edx, edx
mov eax, dword [esi + 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp dword [esi + 0x50], 0
je 0x471b6b
lea eax, [ebp - 0x50]
mov ecx, dword [esi + 0x50]
mov edx, 0x4723e8
call fcn.004053e8
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov eax, dword [esi + 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp dword [esi + 0x64], 0
jle 0x471bb1
push 0x472400
lea edx, [ebp - 0x58]
mov eax, dword [esi + 0x60]
call fcn.00409c24
push dword [ebp - 0x58]
push 0x472418
lea edx, [ebp - 0x5c]
mov eax, dword [esi + 0x64]
call fcn.00409c24
push dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.00405464
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov eax, dword [esi + 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [esi + 0x54]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x471bf9
inc ebx
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x64]
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi + 0x54]
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
mov edx, 0x472424
call fcn.004053e8
mov ecx, dword [ebp - 0x60]
xor edx, edx
mov eax, dword [esi + 0x24]
mov edi, dword [eax]
call dword [edi + 0x60]
inc dword [ebp - 0x3c]
dec ebx
jne 0x471bc8
cmp byte [esi + 0x34], 0
jne 0x471c0e
mov ecx, 0x472438
xor edx, edx
mov eax, dword [esi + 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp dword [ebp - 0xc], 0
je 0x471c54
push dword [ebp - 0xc]
push 0x472454
push dword [ebp - 0x10]
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.00405464
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.0046ad44
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x472460
call fcn.004053e8
mov ecx, dword [ebp - 0x68]
xor edx, edx
mov eax, dword [esi + 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp dword [esi + 0x38], 0
je 0x471ca6
cmp dword [esi + 0x40], 0
je 0x471ca6
cmp byte [ebp - 0x35], 0
jne 0x471ca6
push dword [esi + 0x40]
push 0x472454
push dword [esi + 0x44]
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.00405464
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
call fcn.0046ad44
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, 0x472480
call fcn.004053e8
mov ecx, dword [ebp - 0x74]
xor edx, edx
mov eax, dword [esi + 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 0x14]
call fcn.0046a090
test al, al
je 0x471cce
push 0x4724a4
push dword [ebp - 0x14]
push 0x4724b0
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00405464
jmp 0x471cd9
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
call fcn.00405168
mov eax, dword [ebp - 0x18]
mov edx, 0x4724bc
call fcn.004054f8
je 0x471d14
push 0x4724c8
push dword [ebp - 0x28]
push 0x472454
push dword [ebp - 0x18]
lea eax, [ebp - 0x80]
mov edx, 4
call fcn.00405464
mov ecx, dword [ebp - 0x80]
xor edx, edx
mov eax, dword [esi + 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x60]
jmp 0x471d37
lea eax, [ebp - 0x84]
mov ecx, dword [ebp - 0x28]
mov edx, 0x4724c8
call fcn.004053e8
mov ecx, dword [ebp - 0x84]
xor edx, edx
mov eax, dword [esi + 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp dword [esi + 0x38], 0
je 0x471d66
cmp byte [ebp - 0x35], 0
jne 0x471d66
push dword [ebp - 8]
push 0x4724d8
push dword [ebp - 0x28]
push 0x472454
push dword [ebp - 0x18]
push dword [ebp - 0x24]
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.00405464
mov eax, dword [ebp - 0x24]
mov edx, 0x4724e4
call fcn.004054f8
jne 0x471d82
lea eax, [ebp - 0x24]
mov edx, 0x4724f0
call fcn.00405168
mov eax, dword [esi + 0x30]
mov edx, 0x4724fc
call fcn.004054f8
jne 0x471dcf
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x30]
call fcn.00409610
push dword [ebp - 0x8c]
push 0x472508
push dword [ebp - 0x24]
lea eax, [ebp - 0x88]
mov edx, 3
call fcn.00405464
mov ecx, dword [ebp - 0x88]
xor edx, edx
mov eax, dword [esi + 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x60]
jmp 0x471e13
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x30]
call fcn.00409610
push dword [ebp - 0x94]
push 0x472508
push dword [ebp - 0x24]
push 0x472514
push dword [esi + 0x30]
lea eax, [ebp - 0x90]
mov edx, 5
call fcn.00405464
mov ecx, dword [ebp - 0x90]
xor edx, edx
mov eax, dword [esi + 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp dword [esi + 0x38], 0
je 0x471e37
cmp byte [ebp - 0x35], 0
jne 0x471e37
lea eax, [esi + 4]
mov edx, dword [esi + 0x38]
call fcn.00405124
lea eax, [esi + 8]
mov edx, dword [esi + 0x3c]
call fcn.00405124
jmp 0x471e4d
lea eax, [esi + 4]
mov edx, dword [ebp - 0x14]
call fcn.00405124
lea eax, [esi + 8]
mov edx, dword [ebp - 0x18]
call fcn.00405124
mov ebx, dword [esi + 0x24]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
lea ecx, [ebp - 0x98]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x98], 0
je 0x471e7a
xor edx, edx
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 4]
call fcn.004054f8
jne 0x471e98
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 8]
call fcn.004054f8
je 0x471f2e
mov eax, dword [esi + 0x14]
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, 0x472524
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
call fcn.0046cee8
mov ebx, dword [esi + 0x14]
cmp dword [ebx + 0x32c], 0
jne 0x472332
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 8]
call fcn.00409610
mov eax, dword [ebp - 0x9c]
mov edx, 0x472378
call fcn.004054f8
sete dl
mov eax, ebx
call fcn.00471190
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x32c], 0
jne 0x472332
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x32c], 0
jne 0x472332
lea eax, [esi + 0x1c]
mov edx, dword [esi + 4]
call fcn.00405124
lea eax, [esi + 0x20]
mov edx, dword [esi + 8]
call fcn.00405124
jmp 0x471fb7
xor edx, edx
mov eax, dword [esi + 0x14]
call fcn.0046e554
test al, al
je 0x471fb7
mov eax, dword [esi + 0x14]
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, 0x472524
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
call fcn.0046cee8
mov ebx, dword [esi + 0x14]
cmp dword [ebx + 0x32c], 0
jne 0x472332
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 8]
call fcn.00409610
mov eax, dword [ebp - 0xa0]
mov edx, 0x472378
call fcn.004054f8
sete dl
mov eax, ebx
call fcn.00471190
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x32c], 0
jne 0x472332
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x32c], 0
jne 0x472332
mov eax, dword [esi + 0x30]
mov edx, 0x4724fc
call fcn.004054f8
jne 0x471ff6
lea ecx, [ebp - 0xa4]
xor edx, edx
mov eax, dword [esi + 0x24]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0xa4]
mov edx, 0x472530
call fcn.0040539c
mov edx, dword [ebp - 0xa4]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x18]
jmp 0x472012
lea edx, [ebp - 0xa8]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0xa8]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x32c], 0
jne 0x472332
lea eax, [ebp - 4]
call fcn.004050d0
cmp byte [ebp - 0x33], 0
je 0x47209a
lea ecx, [ebp - 0x28]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x34]
cmp dword [ebp - 0x28], 0
jne 0x472050
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x32c], 0
je 0x472030
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.004718e8
mov eax, dword [esi + 0x48]
cmp eax, 0x64
jl 0x47208b
cmp eax, 0xc8
jge 0x47208b
lea ecx, [ebp - 0x28]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x34]
cmp dword [ebp - 0x28], 0
je 0x47209a
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x32c], 0
je 0x472069
jmp 0x47209a
mov byte [ebp - 0x32], 0
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x28]
call fcn.00405168
cmp byte [ebp - 0x32], 0
je 0x4720d0
mov eax, dword [esi + 0x28]
mov edx, dword [eax]
call dword [edx]
mov dword [esi + 0x5c], eax
mov ebx, dword [esi + 0x28]
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [ebx + 4]
mov eax, dword [esi + 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x32c], 0
jne 0x472332
mov eax, esi
call fcn.004718a8
or ebx, 0xffffffff
mov byte [esi + 0x18], 0
cmp dword [ebp - 4], 0
jne 0x47216d
lea ecx, [ebp - 0x28]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov edi, dword [eax]
call dword [edi + 0x34]
cmp dword [ebp - 0x28], 0
jne 0x472108
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x32c], 0
je 0x4720e8
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0x28]
call fcn.00409610
mov edx, dword [ebp - 0xac]
mov eax, 0x47253c
call fcn.004056ac
dec eax
jne 0x472140
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.004718e8
jmp 0x472178
lea eax, [ebp - 0x28]
mov edx, 0x472530
call fcn.0040539c
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x472159
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0x28]
mov ecx, eax
mov eax, dword [esi + 0x28]
mov edi, dword [eax]
call dword [edi + 0x10]
xor eax, eax
mov dword [esi + 0x48], eax
jmp 0x472178
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 0x30]
mov edx, 0x472388
call fcn.004054f8
setne byte [ebp - 0x34]
mov eax, dword [esi + 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x47228d
lea ecx, [ebp - 0x28]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov edi, dword [eax]
call dword [edi + 0x34]
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp - 0x28], 0
je 0x47228d
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.00409610
mov edx, dword [ebp - 0x2c]
mov eax, 0x47254c
call fcn.004056ac
dec eax
jne 0x472203
lea ecx, [ebp - 0xb0]
mov edx, 0x472508
mov eax, dword [ebp - 0x28]
call fcn.0046a3b8
mov eax, dword [ebp - 0xb0]
or edx, 0xffffffff
call fcn.00409d9c
mov ebx, eax
cmp ebx, 0xffffffff
je 0x472203
mov byte [esi + 0x18], 1
mov edx, dword [ebp - 0x2c]
mov eax, 0x472564
call fcn.004056ac
dec eax
jne 0x472234
lea ecx, [ebp - 0xb4]
mov edx, 0x472508
mov eax, dword [ebp - 0x28]
call fcn.0046a3b8
mov edx, dword [ebp - 0xb4]
lea eax, [esi + 0x2c]
call fcn.00405124
mov edx, dword [ebp - 0x2c]
mov eax, 0x47257c
call fcn.004056ac
dec eax
jne 0x472269
lea ecx, [ebp - 0x28]
mov edx, 0x472508
mov eax, dword [ebp - 0x2c]
call fcn.0046a3b8
mov edx, dword [ebp - 0x28]
mov eax, 0x472598
call fcn.004056ac
test eax, eax
jle 0x472269
mov byte [esi + 0x18], 2
mov edx, dword [ebp - 0x2c]
mov eax, 0x4725a8
call fcn.004056ac
dec eax
jne 0x47227d
mov byte [ebp - 0x34], 1
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x32c], 0
je 0x472199
mov eax, dword [ebp - 0x30]
mov edx, 0x4725c4
call fcn.004054f8
setne al
test al, al
je 0x4722aa
cmp dword [esi + 0x48], 0xcc
jne 0x4722ae
xor eax, eax
jmp 0x4722b0
mov al, 1
test al, al
je 0x4722bd
cmp dword [esi + 0x48], 0x130
jne 0x4722c1
xor eax, eax
jmp 0x4722c3
mov al, 1
test al, al
je 0x4722fd
movzx eax, byte [esi + 0x18]
sub al, 1
jb 0x4722d7
je 0x4722e3
dec al
je 0x4722f1
jmp 0x472301
mov eax, esi
call fcn.004725cc
mov byte [ebp - 0x31], al
jmp 0x472301
mov edx, ebx
mov eax, esi
call fcn.00472648
mov byte [ebp - 0x31], al
jmp 0x472301
mov eax, esi
call fcn.004727ac
mov byte [ebp - 0x31], al
jmp 0x472301
mov byte [ebp - 0x31], 1
xor ecx, ecx
xor edx, edx
mov eax, dword [esi + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x14]
cmp byte [ebp - 0x34], 0
je 0x47232b
mov eax, dword [esi + 0x14]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0x1c]
call fcn.004050d0
lea eax, [esi + 0x20]
call fcn.004050d0
mov eax, esi
call fcn.0047287c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472364
lea eax, [ebp - 0xb4]
mov edx, 0x1e
call fcn.004050f4
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.004050f4
ret