Function at 0x4afb50
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635cad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x6cf520]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
mov edi, dword [ebx + 8]
mov dword [ebp - 0x50], edi
call fcn.00499ce0
test al, al
jne 0x4b02b2
call fcn.004afaf0
test al, al
je 0x4afbc5
cmp edi, 0xff
jb 0x4afbcc
push edi
push str.CPythonPlayer::__UseSkill_dwSlotIndex_d__Its_not_available_skill_slot_number
call fcn.004e8bc0
add esp, 8
xor al, al
jmp 0x4b02b4
lea eax, [edi + edi*4]
mov ecx, esi
push dword [esi + eax*8 + 0x1cb2c]
mov dword [ebp - 0x4c], eax
call fcn.004b07b0
test al, al
jne 0x4b02b2
mov ecx, dword [0x759488]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x4c]
push dword [esi + eax*8 + 0x1cb2c]
call fcn.004b9260
test eax, eax
jne 0x4afc1a
push edi
push str.CPythonPlayer::__UseSkill_dwSlotIndex_d__There_is_no_skill_data
call fcn.004e8bc0
add esp, 8
xor al, al
jmp 0x4b02b4
mov ecx, dword [ebp - 0x34]
call fcn.004bcb40
test eax, eax
je 0x4afc4f
push edi
mov ecx, esi
call fcn.00499190
test eax, eax
je 0x4afc4f
mov eax, dword [ebp - 0x4c]
mov ecx, dword [0x722fb4]
push edi
push dword [esi + eax*8 + 0x1cb2c]
call fcn.00488d10
xor al, al
jmp 0x4b02b4
push edi
mov ecx, esi
call fcn.004af5c0
test al, al
je 0x4afbc5
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov dword [ebp - 0x40], ecx
mov eax, dword [eax + 0x88]
call eax
mov esi, eax
mov dword [ebp - 0x48], esi
test esi, esi
jne 0x4afc8e
push edi
push str.CPythonPlayer::__UseSkill_dwSlotIndex_d__There_is_no_main_player
call fcn.004e8bc0
add esp, 8
xor al, al
jmp 0x4b02b4
mov ecx, esi
call fcn.0044adc0
test eax, eax
jne 0x4afbc5
mov ecx, dword [ebp - 0x34]
xor edi, edi
mov dword [ebp - 0x44], edi
call fcn.004bcb30
test eax, eax
jne 0x4afcc4
call fcn.004bcae0
test eax, eax
jne 0x4afcc4
call fcn.004bcb10
test eax, eax
je 0x4aff64
call fcn.004bcb20
mov ecx, dword [ebp - 0x30]
test eax, eax
je 0x4afcd7
call fcn.0049b5f0
jmp 0x4afcdc
call fcn.0049b620
mov edi, eax
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x4afe00
mov edi, dword [ebp - 0x30]
mov ecx, edi
call fcn.0049b5b0
mov ecx, dword [ebp - 0x34]
call fcn.004bcb20
mov ecx, edi
test eax, eax
je 0x4afd08
call fcn.0049b5f0
jmp 0x4afd0d
call fcn.0049b620
mov edi, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], edi
test edi, edi
jne 0x4afe00
mov ecx, dword [ebp - 0x34]
call fcn.004bcb10
test eax, eax
je 0x4afdb4
movss xmm2, dword [0x68d934]
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.0044a0a0
mov edi, dword [ebp - 0x40]
mov edx, dword [edi]
mov dword [ebp - 0x3c], edx
test al, al
je 0x4afdaa
mov esi, dword [ebp - 0x38]
mov ecx, esi
call fcn.004466b0
push 1
push eax
mov eax, dword [ebp - 0x3c]
mov ecx, edi
call dword [eax + 0x60]
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
mov ecx, edi
push eax
push esi
mov esi, dword [ebp - 0x48]
push esi
call fcn.004af9c0
test al, al
je 0x4afbc5
mov ecx, dword [ebp - 0x34]
call fcn.004bcbc0
test eax, eax
je 0x4afdb9
mov edi, esi
mov ecx, esi
push esi
mov dword [ebp - 0x44], edi
call fcn.00449cb0
push str.__ALERT__
call fcn.004e8b20
add esp, 4
jmp 0x4aff64
mov eax, dword [edx + 4]
push str.NEED_TARGET
jmp 0x4afe2e
mov edi, dword [ebp - 0x30]
jmp 0x4afd82
mov esi, dword [edi + 4]
call fcn.004bcb20
test eax, eax
lea ecx, [edi + 4]
mov eax, dword [esi + 4]
je 0x4afdf9
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]
call fcn.0058c630
add esp, 0xc
xor al, al
jmp 0x4b02b4
push str.NEED_TARGET
jmp 0x4afdd0
mov ecx, dword [ebp - 0x34]
call fcn.004bcbb0
test eax, eax
je 0x4aff00
cmp esi, edi
jne 0x4afe5c
call fcn.004bcbc0
test eax, eax
jne 0x4aff3e
push str.CANNOT_USE_SELF
mov edi, dword [ebp - 0x40]
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]
add esp, 0xc
push eax
mov eax, dword [ebp - 0x30]
push str.OnCannotUseSkill
push dword [eax + 8]
call fcn.0058c630
add esp, 0xc
xor al, al
jmp 0x4b02b4
push edi
mov ecx, esi
call fcn.004460d0
test al, al
jne 0x4afed6
mov ecx, edi
call fcn.00446450
test eax, eax
je 0x4afed6
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
push eax
call fcn.004af990
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4aff3e
push edi
mov ecx, esi
call fcn.00446760
mov ecx, dword [ebp - 0x3c]
movaps xmm2, xmm0
mov eax, ecx
shr eax, 0x1f
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x68da00]
cvtpd2ps xmm0, xmm1
comiss xmm2, xmm0
jb 0x4aff3e
push ecx
push dword [ebp - 0x50]
mov ecx, edi
call fcn.004466b0
mov ecx, dword [ebp - 0x30]
push eax
call fcn.0049c1f0
xor al, al
jmp 0x4b02b4
mov ecx, dword [ebp - 0x34]
call fcn.004bcbc0
test eax, eax
je 0x4afef6
mov edi, esi
push str.__ALERT_
mov dword [ebp - 0x44], edi
call fcn.004e8b20
add esp, 4
jmp 0x4aff3e
push str.ONLY_FOR_ALLIANCE
jmp 0x4afe26
mov ecx, edi
call fcn.00443a40
test eax, eax
je 0x4aff15
push str.CANNOT_ATTACK_ENEMY_IN_SAFE_AREA
jmp 0x4afe26
push edi
mov ecx, esi
call fcn.004460d0
test al, al
je 0x4b02d4
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
push eax
push edi
push esi
call fcn.004af9c0
test al, al
je 0x4afbc5
push edi
mov ecx, esi
call fcn.00449cb0
cmp esi, edi
je 0x4aff64
mov ecx, esi
call fcn.00449c90
mov ecx, esi
test al, al
je 0x4aff5e
call fcn.0044f010
jmp 0x4aff64
push edi
call fcn.0044f060
mov ecx, dword [ebp - 0x34]
call fcn.004bcae0
test eax, eax
je 0x4affcf
test edi, edi
je 0x4aff82
cmp edi, esi
je 0x4aff82
push edi
mov ecx, esi
call fcn.0044f060
jmp 0x4affcf
lea eax, [ebp - 0x3c]
push eax
call fcn.004974c0
test al, al
je 0x4affa5
push dword [ebp - 0x3c]
call fcn.00497610
test eax, eax
je 0x4affcf
push eax
mov ecx, esi
call fcn.0044f060
jmp 0x4affcf
lea eax, [ebp - 0x20]
push eax
call fcn.004974e0
test al, al
je 0x4affbf
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0044f020
jmp 0x4affcf
push dword [ebp - 0x50]
push str.CPythonPlayer::__UseSkill__d____
call fcn.004e8bc0
add esp, 8
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x4c]
movss xmm1, dword [eax + ecx*8 + 0x1cb3c]
mov ecx, dword [ebp - 0x34]
call fcn.004bd620
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
call fcn.004af990
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], eax
jbe 0x4b021f
test edi, edi
je 0x4b021f
mov edx, 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
call fcn.004bcaf0
test eax, eax
je 0x4b00fc
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
mov eax, dword [ebp - 0x3c]
push edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x68da00]
cvtpd2ps xmm1, xmm0
call fcn.0044a260
test al, al
je 0x4b01c0
mov esi, dword [ebp - 0x20]
mov edx, 1
cmp esi, dword [ebp - 0x1c]
je 0x4b00f4
mov eax, dword [ebp - 0x38]
nop dword [eax]
cmp edx, eax
jae 0x4b0210
mov ecx, dword [esi]
mov dword [ebp - 0x3c], ecx
cmp edi, ecx
je 0x4b00ec
call fcn.00444980
test eax, eax
jne 0x4b00e6
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00449dc0
mov eax, dword [0x722fb4]
mov ecx, edi
mov dword [ebp - 0x54], eax
call fcn.00446820
lea edx, [ebp - 0x2c]
push edx
lea ecx, [eax + 0x2a8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0x3c]
mov edi, eax
call fcn.004466b0
mov ecx, dword [ebp - 0x54]
push edi
push eax
call fcn.0048b940
mov edx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
inc edx
mov dword [ebp - 0x40], edx
jmp 0x4b00e9
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
add esi, 4
cmp esi, dword [ebp - 0x1c]
jne 0x4b0080
mov esi, dword [ebp - 0x48]
jmp 0x4b01c5
call fcn.004bcb00
test eax, eax
je 0x4b01c5
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
mov eax, dword [ebp - 0x3c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x68da00]
cvtpd2ps xmm1, xmm0
call fcn.0044a4a0
test al, al
je 0x4b01c0
mov esi, dword [ebp - 0x20]
mov edx, 1
cmp esi, dword [ebp - 0x1c]
je 0x4b00f4
mov eax, dword [ebp - 0x38]
cmp edx, eax
jae 0x4b0210
mov ecx, dword [esi]
mov dword [ebp - 0x3c], ecx
cmp edi, ecx
je 0x4b01b3
call fcn.00444980
test eax, eax
jne 0x4b01ad
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00449dc0
mov eax, dword [0x722fb4]
mov ecx, edi
mov dword [ebp - 0x54], eax
call fcn.00446820
lea edx, [ebp - 0x2c]
push edx
lea ecx, [eax + 0x2a8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0x3c]
mov edi, eax
call fcn.004466b0
mov ecx, dword [ebp - 0x54]
push edi
push eax
call fcn.0048b940
mov edx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
inc edx
mov dword [ebp - 0x40], edx
jmp 0x4b01b0
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
add esi, 4
cmp esi, dword [ebp - 0x1c]
jne 0x4b0147
mov esi, dword [ebp - 0x48]
jmp 0x4b01c5
mov edx, 1
mov eax, dword [ebp - 0x38]
cmp edx, eax
jae 0x4b0210
sub eax, edx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
push edi
call fcn.00449fb0
movss xmm0, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
xorps xmm0, xmmword [0x68da40]
mov ecx, esi
push eax
movss dword [ebp - 0x28], xmm0
call fcn.00449d40
mov ecx, dword [0x722fb4]
lea eax, [ebp - 0x2c]
push eax
push 0
call fcn.0048b940
sub dword [ebp - 0x38], 1
jne 0x4b01d1
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.004412c0
mov edx, dword [ebp - 0x30]
mov ecx, edx
call fcn.0049c150
mov ecx, dword [ebp - 0x34]
call fcn.0045e9d0
test eax, eax
jne 0x4b0296
mov eax, dword [ebp - 0x4c]
push dword [edx + eax*8 + 0x1cb34]
call fcn.004bd760
mov esi, eax
mov eax, dword [ebp - 0x4c]
movss xmm1, dword [edx + eax*8 + 0x1cb3c]
call fcn.004bd7d0
mov ecx, dword [ebp - 0x34]
mov edx, eax
call fcn.004bcc30
test eax, eax
mov eax, dword [ebp - 0x4c]
setne cl
push ecx
mov ecx, dword [ebp - 0x48]
push edx
push esi
mov esi, dword [ebp - 0x30]
push dword [esi + eax*8 + 0x1cb2c]
call fcn.0044a6f0
test al, al
jne 0x4b0298
push dword [ebp - 0x50]
push str.CPythonPlayer::__UseSkill__d____pkInstMain__NEW_UseSkill___ERROR
call fcn.004e8bc0
add esp, 8
xor al, al
jmp 0x4b02b4
mov esi, edx
test edi, edi
je 0x4b02a5
mov ecx, edi
call fcn.004466b0
jmp 0x4b02a7
xor eax, eax
push eax
push dword [ebp - 0x50]
mov ecx, esi
call fcn.004b02e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00597338
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push str.CANNOT_ATTACK
jmp 0x4afe26