Function at 0x4bc8c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x603cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6a1450]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x6a1450]
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.004b3b00
test al, al
jne 0x4bd051
call fcn.004bc860
test al, al
je 0x4bd089
cmp edi, 0xff
jb 0x4bc938
push edi
push str.CPythonPlayer::__UseSkill_dwSlotIndex_d__Its_not_available_skill_slot_number
call fcn.0052ad40
add esp, 8
jmp 0x4bd089
lea eax, [edi + edi*4]
mov ecx, esi
push dword [esi + eax*8 + 0x10c9c]
mov dword [esp + 0x30], eax
call fcn.004bd550
test al, al
jne 0x4bd051
mov ecx, dword [0x6f86f0]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x30]
push dword [esi + eax*8 + 0x10c9c]
call fcn.004c4170
test eax, eax
jne 0x4bc987
push edi
push str.CPythonPlayer::__UseSkill_dwSlotIndex_d__There_is_no_skill_data
call fcn.0052ad40
add esp, 8
jmp 0x4bd089
mov ecx, dword [esp + 0x14]
call fcn.004c7760
test eax, eax
je 0x4bc9bc
push edi
mov ecx, esi
call fcn.004b2c70
test eax, eax
je 0x4bc9bc
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x6f448c]
push edi
push dword [esi + eax*8 + 0x10c9c]
call fcn.004a4e50
jmp 0x4bd089
push edi
mov ecx, esi
call fcn.004bc350
test al, al
je 0x4bd089
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov dword [esp + 0xc], ecx
mov eax, dword [eax + 0x90]
call eax
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
jne 0x4bc9fb
push edi
push str.CPythonPlayer::__UseSkill_dwSlotIndex_d__There_is_no_main_player
call fcn.0052ad40
add esp, 8
jmp 0x4bd089
mov ecx, esi
call fcn.004648c0
test eax, eax
jne 0x4bd089
mov ecx, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x24], edi
call fcn.004c7750
test eax, eax
jne 0x4bca33
call fcn.004c7700
test eax, eax
jne 0x4bca33
call fcn.004c7730
test eax, eax
je 0x4bccae
call fcn.004c7740
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x4bca47
call fcn.004b5c40
jmp 0x4bca4c
call fcn.004b5c70
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
jne 0x4bcb71
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.004b5c00
mov ecx, dword [esp + 0x14]
call fcn.004c7740
mov ecx, edi
test eax, eax
je 0x4bca7b
call fcn.004b5c40
jmp 0x4bca80
call fcn.004b5c70
mov edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
test edi, edi
jne 0x4bcb71
mov ecx, dword [esp + 0x14]
call fcn.004c7730
test eax, eax
je 0x4bcb2f
movss xmm2, dword [0x65e914]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00463940
test al, al
je 0x4bcb25
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
mov ecx, edi
push 1
mov esi, dword [esi]
call fcn.00461090
mov ecx, dword [esp + 0x10]
push eax
call dword [esi + 0x68]
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.004bc730
test al, al
je 0x4bd089
mov ecx, dword [esp + 0x14]
call fcn.004c77e0
test eax, eax
je 0x4bcb35
mov edi, esi
mov ecx, esi
push esi
mov dword [esp + 0x28], edi
call fcn.00463540
push str.__ALERT__
call fcn.0052acb0
add esp, 4
jmp 0x4bccae
push str.NEED_TARGET
jmp 0x4bd05a
mov edi, dword [esp + 0x10]
jmp 0x4bcafc
call fcn.004c7740
lea ecx, [edi + 4]
test eax, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
je 0x4bcb6a
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 0x4bd081
push str.NEED_TARGET
jmp 0x4bcb4b
mov ecx, dword [esp + 0x14]
call fcn.004c77d0
test eax, eax
je 0x4bcc47
cmp esi, edi
jne 0x4bcb9d
call fcn.004c77e0
test eax, eax
jne 0x4bcc88
push str.CANNOT_USE_SELF
jmp 0x4bd05a
push edi
mov ecx, esi
call fcn.00460b80
test al, al
jne 0x4bcc1b
mov ecx, edi
call fcn.00460f10
test eax, eax
je 0x4bcc1b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
call fcn.004bc710
mov dword [esp + 0x18], eax
test eax, eax
je 0x4bcc88
push edi
mov ecx, esi
call fcn.00461120
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 + 0x65ea90]
cvtpd2ps xmm0, xmm1
comiss xmm2, xmm0
jb 0x4bcc88
push ecx
push dword [esp + 0x2c]
mov ecx, edi
call fcn.00461090
mov ecx, dword [esp + 0x18]
push eax
call fcn.004b68a0
jmp 0x4bd089
mov ecx, dword [esp + 0x14]
call fcn.004c77e0
test eax, eax
je 0x4bcc3d
mov edi, esi
push str.__ALERT_
mov dword [esp + 0x28], edi
call fcn.0052acb0
add esp, 4
jmp 0x4bcc88
push str.ONLY_FOR_ALLIANCE
jmp 0x4bd05a
mov ecx, edi
call fcn.0045e760
test eax, eax
je 0x4bcc5c
push str.CANNOT_ATTACK_ENEMY_IN_SAFE_AREA
jmp 0x4bd05a
push edi
mov ecx, esi
call fcn.00460b80
test al, al
je 0x4bd055
push dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push edi
push esi
call fcn.004bc730
test al, al
je 0x4bd089
push edi
mov ecx, esi
call fcn.00463540
cmp esi, edi
je 0x4bccae
mov ecx, esi
call fcn.00463520
mov ecx, esi
test al, al
je 0x4bcca8
call fcn.00469740
jmp 0x4bccae
push edi
call fcn.00469790
mov ecx, dword [esp + 0x14]
call fcn.004c7700
test eax, eax
je 0x4bcd1f
test edi, edi
je 0x4bcccd
cmp edi, esi
je 0x4bcccd
push edi
mov ecx, esi
call fcn.00469790
jmp 0x4bcd1f
lea eax, [esp + 0x18]
push eax
call fcn.004b1270
test al, al
je 0x4bccf2
push dword [esp + 0x18]
call fcn.004b13c0
test eax, eax
je 0x4bcd1f
push eax
mov ecx, esi
call fcn.00469790
jmp 0x4bcd1f
lea eax, [esp + 0x30]
push eax
call fcn.004b1290
test al, al
je 0x4bcd0e
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00469750
jmp 0x4bcd1f
push dword [esp + 0x28]
push str.CPythonPlayer::__UseSkill__d____
call fcn.0052ad40
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
movss xmm1, dword [eax + ecx*8 + 0x10cac]
mov ecx, dword [esp + 0x14]
call fcn.004c81a0
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
call fcn.004bc710
cmp dword [esp + 0xc], 0
mov dword [esp + 0x18], eax
jbe 0x4bcfa5
test edi, edi
je 0x4bcfa5
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.004c7710
test eax, eax
je 0x4bce66
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 + 0x65ea90]
cvtpd2ps xmm1, xmm0
call fcn.00463b40
test al, al
je 0x4bcf36
mov esi, dword [esp + 0x30]
mov edx, 1
cmp esi, dword [esp + 0x34]
je 0x4bce5d
mov eax, dword [esp + 0xc]
cmp edx, eax
jae 0x4bcf94
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp edi, ecx
je 0x4bce54
call fcn.0045f310
test eax, eax
jne 0x4bce4c
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push edi
call fcn.00463660
mov ecx, edi
call fcn.004611e0
mov edi, dword [0x6f448c]
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.00461090
push eax
mov ecx, edi
call fcn.004a7b10
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
inc edx
mov dword [esp + 0x1c], edx
jmp 0x4bce50
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
add esi, 4
cmp esi, dword [esp + 0x34]
jne 0x4bcde3
mov esi, dword [esp + 0x20]
jmp 0x4bcf3b
call fcn.004c7720
test eax, eax
je 0x4bcf3b
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 + 0x65ea90]
cvtpd2ps xmm1, xmm0
call fcn.00463e60
test al, al
je 0x4bcf36
mov esi, dword [esp + 0x30]
mov edx, 1
cmp esi, dword [esp + 0x34]
je 0x4bce5d
mov eax, dword [esp + 0xc]
cmp edx, eax
jae 0x4bcf94
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp edi, ecx
je 0x4bcf27
call fcn.0045f310
test eax, eax
jne 0x4bcf1f
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push edi
call fcn.00463660
mov ecx, edi
call fcn.004611e0
mov edi, dword [0x6f448c]
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.00461090
push eax
mov ecx, edi
call fcn.004a7b10
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
inc edx
mov dword [esp + 0x1c], edx
jmp 0x4bcf23
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
add esi, 4
cmp esi, dword [esp + 0x34]
jne 0x4bceb6
mov esi, dword [esp + 0x20]
jmp 0x4bcf3b
mov edx, 1
mov eax, dword [esp + 0xc]
cmp edx, eax
jae 0x4bcf94
sub eax, edx
mov dword [esp + 0xc], eax
lea esp, [esp]
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
push edi
call fcn.00463860
movss xmm0, dword [esp + 0x40]
lea eax, [esp + 0x3c]
xorps xmm0, xmmword [0x65eab0]
mov ecx, esi
push eax
movss dword [esp + 0x44], xmm0
call fcn.004635e0
mov ecx, dword [0x6f448c]
lea eax, [esp + 0x3c]
push eax
push 0
call fcn.004a7b10
dec dword [esp + 0xc]
jne 0x4bcf50
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 0xffffffff
call fcn.0045b380
mov edx, dword [esp + 0x10]
mov ecx, edx
call fcn.004b6800
mov ecx, dword [esp + 0x14]
call fcn.00479460
test eax, eax
jne 0x4bd026
mov eax, dword [esp + 0x2c]
push dword [edx + eax*8 + 0x10ca4]
call fcn.004c82d0
mov esi, eax
mov eax, dword [esp + 0x2c]
movss xmm1, dword [edx + eax*8 + 0x10cac]
call fcn.004c8340
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.004c7850
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 + 0x10c9c]
call fcn.004641a0
test al, al
jne 0x4bd028
push dword [esp + 0x28]
push str.CPythonPlayer::__UseSkill__d____pkInstMain__NEW_UseSkill___ERROR
call fcn.0052ad40
add esp, 8
jmp 0x4bd089
mov esi, edx
test edi, edi
je 0x4bd043
mov ecx, edi
call fcn.00461090
push eax
push dword [esp + 0x2c]
mov ecx, esi
call fcn.004bd0b0
mov al, 1
jmp 0x4bd08b
xor eax, eax
mov ecx, esi
push eax
push dword [esp + 0x2c]
call fcn.004bd0b0
mov al, 1
jmp 0x4bd08b
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.005bfc80
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.005c9914
mov esp, ebp
pop ebp
ret 4