Function at 0x49c5bc
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x18
push 0
push 0
dec ecx
jne 0x49c5c5
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 0x49d002
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.00404860
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.00494140
cmp dword [ebp - 0x18], 0
jne 0x49c645
lea eax, [ebp - 0x18]
mov edx, dword [ebx + 0x14]
call fcn.004048f8
lea eax, [ebp - 0x1c]
mov edx, dword [ebx + 0x18]
call fcn.004048f8
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x14]
call fcn.00408cf8
mov eax, dword [ebp - 0x44]
mov edx, 0x49d01c
call fcn.00404c5c
jne 0x49c6a9
cmp dword [ebx + 0x40], 0
setne byte [ebp - 0x39]
mov eax, dword [ebx + 0x1c]
add eax, 0x214
mov edx, dword [ebx + 0x40]
call fcn.004048b4
mov eax, dword [ebx + 0x1c]
add eax, 0x218
mov edx, dword [ebx + 0x44]
call fcn.004048b4
mov eax, dword [ebx + 0x1c]
add eax, 0x228
mov edx, dword [ebx + 0x48]
call fcn.004048b4
mov eax, dword [ebx + 0x1c]
add eax, 0x22c
mov edx, dword [ebx + 0x4c]
call fcn.004048b4
jmp 0x49c6e1
mov byte [ebp - 0x39], 0
mov eax, dword [ebx + 0x1c]
add eax, 0x214
call fcn.00404860
mov eax, dword [ebx + 0x1c]
add eax, 0x218
call fcn.00404860
mov eax, dword [ebx + 0x1c]
add eax, 0x228
call fcn.00404860
mov eax, dword [ebx + 0x1c]
add eax, 0x22c
call fcn.00404860
mov eax, dword [ebx + 0x30]
call fcn.004208a8
cmp edx, 0
jne 0x49c6f6
cmp eax, 0
seta al
jmp 0x49c6f9
setg al
mov byte [ebp - 6], al
mov al, byte [ebx + 0x3d]
and al, byte [ebp - 6]
je 0x49c713
mov eax, dword [ebx + 0x38]
mov edx, 0x49d02c
call fcn.00404c5c
je 0x49c717
xor eax, eax
jmp 0x49c719
mov al, 1
mov byte [ebp - 7], al
cmp byte [ebp - 7], 0
je 0x49c731
mov ecx, 0x49d038
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
mov eax, dword [ebx + 0x30]
call fcn.004208a8
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.00409294
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
mov edx, 0x49d058
call fcn.00404b64
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
cmp byte [ebp - 6], 0
je 0x49c789
cmp dword [ebx + 0x34], 0
je 0x49c789
lea eax, [ebp - 0x50]
mov ecx, dword [ebx + 0x34]
mov edx, 0x49d074
call fcn.00404b64
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 0x49c7ac
lea eax, [ebp - 0x54]
mov ecx, dword [ebx + 0x58]
mov edx, 0x49d08c
call fcn.00404b64
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
cmp dword [ebx + 0x6c], 0
jle 0x49c7f2
push 0x49d0a4
lea edx, [ebp - 0x5c]
mov eax, dword [ebx + 0x68]
call fcn.00409264
push dword [ebp - 0x5c]
push 0x49d0bc
lea edx, [ebp - 0x60]
mov eax, dword [ebx + 0x6c]
call fcn.00409264
push dword [ebp - 0x60]
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404bd8
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
lea eax, [ebp - 0x34]
call fcn.00404860
mov eax, dword [ebx + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x49c843
inc esi
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x34], 0
je 0x49c824
lea eax, [ebp - 0x34]
mov edx, 0x49d0c8
call fcn.00404b20
lea ecx, [ebp - 0x64]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebx + 0x5c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x34]
call fcn.00404b20
inc dword [ebp - 0x40]
dec esi
jne 0x49c811
cmp dword [ebp - 0x34], 0
je 0x49c866
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x34]
mov edx, 0x49d0d4
call fcn.00404b64
mov ecx, dword [ebp - 0x68]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
cmp byte [ebx + 0x3c], 0
jne 0x49c87b
mov ecx, 0x49d0e8
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
cmp dword [ebp - 0x18], 0
je 0x49c8c1
push dword [ebp - 0x18]
push 0x49d104
push dword [ebp - 0x1c]
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.00404bd8
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.004949e4
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x49d110
call fcn.00404b64
mov ecx, dword [ebp - 0x6c]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
cmp dword [ebx + 0x40], 0
je 0x49c913
cmp dword [ebx + 0x48], 0
je 0x49c913
cmp byte [ebp - 0x39], 0
jne 0x49c913
push dword [ebx + 0x48]
push 0x49d104
push dword [ebx + 0x4c]
lea eax, [ebp - 0x80]
mov edx, 3
call fcn.00404bd8
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
call fcn.004949e4
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 0x49d130
call fcn.00404b64
mov ecx, dword [ebp - 0x78]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
mov eax, dword [ebp - 0x20]
call fcn.00493ddc
test al, al
je 0x49c93b
push 0x49d154
push dword [ebp - 0x20]
push 0x49d160
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404bd8
jmp 0x49c946
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x20]
call fcn.004048f8
mov eax, dword [ebp - 0x24]
mov edx, 0x49d16c
call fcn.00404c5c
je 0x49c987
push 0x49d178
push dword [ebp - 0x34]
push 0x49d104
push dword [ebp - 0x24]
lea eax, [ebp - 0x84]
mov edx, 4
call fcn.00404bd8
mov ecx, dword [ebp - 0x84]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
jmp 0x49c9aa
lea eax, [ebp - 0x88]
mov ecx, dword [ebp - 0x34]
mov edx, 0x49d178
call fcn.00404b64
mov ecx, dword [ebp - 0x88]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
cmp dword [ebx + 0x40], 0
je 0x49c9d9
cmp byte [ebp - 0x39], 0
jne 0x49c9d9
push dword [ebp - 0x14]
push 0x49d188
push dword [ebp - 0x34]
push 0x49d104
push dword [ebp - 0x24]
push dword [ebp - 0x30]
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00404bd8
mov eax, dword [ebp - 0x30]
mov edx, 0x49d194
call fcn.00404c5c
jne 0x49c9f5
lea eax, [ebp - 0x30]
mov edx, 0x49d1a0
call fcn.004048f8
mov eax, dword [ebx + 0x38]
mov edx, 0x49d1ac
call fcn.00404c5c
jne 0x49ca42
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 4]
call fcn.00408cf8
push dword [ebp - 0x90]
push 0x49d1b8
push dword [ebp - 0x30]
lea eax, [ebp - 0x8c]
mov edx, 3
call fcn.00404bd8
mov ecx, dword [ebp - 0x8c]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
jmp 0x49ca86
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 4]
call fcn.00408cf8
push dword [ebp - 0x98]
push 0x49d1b8
push dword [ebp - 0x30]
push 0x49d1c4
push dword [ebx + 0x38]
lea eax, [ebp - 0x94]
mov edx, 5
call fcn.00404bd8
mov ecx, dword [ebp - 0x94]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0x60]
cmp dword [ebx + 0x40], 0
je 0x49caaa
cmp byte [ebp - 0x39], 0
jne 0x49caaa
lea eax, [ebx + 4]
mov edx, dword [ebx + 0x40]
call fcn.004048b4
lea eax, [ebx + 8]
mov edx, dword [ebx + 0x44]
call fcn.004048b4
jmp 0x49cac0
lea eax, [ebx + 4]
mov edx, dword [ebp - 0x20]
call fcn.004048b4
lea eax, [ebx + 8]
mov edx, dword [ebp - 0x24]
call fcn.004048b4
mov esi, dword [ebx + 0x2c]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
lea ecx, [ebp - 0x9c]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0xc]
cmp dword [ebp - 0x9c], 0
je 0x49caed
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 4]
call fcn.00404c5c
jne 0x49cb0b
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 8]
call fcn.00404c5c
je 0x49cba1
mov eax, dword [ebx + 0x1c]
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, 0x49d1d4
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x1c]
call fcn.00497570
mov esi, dword [ebx + 0x1c]
cmp dword [esi + 0x1a8], 0
jne 0x49cfcf
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x14]
call fcn.00408cf8
mov eax, dword [ebp - 0xa0]
mov edx, 0x49d01c
call fcn.00404c5c
sete dl
mov eax, esi
call fcn.0049b95c
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1a8], 0
jne 0x49cfcf
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1a8], 0
jne 0x49cfcf
lea eax, [ebx + 0x24]
mov edx, dword [ebx + 4]
call fcn.004048b4
lea eax, [ebx + 0x28]
mov edx, dword [ebx + 8]
call fcn.004048b4
jmp 0x49cc2a
xor edx, edx
mov eax, dword [ebx + 0x1c]
call fcn.00498d60
test al, al
je 0x49cc2a
mov eax, dword [ebx + 0x1c]
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, 0x49d1d4
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x1c]
call fcn.00497570
mov esi, dword [ebx + 0x1c]
cmp dword [esi + 0x1a8], 0
jne 0x49cfcf
lea edx, [ebp - 0xa4]
mov eax, dword [ebp - 0x14]
call fcn.00408cf8
mov eax, dword [ebp - 0xa4]
mov edx, 0x49d01c
call fcn.00404c5c
sete dl
mov eax, esi
call fcn.0049b95c
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1a8], 0
jne 0x49cfcf
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1a8], 0
jne 0x49cfcf
mov eax, dword [ebx + 0x38]
mov edx, 0x49d1ac
call fcn.00404c5c
jne 0x49cc69
lea ecx, [ebp - 0xa8]
xor edx, edx
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
call dword [esi + 0xc]
lea eax, [ebp - 0xa8]
mov edx, 0x49d1e0
call fcn.00404b20
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x18]
jmp 0x49cc85
lea edx, [ebp - 0xac]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0xac]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1a8], 0
jne 0x49cfcf
lea eax, [ebp - 0xc]
call fcn.00404860
cmp byte [ebp - 7], 0
je 0x49cd0d
lea ecx, [ebp - 0x34]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x1c]
mov esi, dword [eax]
call dword [esi + 0x44]
cmp dword [ebp - 0x34], 0
jne 0x49ccc3
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1a8], 0
je 0x49cca3
mov edx, dword [ebp - 0x34]
mov eax, ebx
call fcn.0049c4ec
mov eax, dword [ebx + 0x50]
cmp eax, 0x64
jl 0x49ccfe
cmp eax, 0xc8
jge 0x49ccfe
lea ecx, [ebp - 0x34]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x1c]
mov esi, dword [eax]
call dword [esi + 0x44]
cmp dword [ebp - 0x34], 0
je 0x49cd0d
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1a8], 0
je 0x49ccdc
jmp 0x49cd0d
mov byte [ebp - 6], 0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x34]
call fcn.004048f8
cmp byte [ebp - 6], 0
je 0x49cd45
mov eax, dword [ebx + 0x30]
call fcn.004208a8
mov dword [ebx + 0x64], eax
mov esi, dword [ebx + 0x30]
mov eax, esi
call fcn.004208a8
mov ecx, eax
mov edx, dword [esi + 4]
mov eax, dword [ebx + 0x1c]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1a8], 0
jne 0x49cfcf
mov eax, ebx
call fcn.0049c4ac
or esi, 0xffffffff
mov byte [ebx + 0x20], 0
cmp dword [ebp - 0xc], 0
jne 0x49cdd0
lea ecx, [ebp - 0x34]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x1c]
mov edi, dword [eax]
call dword [edi + 0x44]
cmp dword [ebp - 0x34], 0
jne 0x49cd79
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1a8], 0
je 0x49cd59
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0x34]
call fcn.00408cf8
mov edx, dword [ebp - 0xb0]
mov eax, 0x49d1ec
call fcn.00404e54
dec eax
jne 0x49cdb1
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.0049c4ec
jmp 0x49cddb
lea eax, [ebp - 0x34]
mov edx, 0x49d1e0
call fcn.00404b20
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x30]
call fcn.0049476c
xor eax, eax
mov dword [ebx + 0x50], eax
jmp 0x49cddb
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, 0x49d02c
call fcn.00404c5c
setne byte [ebp - 0xd]
mov eax, dword [ebx + 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x49cf23
lea ecx, [ebp - 0x34]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x1c]
mov edi, dword [eax]
call dword [edi + 0x44]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp - 0x34], 0
je 0x49cf23
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x34]
call fcn.00408cf8
mov edx, dword [ebp - 0x38]
mov eax, 0x49d1fc
call fcn.00404e54
dec eax
jne 0x49ce77
lea ecx, [ebp - 0xb8]
mov edx, 0x49d1b8
mov eax, dword [ebp - 0x34]
call fcn.00494100
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.00408f48
mov eax, dword [ebp - 0xb4]
or edx, 0xffffffff
call fcn.00409340
mov esi, eax
cmp esi, 0xffffffff
je 0x49ce77
mov byte [ebx + 0x20], 1
mov edx, dword [ebp - 0x38]
mov eax, 0x49d214
call fcn.00404e54
dec eax
jne 0x49ceb9
lea ecx, [ebp - 0xc0]
mov edx, 0x49d1b8
mov eax, dword [ebp - 0x34]
call fcn.00494100
mov eax, dword [ebp - 0xc0]
lea edx, [ebp - 0xbc]
call fcn.00408f48
mov edx, dword [ebp - 0xbc]
lea eax, [ebx + 0x34]
call fcn.004048b4
mov edx, dword [ebp - 0x38]
mov eax, 0x49d22c
call fcn.00404e54
dec eax
jne 0x49ceff
lea ecx, [ebp - 0xc4]
mov edx, 0x49d1b8
mov eax, dword [ebp - 0x38]
call fcn.00494100
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0x34]
call fcn.00408f48
mov edx, dword [ebp - 0x34]
mov eax, 0x49d248
call fcn.00404e54
test eax, eax
jle 0x49ceff
mov byte [ebx + 0x20], 2
mov edx, dword [ebp - 0x38]
mov eax, 0x49d258
call fcn.00404e54
dec eax
jne 0x49cf13
mov byte [ebp - 0xd], 1
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1a8], 0
je 0x49cdfc
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1a8], 0
sete byte [ebp - 5]
mov eax, dword [ebp - 4]
mov edx, 0x49d274
call fcn.00404c5c
setne al
test al, al
je 0x49cf4e
cmp dword [ebx + 0x50], 0xcc
jne 0x49cf52
xor eax, eax
jmp 0x49cf54
mov al, 1
test al, al
je 0x49cf61
cmp dword [ebx + 0x50], 0x130
jne 0x49cf65
xor eax, eax
jmp 0x49cf67
mov al, 1
test al, al
je 0x49cf9e
mov al, byte [ebx + 0x20]
sub al, 1
jb 0x49cf7a
je 0x49cf86
dec al
je 0x49cf94
jmp 0x49cf9e
mov eax, ebx
call fcn.0049d27c
mov byte [ebp - 5], al
jmp 0x49cf9e
mov edx, esi
mov eax, ebx
call fcn.0049d2ec
mov byte [ebp - 5], al
jmp 0x49cf9e
mov eax, ebx
call fcn.0049d32c
mov byte [ebp - 5], al
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + 0x30]
mov esi, dword [eax]
call dword [esi + 0x10]
cmp byte [ebp - 0xd], 0
je 0x49cfc8
mov eax, dword [ebx + 0x1c]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [ebx + 0x24]
call fcn.00404860
lea eax, [ebx + 0x28]
call fcn.00404860
mov eax, ebx
call fcn.0049d418
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d009
lea eax, [ebp - 0xc4]
mov edx, 0x21
call fcn.00404884
lea eax, [ebp - 0x38]
mov edx, 0xa
call fcn.00404884
lea eax, [ebp - 0xc]
call fcn.00404860
ret