Function at 0x4a3db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60b9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6ae450]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x6ae450]
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.0049b420
test al, al
jne 0x4a4541
call fcn.004a3d50
test al, al
je 0x4a4579
cmp edi, 0xff
jb 0x4a3e28
push edi
push str.CPythonPlayer::__UseSkill_dwSlotIndex_d__Its_not_available_skill_slot_number
call fcn.0050b0f0
add esp, 8
jmp 0x4a4579
lea eax, [edi + edi*4]
mov ecx, esi
push dword [esi + eax*8 + 0xe1c4]
mov dword [esp + 0x30], eax
call fcn.004a4a40
test al, al
jne 0x4a4541
mov ecx, dword [0x70321c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x30]
push dword [esi + eax*8 + 0xe1c4]
call fcn.004ab6a0
test eax, eax
jne 0x4a3e77
push edi
push str.CPythonPlayer::__UseSkill_dwSlotIndex_d__There_is_no_skill_data
call fcn.0050b0f0
add esp, 8
jmp 0x4a4579
mov ecx, dword [esp + 0x14]
call fcn.004aec90
test eax, eax
je 0x4a3eac
push edi
mov ecx, esi
call fcn.0049a700
test eax, eax
je 0x4a3eac
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x6ffb48]
push edi
push dword [esi + eax*8 + 0xe1c4]
call fcn.0048d030
jmp 0x4a4579
push edi
mov ecx, esi
call fcn.004a3850
test al, al
je 0x4a4579
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 0x4a3eeb
push edi
push str.CPythonPlayer::__UseSkill_dwSlotIndex_d__There_is_no_main_player
call fcn.0050b0f0
add esp, 8
jmp 0x4a4579
mov ecx, esi
call fcn.0044dae0
test eax, eax
jne 0x4a4579
mov ecx, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x24], edi
call fcn.004aec80
test eax, eax
jne 0x4a3f23
call fcn.004aec30
test eax, eax
jne 0x4a3f23
call fcn.004aec60
test eax, eax
je 0x4a419e
call fcn.004aec70
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x4a3f37
call fcn.0049d320
jmp 0x4a3f3c
call fcn.0049d350
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
jne 0x4a4061
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.0049d2e0
mov ecx, dword [esp + 0x14]
call fcn.004aec70
mov ecx, edi
test eax, eax
je 0x4a3f6b
call fcn.0049d320
jmp 0x4a3f70
call fcn.0049d350
mov edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
test edi, edi
jne 0x4a4061
mov ecx, dword [esp + 0x14]
call fcn.004aec60
test eax, eax
je 0x4a401f
movss xmm2, dword [0x66a540]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0044cb60
test al, al
je 0x4a4015
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
mov ecx, edi
push 1
mov esi, dword [esi]
call fcn.0044a700
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.004a3c20
test al, al
je 0x4a4579
mov ecx, dword [esp + 0x14]
call fcn.004aed10
test eax, eax
je 0x4a4025
mov edi, esi
mov ecx, esi
push esi
mov dword [esp + 0x28], edi
call fcn.0044c760
push str.__ALERT__
call fcn.0050b060
add esp, 4
jmp 0x4a419e
push str.NEED_TARGET
jmp 0x4a454a
mov edi, dword [esp + 0x10]
jmp 0x4a3fec
call fcn.004aec70
lea ecx, [edi + 4]
test eax, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
je 0x4a405a
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 0x4a4571
push str.NEED_TARGET
jmp 0x4a403b
mov ecx, dword [esp + 0x14]
call fcn.004aed00
test eax, eax
je 0x4a4137
cmp esi, edi
jne 0x4a408d
call fcn.004aed10
test eax, eax
jne 0x4a4178
push str.CANNOT_USE_SELF
jmp 0x4a454a
push edi
mov ecx, esi
call fcn.0044a1b0
test al, al
jne 0x4a410b
mov ecx, edi
call fcn.0044a540
test eax, eax
je 0x4a410b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
call fcn.004a3c00
mov dword [esp + 0x18], eax
test eax, eax
je 0x4a4178
push edi
mov ecx, esi
call fcn.0044a7a0
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 + 0x66a710]
cvtpd2ps xmm0, xmm1
comiss xmm2, xmm0
jb 0x4a4178
push ecx
push dword [esp + 0x2c]
mov ecx, edi
call fcn.0044a700
mov ecx, dword [esp + 0x18]
push eax
call fcn.0049df70
jmp 0x4a4579
mov ecx, dword [esp + 0x14]
call fcn.004aed10
test eax, eax
je 0x4a412d
mov edi, esi
push str.__ALERT_
mov dword [esp + 0x28], edi
call fcn.0050b060
add esp, 4
jmp 0x4a4178
push str.ONLY_FOR_ALLIANCE
jmp 0x4a454a
mov ecx, edi
call fcn.00447ce0
test eax, eax
je 0x4a414c
push str.CANNOT_ATTACK_ENEMY_IN_SAFE_AREA
jmp 0x4a454a
push edi
mov ecx, esi
call fcn.0044a1b0
test al, al
je 0x4a4545
push dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push edi
push esi
call fcn.004a3c20
test al, al
je 0x4a4579
push edi
mov ecx, esi
call fcn.0044c760
cmp esi, edi
je 0x4a419e
mov ecx, esi
call fcn.0044c740
mov ecx, esi
test al, al
je 0x4a4198
call fcn.00452a20
jmp 0x4a419e
push edi
call fcn.00452a70
mov ecx, dword [esp + 0x14]
call fcn.004aec30
test eax, eax
je 0x4a420f
test edi, edi
je 0x4a41bd
cmp edi, esi
je 0x4a41bd
push edi
mov ecx, esi
call fcn.00452a70
jmp 0x4a420f
lea eax, [esp + 0x18]
push eax
call fcn.00498da0
test al, al
je 0x4a41e2
push dword [esp + 0x18]
call fcn.00498ef0
test eax, eax
je 0x4a420f
push eax
mov ecx, esi
call fcn.00452a70
jmp 0x4a420f
lea eax, [esp + 0x30]
push eax
call fcn.00498dc0
test al, al
je 0x4a41fe
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00452a30
jmp 0x4a420f
push dword [esp + 0x28]
push str.CPythonPlayer::__UseSkill__d____
call fcn.0050b0f0
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
movss xmm1, dword [eax + ecx*8 + 0xe1d4]
mov ecx, dword [esp + 0x14]
call fcn.004af6d0
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
call fcn.004a3c00
cmp dword [esp + 0xc], 0
mov dword [esp + 0x18], eax
jbe 0x4a4495
test edi, edi
je 0x4a4495
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.004aec40
test eax, eax
je 0x4a4356
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 + 0x66a710]
cvtpd2ps xmm1, xmm0
call fcn.0044cd60
test al, al
je 0x4a4426
mov esi, dword [esp + 0x30]
mov edx, 1
cmp esi, dword [esp + 0x34]
je 0x4a434d
mov eax, dword [esp + 0xc]
cmp edx, eax
jae 0x4a4484
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp edi, ecx
je 0x4a4344
call fcn.00448a20
test eax, eax
jne 0x4a433c
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push edi
call fcn.0044c880
mov ecx, edi
call fcn.0044a860
mov edi, dword [0x6ffb48]
lea edx, [esp + 0x3c]
push edx
lea ecx, [eax + 0x2a8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [esp + 0x18]
push eax
call fcn.0044a700
push eax
mov ecx, edi
call fcn.0048f900
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
inc edx
mov dword [esp + 0x1c], edx
jmp 0x4a4340
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
add esi, 4
cmp esi, dword [esp + 0x34]
jne 0x4a42d3
mov esi, dword [esp + 0x20]
jmp 0x4a442b
call fcn.004aec50
test eax, eax
je 0x4a442b
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 + 0x66a710]
cvtpd2ps xmm1, xmm0
call fcn.0044d080
test al, al
je 0x4a4426
mov esi, dword [esp + 0x30]
mov edx, 1
cmp esi, dword [esp + 0x34]
je 0x4a434d
mov eax, dword [esp + 0xc]
cmp edx, eax
jae 0x4a4484
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp edi, ecx
je 0x4a4417
call fcn.00448a20
test eax, eax
jne 0x4a440f
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push edi
call fcn.0044c880
mov ecx, edi
call fcn.0044a860
mov edi, dword [0x6ffb48]
lea edx, [esp + 0x3c]
push edx
lea ecx, [eax + 0x2a8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [esp + 0x18]
push eax
call fcn.0044a700
push eax
mov ecx, edi
call fcn.0048f900
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
inc edx
mov dword [esp + 0x1c], edx
jmp 0x4a4413
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
add esi, 4
cmp esi, dword [esp + 0x34]
jne 0x4a43a6
mov esi, dword [esp + 0x20]
jmp 0x4a442b
mov edx, 1
mov eax, dword [esp + 0xc]
cmp edx, eax
jae 0x4a4484
sub eax, edx
mov dword [esp + 0xc], eax
lea esp, [esp]
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
push edi
call fcn.0044ca80
movss xmm0, dword [esp + 0x40]
lea eax, [esp + 0x3c]
xorps xmm0, xmmword [0x66a730]
mov ecx, esi
push eax
movss dword [esp + 0x44], xmm0
call fcn.0044c800
mov ecx, dword [0x6ffb48]
lea eax, [esp + 0x3c]
push eax
push 0
call fcn.0048f900
dec dword [esp + 0xc]
jne 0x4a4440
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 0xffffffff
call fcn.0043e680
mov edx, dword [esp + 0x10]
mov ecx, edx
call fcn.0049ded0
mov ecx, dword [esp + 0x14]
call fcn.00462820
test eax, eax
jne 0x4a4516
mov eax, dword [esp + 0x2c]
push dword [edx + eax*8 + 0xe1cc]
call fcn.004af800
mov esi, eax
mov eax, dword [esp + 0x2c]
movss xmm1, dword [edx + eax*8 + 0xe1d4]
call fcn.004af870
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.004aed80
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 + 0xe1c4]
call fcn.0044d3c0
test al, al
jne 0x4a4518
push dword [esp + 0x28]
push str.CPythonPlayer::__UseSkill__d____pkInstMain__NEW_UseSkill___ERROR
call fcn.0050b0f0
add esp, 8
jmp 0x4a4579
mov esi, edx
test edi, edi
je 0x4a4533
mov ecx, edi
call fcn.0044a700
push eax
push dword [esp + 0x2c]
mov ecx, esi
call fcn.004a45a0
mov al, 1
jmp 0x4a457b
xor eax, eax
mov ecx, esi
push eax
push dword [esp + 0x2c]
call fcn.004a45a0
mov al, 1
jmp 0x4a457b
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.005ab380
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.005b509b
mov esp, ebp
pop ebp
ret 4