Function at 0x491340
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593384
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1cc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x30], esi
call fcn.004b2cf0
mov dword [ebp - 4], 0
mov dword [esi], 0x5bb8c8
mov bl, 1
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
mov dword [esi + 0x3c], eax
mov ecx, dword [0x641ea8]
push ecx
mov edx, dword [0x641ea4]
push edx
mov ecx, esi
call fcn.004bbc90
push 0x3c
call fcn.0056c38c
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x4913d3
push 0
push 0
lea ecx, [ebp - 0x4c]
call fcn.004b2e60
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push str.Tibia_Classic_Control
mov ecx, edi
call fcn.0047c7c0
jmp 0x4913d5
xor eax, eax
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], bl
mov dword [esi + 0x34], eax
push 0x3c
call fcn.0056c38c
add esp, 4
mov edi, eax
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x491416
push 0
push 0
lea ecx, [ebp - 0x5c]
call fcn.004b2e60
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push str.Auto_Chase_Off
mov ecx, edi
call fcn.0047c7c0
jmp 0x491418
xor eax, eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], bl
mov dword [esi + 0x38], eax
push 0x3c
call fcn.0056c38c
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x491459
push 0
push 0
lea ecx, [ebp - 0x54]
call fcn.004b2e60
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push str.Show_Names_of_Creatures
mov ecx, edi
call fcn.0047c7c0
jmp 0x49145b
xor eax, eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], bl
mov dword [esi + 0x30], eax
push 0x3c
call fcn.0056c38c
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 5
test edi, edi
je 0x49149c
push 0
push 0
lea ecx, [ebp - 0x64]
call fcn.004b2e60
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push str.Show_Textual_Effects
mov ecx, edi
call fcn.0047c7c0
jmp 0x49149e
xor eax, eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], bl
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x34]
push eax
mov ecx, esi
call fcn.004bbf10
mov ecx, dword [esi + 0x38]
push ecx
mov ecx, esi
call fcn.004bbf10
mov edx, dword [esi + 0x30]
push edx
mov ecx, esi
call fcn.004bbf10
mov eax, dword [esi + 0x2c]
push eax
mov ecx, esi
call fcn.004bbf10
sub esp, 0x10
mov ecx, esp
mov edx, dword [0x641eac]
mov dword [ecx], edx
mov eax, dword [0x641eb0]
mov dword [ecx + 4], eax
mov edx, dword [0x641eb4]
mov dword [ecx + 8], edx
mov eax, dword [0x641eb8]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x34]
push ecx
mov ecx, esi
call fcn.004bf3c0
sub esp, 0x10
mov edx, esp
mov eax, dword [0x641ebc]
mov dword [edx], eax
mov ecx, dword [0x641ec0]
mov dword [edx + 4], ecx
mov eax, dword [0x641ec4]
mov dword [edx + 8], eax
mov ecx, dword [0x641ec8]
mov dword [edx + 0xc], ecx
mov edx, dword [esi + 0x38]
push edx
mov ecx, esi
call fcn.004bf3c0
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x641edc]
mov dword [eax], ecx
mov edx, dword [0x641ee0]
mov dword [eax + 4], edx
mov ecx, dword [0x641ee4]
mov dword [eax + 8], ecx
mov edx, dword [0x641ee8]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x30]
push eax
mov ecx, esi
call fcn.004bf3c0
sub esp, 0x10
mov ecx, esp
mov edx, dword [0x641ecc]
mov dword [ecx], edx
mov eax, dword [0x641ed0]
mov dword [ecx + 4], eax
mov edx, dword [0x641ed4]
mov dword [ecx + 8], edx
mov eax, dword [0x641ed8]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x2c]
push ecx
mov ecx, esi
call fcn.004bf3c0
mov edx, dword [esi + 0x34]
mov edi, dword [edx]
call fcn.00507f10
push eax
mov ecx, dword [esi + 0x34]
call dword [edi + 0xa0]
mov eax, dword [esi + 0x38]
mov edi, dword [eax]
call fcn.00507f20
push eax
mov ecx, dword [esi + 0x38]
call dword [edi + 0xa0]
mov ecx, dword [esi + 0x30]
mov edi, dword [ecx]
call fcn.00507ca0
test eax, eax
setne dl
push edx
mov ecx, dword [esi + 0x30]
call dword [edi + 0xa0]
mov eax, dword [esi + 0x2c]
mov edi, dword [eax]
call fcn.00507c90
push eax
mov ecx, dword [esi + 0x2c]
call dword [edi + 0xa0]
mov ecx, esi
call fcn.004bda60
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4