Function at 0x4ba330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5fe538
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x69a450]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x69a450]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [ebp + 8]
mov dword [esp + 0x28], edi
call fcn.004b1590
test al, al
jne 0x4baac1
call fcn.004ba2d0
test al, al
je 0x4baaf9
cmp edi, 0xff
jb 0x4ba3a8
push edi
push str.CPythonPlayer::__UseSkill_dwSlotIndex_d__Its_not_available_skill_slot_number
call fcn.00525d10
add esp, 8
jmp 0x4baaf9
lea eax, [edi + edi*4]
mov ecx, esi
push dword [esi + eax*8 + 0x154e0]
mov dword [esp + 0x30], eax
call fcn.004bafc0
test al, al
jne 0x4baac1
mov ecx, dword [0x6f086c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x30]
push dword [esi + eax*8 + 0x154e0]
call fcn.004c1820
test eax, eax
jne 0x4ba3f7
push edi
push str.CPythonPlayer::__UseSkill_dwSlotIndex_d__There_is_no_skill_data
call fcn.00525d10
add esp, 8
jmp 0x4baaf9
mov ecx, dword [esp + 0x14]
call fcn.004c4e10
test eax, eax
je 0x4ba42c
push edi
mov ecx, esi
call fcn.004b0870
test eax, eax
je 0x4ba42c
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x6ed1c4]
push edi
push dword [esi + eax*8 + 0x154e0]
call fcn.004a3120
jmp 0x4baaf9
push edi
mov ecx, esi
call fcn.004b9dd0
test al, al
je 0x4baaf9
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov dword [esp + 0xc], ecx
mov eax, dword [eax + 0x88]
call eax
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
jne 0x4ba46b
push edi
push str.CPythonPlayer::__UseSkill_dwSlotIndex_d__There_is_no_main_player
call fcn.00525d10
add esp, 8
jmp 0x4baaf9
mov ecx, esi
call fcn.00463ce0
test eax, eax
jne 0x4baaf9
mov ecx, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x24], edi
call fcn.004c4e00
test eax, eax
jne 0x4ba4a3
call fcn.004c4db0
test eax, eax
jne 0x4ba4a3
call fcn.004c4de0
test eax, eax
je 0x4ba71e
call fcn.004c4df0
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x4ba4b7
call fcn.004b3640
jmp 0x4ba4bc
call fcn.004b3670
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
jne 0x4ba5e1
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.004b3600
mov ecx, dword [esp + 0x14]
call fcn.004c4df0
mov ecx, edi
test eax, eax
je 0x4ba4eb
call fcn.004b3640
jmp 0x4ba4f0
call fcn.004b3670
mov edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
test edi, edi
jne 0x4ba5e1
mov ecx, dword [esp + 0x14]
call fcn.004c4de0
test eax, eax
je 0x4ba59f
movss xmm2, dword [0x657a38]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00462d60
test al, al
je 0x4ba595
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
mov ecx, edi
push 1
mov esi, dword [esi]
call fcn.00460e50
mov ecx, dword [esp + 0x10]
push eax
call dword [esi + 0x60]
push dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
push eax
push edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
push esi
call fcn.004ba1a0
test al, al
je 0x4baaf9
mov ecx, dword [esp + 0x14]
call fcn.004c4e90
test eax, eax
je 0x4ba5a5
mov edi, esi
mov ecx, esi
push esi
mov dword [esp + 0x28], edi
call fcn.00462960
push str.__ALERT__
call fcn.00525c80
add esp, 4
jmp 0x4ba71e
push str.NEED_TARGET
jmp 0x4baaca
mov edi, dword [esp + 0x10]
jmp 0x4ba56c
call fcn.004c4df0
lea ecx, [edi + 4]
test eax, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
je 0x4ba5da
push str.ONLY_FOR_CORPSE
call eax
push eax
push str._is_
call dword [sym.imp.python27.dll_Py_BuildValue]
add esp, 0xc
push eax
push str.OnCannotUseSkill
push dword [edi + 8]
jmp 0x4baaf1
push str.NEED_TARGET
jmp 0x4ba5bb
mov ecx, dword [esp + 0x14]
call fcn.004c4e80
test eax, eax
je 0x4ba6b7
cmp esi, edi
jne 0x4ba60d
call fcn.004c4e90
test eax, eax
jne 0x4ba6f8
push str.CANNOT_USE_SELF
jmp 0x4baaca
push edi
mov ecx, esi
call fcn.00460900
test al, al
jne 0x4ba68b
mov ecx, edi
call fcn.00460c90
test eax, eax
je 0x4ba68b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
call fcn.004ba180
mov dword [esp + 0x18], eax
test eax, eax
je 0x4ba6f8
push edi
mov ecx, esi
call fcn.00460ee0
mov ecx, dword [esp + 0x18]
movaps xmm2, xmm0
mov eax, ecx
shr eax, 0x1f
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x657ba0]
cvtpd2ps xmm0, xmm1
comiss xmm2, xmm0
jb 0x4ba6f8
push ecx
push dword [esp + 0x2c]
mov ecx, edi
call fcn.00460e50
mov ecx, dword [esp + 0x18]
push eax
call fcn.004b4290
jmp 0x4baaf9
mov ecx, dword [esp + 0x14]
call fcn.004c4e90
test eax, eax
je 0x4ba6ad
mov edi, esi
push str.__ALERT_
mov dword [esp + 0x28], edi
call fcn.00525c80
add esp, 4
jmp 0x4ba6f8
push str.ONLY_FOR_ALLIANCE
jmp 0x4baaca
mov ecx, edi
call fcn.0045e3e0
test eax, eax
je 0x4ba6cc
push str.CANNOT_ATTACK_ENEMY_IN_SAFE_AREA
jmp 0x4baaca
push edi
mov ecx, esi
call fcn.00460900
test al, al
je 0x4baac5
push dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push edi
push esi
call fcn.004ba1a0
test al, al
je 0x4baaf9
push edi
mov ecx, esi
call fcn.00462960
cmp esi, edi
je 0x4ba71e
mov ecx, esi
call fcn.00462940
mov ecx, esi
test al, al
je 0x4ba718
call fcn.00468d80
jmp 0x4ba71e
push edi
call fcn.00468dd0
mov ecx, dword [esp + 0x14]
call fcn.004c4db0
test eax, eax
je 0x4ba78f
test edi, edi
je 0x4ba73d
cmp edi, esi
je 0x4ba73d
push edi
mov ecx, esi
call fcn.00468dd0
jmp 0x4ba78f
lea eax, [esp + 0x18]
push eax
call fcn.004aecf0
test al, al
je 0x4ba762
push dword [esp + 0x18]
call fcn.004aee40
test eax, eax
je 0x4ba78f
push eax
mov ecx, esi
call fcn.00468dd0
jmp 0x4ba78f
lea eax, [esp + 0x30]
push eax
call fcn.004aed10
test al, al
je 0x4ba77e
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00468d90
jmp 0x4ba78f
push dword [esp + 0x28]
push str.CPythonPlayer::__UseSkill__d____
call fcn.00525d10
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
movss xmm1, dword [eax + ecx*8 + 0x154f0]
mov ecx, dword [esp + 0x14]
call fcn.004c5850
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
call fcn.004ba180
cmp dword [esp + 0xc], 0
mov dword [esp + 0x18], eax
jbe 0x4baa15
test edi, edi
je 0x4baa15
mov edx, 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x58], 0
mov ecx, dword [esp + 0x14]
call fcn.004c4dc0
test eax, eax
je 0x4ba8d6
lea eax, [esp + 0x30]
mov ecx, esi
push eax
mov eax, dword [esp + 0x1c]
push edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x657ba0]
cvtpd2ps xmm1, xmm0
call fcn.00462f60
test al, al
je 0x4ba9a6
mov esi, dword [esp + 0x30]
mov edx, 1
cmp esi, dword [esp + 0x34]
je 0x4ba8cd
mov eax, dword [esp + 0xc]
cmp edx, eax
jae 0x4baa04
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp edi, ecx
je 0x4ba8c4
call fcn.0045f180
test eax, eax
jne 0x4ba8bc
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push edi
call fcn.00462a80
mov ecx, edi
call fcn.00460fa0
mov edi, dword [0x6ed1c4]
lea edx, [esp + 0x3c]
push edx
lea ecx, [eax + 0x1dc]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [esp + 0x18]
push eax
call fcn.00460e50
push eax
mov ecx, edi
call fcn.004a5a20
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
inc edx
mov dword [esp + 0x1c], edx
jmp 0x4ba8c0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
add esi, 4
cmp esi, dword [esp + 0x34]
jne 0x4ba853
mov esi, dword [esp + 0x20]
jmp 0x4ba9ab
call fcn.004c4dd0
test eax, eax
je 0x4ba9ab
lea eax, [esp + 0x30]
mov ecx, esi
push eax
mov eax, dword [esp + 0x1c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x657ba0]
cvtpd2ps xmm1, xmm0
call fcn.00463280
test al, al
je 0x4ba9a6
mov esi, dword [esp + 0x30]
mov edx, 1
cmp esi, dword [esp + 0x34]
je 0x4ba8cd
mov eax, dword [esp + 0xc]
cmp edx, eax
jae 0x4baa04
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp edi, ecx
je 0x4ba997
call fcn.0045f180
test eax, eax
jne 0x4ba98f
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push edi
call fcn.00462a80
mov ecx, edi
call fcn.00460fa0
mov edi, dword [0x6ed1c4]
lea edx, [esp + 0x3c]
push edx
lea ecx, [eax + 0x1dc]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [esp + 0x18]
push eax
call fcn.00460e50
push eax
mov ecx, edi
call fcn.004a5a20
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
inc edx
mov dword [esp + 0x1c], edx
jmp 0x4ba993
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
add esi, 4
cmp esi, dword [esp + 0x34]
jne 0x4ba926
mov esi, dword [esp + 0x20]
jmp 0x4ba9ab
mov edx, 1
mov eax, dword [esp + 0xc]
cmp edx, eax
jae 0x4baa04
sub eax, edx
mov dword [esp + 0xc], eax
lea esp, [esp]
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
push edi
call fcn.00462c80
movss xmm0, dword [esp + 0x40]
lea eax, [esp + 0x3c]
xorps xmm0, xmmword [0x657bc0]
mov ecx, esi
push eax
movss dword [esp + 0x44], xmm0
call fcn.00462a00
mov ecx, dword [0x6ed1c4]
lea eax, [esp + 0x3c]
push eax
push 0
call fcn.004a5a20
dec dword [esp + 0xc]
jne 0x4ba9c0
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 0xffffffff
call fcn.0045b230
mov edx, dword [esp + 0x10]
mov ecx, edx
call fcn.004b41f0
mov ecx, dword [esp + 0x14]
call fcn.00478a00
test eax, eax
jne 0x4baa96
mov eax, dword [esp + 0x2c]
push dword [edx + eax*8 + 0x154e8]
call fcn.004c5980
mov esi, eax
mov eax, dword [esp + 0x2c]
movss xmm1, dword [edx + eax*8 + 0x154f0]
call fcn.004c59f0
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.004c4f00
test eax, eax
mov eax, dword [esp + 0x2c]
setne cl
movzx ecx, cl
push ecx
mov ecx, dword [esp + 0x24]
push edx
push esi
mov esi, dword [esp + 0x1c]
push dword [esi + eax*8 + 0x154e0]
call fcn.004635c0
test al, al
jne 0x4baa98
push dword [esp + 0x28]
push str.CPythonPlayer::__UseSkill__d____pkInstMain__NEW_UseSkill___ERROR
call fcn.00525d10
add esp, 8
jmp 0x4baaf9
mov esi, edx
test edi, edi
je 0x4baab3
mov ecx, edi
call fcn.00460e50
push eax
push dword [esp + 0x2c]
mov ecx, esi
call fcn.004bab20
mov al, 1
jmp 0x4baafb
xor eax, eax
mov ecx, esi
push eax
push dword [esp + 0x2c]
call fcn.004bab20
mov al, 1
jmp 0x4baafb
push str.CANNOT_ATTACK
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
push eax
push str._is_
call dword [sym.imp.python27.dll_Py_BuildValue]
add esp, 0xc
push eax
mov eax, dword [esp + 0x14]
push str.OnCannotUseSkill
push dword [eax + 8]
call fcn.005baa50
add esp, 0xc
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005c46a4
mov esp, ebp
pop ebp
ret 4