Function at 0x496e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60672d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x697398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4c], edi
call fcn.0048f480
test al, al
jne 0x497622
call fcn.00496dc0
test al, al
je 0x496e81
cmp edi, 0xff
jb 0x496e88
push edi
push str.CPythonPlayer::__UseSkill_dwSlotIndex_d__Its_not_available_skill_slot_number
call fcn.004c4410
add esp, 8
xor al, al
jmp 0x497624
lea eax, [edi + edi*4]
mov ecx, esi
push dword [esi + eax*8 + 0xd664]
mov dword [ebp - 0x40], eax
call fcn.00497a80
test al, al
jne 0x497622
mov ecx, dword [0x6e89b8]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x40]
push dword [esi + eax*8 + 0xd664]
call fcn.0049eb80
test eax, eax
jne 0x496ed6
push edi
push str.CPythonPlayer::__UseSkill_dwSlotIndex_d__There_is_no_skill_data
call fcn.004c4410
add esp, 8
xor al, al
jmp 0x497624
mov ecx, dword [ebp - 0x30]
call fcn.004a2480
test eax, eax
je 0x496f0b
push edi
mov ecx, esi
call fcn.0048e920
test eax, eax
je 0x496f0b
mov eax, dword [ebp - 0x40]
mov ecx, dword [0x6e7e30]
push edi
push dword [esi + eax*8 + 0xd664]
call fcn.00481ce0
xor al, al
jmp 0x497624
push edi
mov ecx, esi
call fcn.00496920
test al, al
je 0x496e81
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov dword [ebp - 0x3c], ecx
mov eax, dword [eax + 0x8c]
call eax
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
jne 0x496f4a
push edi
push str.CPythonPlayer::__UseSkill_dwSlotIndex_d__There_is_no_main_player
call fcn.004c4410
add esp, 8
xor al, al
jmp 0x497624
mov ecx, esi
call fcn.00446020
test eax, eax
jne 0x496e81
mov ecx, dword [ebp - 0x30]
xor edi, edi
mov dword [ebp - 0x48], edi
call fcn.004a2470
test eax, eax
jne 0x496f80
call fcn.004a2420
test eax, eax
jne 0x496f80
call fcn.004a2450
test eax, eax
je 0x49723f
call fcn.004a2460
mov ecx, dword [ebp - 0x2c]
test eax, eax
je 0x496f93
call fcn.00490c50
jmp 0x496f98
call fcn.00490c80
mov edi, eax
mov dword [ebp - 0x48], edi
test edi, edi
jne 0x4970de
mov edi, dword [ebp - 0x2c]
mov ecx, edi
call fcn.00490c10
mov ecx, dword [ebp - 0x30]
call fcn.004a2460
mov ecx, edi
test eax, eax
je 0x496fc4
call fcn.00490c50
jmp 0x496fc9
call fcn.00490c80
mov edi, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x4970de
mov ecx, dword [ebp - 0x30]
call fcn.004a2450
test eax, eax
je 0x49704b
movss xmm2, dword [0x6577d0]
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.00445320
mov edi, dword [ebp - 0x3c]
mov edx, dword [edi]
mov dword [ebp - 0x38], edx
test al, al
je 0x49703e
mov esi, dword [ebp - 0x34]
mov ecx, esi
call fcn.00443740
push 0
push 1
push eax
mov eax, dword [ebp - 0x38]
mov ecx, edi
call dword [eax + 0x64]
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
mov ecx, edi
push eax
push esi
mov esi, dword [ebp - 0x44]
push esi
call fcn.00496c90
test al, al
je 0x496e81
mov ecx, dword [ebp - 0x30]
jmp 0x49704e
mov eax, dword [edx + 4]
push str.NEED_TARGET
jmp 0x49710c
mov edi, dword [ebp - 0x2c]
call fcn.004a2500
test eax, eax
je 0x497076
mov edi, esi
mov ecx, esi
push esi
mov dword [ebp - 0x48], edi
call fcn.00444f30
push str.__ALERT__
call fcn.004c4370
add esp, 4
jmp 0x49723f
mov esi, dword [edi + 4]
call fcn.004a2460
test eax, eax
lea ecx, [edi + 4]
mov eax, dword [esi + 4]
je 0x4970b3
push str.ONLY_FOR_CORPSE
call eax
push eax
push str._is_
call dword [sym.imp.python27.dll_Py_BuildValue]
push eax
push str.OnCannotUseSkill
push dword [edi + 8]
call fcn.0055ff10
add esp, 0x18
xor al, al
jmp 0x497624
push str.NEED_TARGET
call eax
push eax
push str._is_
call dword [sym.imp.python27.dll_Py_BuildValue]
push eax
push str.OnCannotUseSkill
push dword [edi + 8]
call fcn.0055ff10
add esp, 0x18
xor al, al
jmp 0x497624
mov ecx, dword [ebp - 0x30]
call fcn.004a24f0
test eax, eax
je 0x4971db
cmp esi, edi
jne 0x497137
call fcn.004a2500
test eax, eax
jne 0x497219
push str.CANNOT_USE_SELF
mov edi, dword [ebp - 0x3c]
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov ecx, edi
call eax
push eax
push str._is_
call dword [sym.imp.python27.dll_Py_BuildValue]
push eax
mov eax, dword [ebp - 0x2c]
push str.OnCannotUseSkill
push dword [eax + 8]
call fcn.0055ff10
add esp, 0x18
xor al, al
jmp 0x497624
push edi
mov ecx, esi
call fcn.004431c0
test al, al
jne 0x4971b1
mov ecx, edi
call fcn.00443540
test eax, eax
je 0x4971b1
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.00496c70
mov dword [ebp - 0x38], eax
test eax, eax
je 0x497219
push edi
mov ecx, esi
call fcn.004437d0
mov ecx, dword [ebp - 0x38]
movaps xmm2, xmm0
mov eax, ecx
shr eax, 0x1f
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x657870]
cvtpd2ps xmm0, xmm1
comiss xmm2, xmm0
jb 0x497219
push ecx
push dword [ebp - 0x4c]
mov ecx, edi
call fcn.00443740
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.00491880
xor al, al
jmp 0x497624
mov ecx, dword [ebp - 0x30]
call fcn.004a2500
test eax, eax
je 0x4971d1
mov edi, esi
push str.__ALERT_
mov dword [ebp - 0x48], edi
call fcn.004c4370
add esp, 4
jmp 0x497219
push str.ONLY_FOR_ALLIANCE
jmp 0x497104
mov ecx, edi
call fcn.00440d40
test eax, eax
je 0x4971f0
push str.CANNOT_ATTACK_ENEMY_IN_SAFE_AREA
jmp 0x497104
push edi
mov ecx, esi
call fcn.004431c0
test al, al
je 0x497641
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
push eax
push edi
push esi
call fcn.00496c90
test al, al
je 0x496e81
push edi
mov ecx, esi
call fcn.00444f30
cmp esi, edi
je 0x49723f
mov ecx, esi
call fcn.00444f10
mov ecx, esi
test al, al
je 0x497239
call fcn.0044a3d0
jmp 0x49723f
push edi
call fcn.0044a420
mov ecx, dword [ebp - 0x30]
call fcn.004a2420
test eax, eax
je 0x4972aa
test edi, edi
je 0x49725d
cmp edi, esi
je 0x49725d
push edi
mov ecx, esi
call fcn.0044a420
jmp 0x4972aa
lea eax, [ebp - 0x38]
push eax
call fcn.0048cec0
test al, al
je 0x497280
push dword [ebp - 0x38]
call fcn.0048d010
test eax, eax
je 0x4972aa
push eax
mov ecx, esi
call fcn.0044a420
jmp 0x4972aa
lea eax, [ebp - 0x1c]
push eax
call fcn.0048cee0
test al, al
je 0x49729a
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0044a3e0
jmp 0x4972aa
push dword [ebp - 0x4c]
push str.CPythonPlayer::__UseSkill__d____
call fcn.004c4410
add esp, 8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x40]
movss xmm1, dword [eax + ecx*8 + 0xd674]
mov ecx, dword [ebp - 0x30]
call fcn.004a2f10
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.00496c70
cmp dword [ebp - 0x34], 0
mov dword [ebp - 0x38], eax
jbe 0x49758f
test edi, edi
je 0x49758f
mov edx, 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
call fcn.004a2430
test eax, eax
je 0x49746c
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
mov eax, dword [ebp - 0x38]
push edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x657870]
cvtpd2ps xmm1, xmm0
call fcn.004454e0
test al, al
je 0x497530
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push dword [edx + eax*8 + 0xd66c]
call fcn.004a3040
mov esi, eax
mov eax, dword [ebp - 0x40]
movss xmm1, dword [edx + eax*8 + 0xd674]
call fcn.004a30b0
mov ecx, dword [ebp - 0x30]
mov edx, eax
call fcn.004a2550
test eax, eax
mov eax, dword [ebp - 0x2c]
setne cl
push ecx
mov ecx, dword [ebp - 0x40]
push edx
push esi
push dword [eax + ecx*8 + 0xd664]
mov ecx, dword [ebp - 0x44]
call fcn.00445970
test al, al
jne 0x4973dc
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x496e81
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4973cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49764b
push ecx
push edx
call fcn.0056a59a
add esp, 8
xor al, al
jmp 0x497624
mov esi, dword [ebp - 0x1c]
mov edx, 1
cmp esi, dword [ebp - 0x18]
je 0x497464
mov eax, dword [ebp - 0x34]
nop dword [eax]
cmp edx, eax
jae 0x497580
mov ecx, dword [esi]
mov dword [ebp - 0x38], ecx
cmp edi, ecx
je 0x49745c
call fcn.00441ac0
test eax, eax
jne 0x497456
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
push edi
call fcn.00445040
mov eax, dword [0x6e7e30]
mov ecx, edi
mov dword [ebp - 0x50], eax
call fcn.00443890
lea edx, [ebp - 0x28]
push edx
lea ecx, [eax + 0x1dc]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0x38]
mov edi, eax
call fcn.00443740
mov ecx, dword [ebp - 0x50]
push edi
push eax
call fcn.00484570
mov edx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x48]
inc edx
mov dword [ebp - 0x3c], edx
jmp 0x497459
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
add esi, 4
cmp esi, dword [ebp - 0x18]
jne 0x4973f0
mov esi, dword [ebp - 0x44]
jmp 0x497535
call fcn.004a2440
test eax, eax
je 0x497535
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
mov eax, dword [ebp - 0x38]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x657870]
cvtpd2ps xmm1, xmm0
call fcn.00445720
test al, al
je 0x497530
mov esi, dword [ebp - 0x1c]
mov edx, 1
cmp esi, dword [ebp - 0x18]
je 0x497464
mov eax, dword [ebp - 0x34]
cmp edx, eax
jae 0x497580
mov ecx, dword [esi]
mov dword [ebp - 0x38], ecx
cmp edi, ecx
je 0x497523
call fcn.00441ac0
test eax, eax
jne 0x49751d
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
push edi
call fcn.00445040
mov eax, dword [0x6e7e30]
mov ecx, edi
mov dword [ebp - 0x50], eax
call fcn.00443890
lea edx, [ebp - 0x28]
push edx
lea ecx, [eax + 0x1dc]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0x38]
mov edi, eax
call fcn.00443740
mov ecx, dword [ebp - 0x50]
push edi
push eax
call fcn.00484570
mov edx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x48]
inc edx
mov dword [ebp - 0x3c], edx
jmp 0x497520
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
add esi, 4
cmp esi, dword [ebp - 0x18]
jne 0x4974b7
mov esi, dword [ebp - 0x44]
jmp 0x497535
mov edx, 1
mov eax, dword [ebp - 0x34]
cmp edx, eax
jae 0x497580
sub eax, edx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
push edi
call fcn.00445230
movss xmm0, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
xorps xmm0, xmmword [0x657890]
mov ecx, esi
push eax
movss dword [ebp - 0x24], xmm0
call fcn.00444fc0
mov ecx, dword [0x6e7e30]
lea eax, [ebp - 0x28]
push eax
push 0
call fcn.00484570
sub dword [ebp - 0x34], 1
jne 0x497541
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0043f4a0
mov edx, dword [ebp - 0x2c]
mov ecx, edx
call fcn.004917e0
mov ecx, dword [ebp - 0x30]
call fcn.004593b0
test eax, eax
jne 0x497606
mov eax, dword [ebp - 0x40]
push dword [edx + eax*8 + 0xd66c]
call fcn.004a3040
mov esi, eax
mov eax, dword [ebp - 0x40]
movss xmm1, dword [edx + eax*8 + 0xd674]
call fcn.004a30b0
mov ecx, dword [ebp - 0x30]
mov edx, eax
call fcn.004a2550
test eax, eax
mov eax, dword [ebp - 0x40]
setne cl
push ecx
mov ecx, dword [ebp - 0x44]
push edx
push esi
mov esi, dword [ebp - 0x2c]
push dword [esi + eax*8 + 0xd664]
call fcn.00445970
test al, al
jne 0x497608
push dword [ebp - 0x4c]
push str.CPythonPlayer::__UseSkill__d____pkInstMain__NEW_UseSkill___ERROR
call fcn.004c4410
add esp, 8
xor al, al
jmp 0x497624
mov esi, edx
test edi, edi
je 0x497615
mov ecx, edi
call fcn.00443740
jmp 0x497617
xor eax, eax
push eax
push dword [ebp - 0x4c]
mov ecx, esi
call fcn.00497660
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056a569
mov esp, ebp
pop ebp
ret 4
push str.CANNOT_ATTACK
jmp 0x497104
call fcn.005b0360
int3