Function at 0x47e970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a1b70
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x73c280]
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 - 0xdc], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xd0], edi
call fcn.00473a00
test al, al
jne 0x47f552
mov ecx, esi
call fcn.0047df90
test al, al
je 0x47e9e7
cmp edi, 0xff
jb 0x47e9ee
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0xbd]
call fcn.0047d310
push edi
push eax
call fcn.00505960
add esp, 8
xor al, al
jmp 0x47f554
lea eax, [edi + edi*4]
mov ecx, esi
push dword [esi + eax*8 + 0xef98]
mov dword [ebp - 0xc8], eax
call fcn.0047e410
test al, al
jne 0x47f552
mov ecx, dword [ebp - 0xc8]
lea eax, [ebp - 0xb8]
push eax
push dword [esi + ecx*8 + 0xef98]
mov ecx, dword [0x74ad40]
call fcn.004868b0
test eax, eax
jne 0x47eb3d
movaps xmm0, xmmword [0x6b3390]
lea ecx, [ebp - 0x60]
movups xmmword [ebp - 0x1f0], xmm0
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0x1f0]
movaps xmm0, xmmword [0x6bb2f0]
movups xmmword [ebp - 0x1e0], xmm0
push eax
movaps xmm0, xmmword [0x6bb3f0]
movups xmmword [ebp - 0x1d0], xmm0
movaps xmm0, xmmword [0x6bda10]
movups xmmword [ebp - 0x1c0], xmm0
movaps xmm0, xmmword [0x6bdc30]
movups xmmword [ebp - 0x1b0], xmm0
movaps xmm0, xmmword [0x6bb360]
movups xmmword [ebp - 0x1a0], xmm0
movaps xmm0, xmmword [0x6bb180]
movups xmmword [ebp - 0x190], xmm0
movaps xmm0, xmmword [0x6bae50]
movups xmmword [ebp - 0x180], xmm0
movaps xmm0, xmmword [0x6b50d0]
movups xmmword [ebp - 0x170], xmm0
movaps xmm0, xmmword [0x6b5030]
movups xmmword [ebp - 0x160], xmm0
movaps xmm0, xmmword [0x6bda80]
movups xmmword [ebp - 0x150], xmm0
movaps xmm0, xmmword [0x6bd7a0]
movups xmmword [ebp - 0x140], xmm0
movaps xmm0, xmmword [0x6b2f70]
movups xmmword [ebp - 0x130], xmm0
movaps xmm0, xmmword [0x6bdbe0]
movups xmmword [ebp - 0x120], xmm0
movaps xmm0, xmmword [0x6bd780]
movups xmmword [ebp - 0x110], xmm0
movaps xmm0, xmmword [0x6b5bd0]
movups xmmword [ebp - 0x100], xmm0
call fcn.0047cbc0
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.00505960
add esp, 8
xor al, al
jmp 0x47f554
mov ecx, dword [ebp - 0xb8]
call fcn.00486da0
test eax, eax
je 0x47eb78
push edi
mov ecx, esi
call fcn.00473ba0
test eax, eax
je 0x47eb78
mov eax, dword [ebp - 0xc8]
mov ecx, dword [0x74ab70]
push edi
push dword [esi + eax*8 + 0xef98]
call fcn.004e1a20
xor al, al
jmp 0x47f554
push edi
mov ecx, esi
call fcn.0047e1d0
test al, al
je 0x47e9e7
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov eax, dword [eax + 0x88]
call eax
mov edi, eax
mov dword [ebp - 0xe0], edi
test edi, edi
jne 0x47ebc7
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0xbd]
call fcn.0047d570
push dword [ebp - 0xd0]
push eax
call fcn.00505960
add esp, 8
xor al, al
jmp 0x47f554
mov ecx, edi
call fcn.00445cf0
test eax, eax
jne 0x47e9e7
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
call fcn.00486d50
test eax, eax
jne 0x47ec0d
mov ecx, dword [ebp - 0xb8]
call fcn.00485c80
test eax, eax
jne 0x47ec0d
mov ecx, dword [ebp - 0xb8]
call fcn.00486c90
test eax, eax
je 0x47ef09
mov ecx, dword [ebp - 0xb8]
call fcn.00486d20
mov ecx, esi
test eax, eax
je 0x47ec25
call fcn.00477040
jmp 0x47ec2a
call fcn.00477010
mov dword [ebp - 0xbc], eax
test eax, eax
jne 0x47ed45
mov ecx, esi
call fcn.00476fb0
mov ecx, dword [ebp - 0xb8]
call fcn.00486d20
mov ecx, esi
test eax, eax
je 0x47ec57
call fcn.00477040
jmp 0x47ec5c
call fcn.00477010
mov dword [ebp - 0xbc], eax
test eax, eax
jne 0x47ed45
mov ecx, dword [ebp - 0xb8]
call fcn.00486c90
test eax, eax
je 0x47ecdb
push ecx
lea eax, [ebp - 0xbc]
mov dword [esp], 0x44fa0000
push eax
mov ecx, edi
call fcn.00445f60
mov edx, dword [esi + 4]
lea ecx, [esi + 4]
mov dword [ebp - 0xc4], edx
test al, al
je 0x47ed15
mov ecx, dword [ebp - 0xbc]
call fcn.00440e90
push 1
push eax
mov eax, dword [ebp - 0xc4]
lea ecx, [esi + 4]
call dword [eax + 0x64]
push dword [ebp - 0xd0]
mov ecx, esi
push dword [ebp - 0xb8]
push dword [ebp - 0xbc]
push edi
call fcn.0047e690
test al, al
je 0x47e9e7
mov ecx, dword [ebp - 0xb8]
call fcn.00485c90
test eax, eax
je 0x47ed1f
push edi
mov ecx, edi
mov dword [ebp - 0xbc], edi
call fcn.00446b90
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xbd]
call fcn.0047d490
push eax
call fcn.005058c0
add esp, 4
jmp 0x47ef09
mov eax, dword [edx + 4]
push str.NEED_TARGET
jmp 0x47ed83
mov ecx, dword [ebp - 0xb8]
call fcn.00486d20
mov edx, dword [esi + 4]
lea ecx, [esi + 4]
test eax, eax
mov eax, dword [edx + 4]
je 0x47ed3e
push str.ONLY_FOR_CORPSE
jmp 0x47ed83
push str.NEED_TARGET
jmp 0x47ed83
mov ecx, dword [ebp - 0xb8]
call fcn.00486d60
test eax, eax
je 0x47ee85
mov eax, dword [ebp - 0xbc]
cmp edi, eax
jne 0x47eda9
mov ecx, dword [ebp - 0xb8]
call fcn.00485c90
test eax, eax
jne 0x47eed5
push str.CANNOT_USE_SELF
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov eax, dword [eax + 4]
call eax
push eax
push str._is_
call dword [sym.imp.python27.dll_Py_BuildValue]
push eax
push str.OnCannotUseSkill
push dword [esi + 8]
call fcn.005bf730
add esp, 0x18
xor al, al
jmp 0x47f554
push eax
mov ecx, edi
call fcn.00440f40
test al, al
jne 0x47ee4c
mov ecx, dword [ebp - 0xbc]
call fcn.004414c0
test eax, eax
je 0x47ee4c
push dword [ebp - 0xb8]
mov ecx, esi
call fcn.0047e4e0
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x47eed5
push dword [ebp - 0xbc]
mov ecx, edi
call fcn.00440cb0
mov ecx, dword [ebp - 0xc4]
mov eax, ecx
shr eax, 0x1f
fstp dword [ebp - 0xd4]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x6b3600]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [ebp - 0xd4]
comiss xmm0, xmm1
jb 0x47eed5
push ecx
push dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xbc]
call fcn.00440e90
push eax
mov ecx, esi
call fcn.00477690
xor al, al
jmp 0x47f554
mov ecx, dword [ebp - 0xb8]
call fcn.00485c90
test eax, eax
je 0x47ee7b
lea eax, [ebp - 0x60]
mov dword [ebp - 0xbc], edi
push eax
lea ecx, [ebp - 0xbd]
call fcn.0047cf00
push eax
call fcn.005058c0
add esp, 4
jmp 0x47eed5
push str.ONLY_FOR_ALLIANCE
jmp 0x47ed7a
mov ecx, dword [ebp - 0xbc]
call fcn.004413b0
test eax, eax
je 0x47ee9e
push str.CANNOT_ATTACK_ENEMY_IN_SAFE_AREA
jmp 0x47ed7a
push dword [ebp - 0xbc]
mov ecx, edi
call fcn.00440f40
test al, al
je 0x47f571
push dword [ebp - 0xd0]
mov ecx, esi
push dword [ebp - 0xb8]
push dword [ebp - 0xbc]
push edi
call fcn.0047e690
test al, al
je 0x47e9e7
push dword [ebp - 0xbc]
mov ecx, edi
call fcn.00446b90
cmp edi, dword [ebp - 0xbc]
je 0x47ef09
mov ecx, edi
call fcn.00445cd0
mov ecx, edi
test al, al
je 0x47eefe
call fcn.0044ba20
jmp 0x47ef09
push dword [ebp - 0xbc]
call fcn.0044b9c0
mov ecx, dword [ebp - 0xb8]
call fcn.00485c80
test eax, eax
je 0x47ef95
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x47ef30
cmp eax, edi
je 0x47ef30
push eax
mov ecx, edi
call fcn.0044b9c0
jmp 0x47ef95
lea eax, [ebp - 0xc4]
mov ecx, esi
push eax
call fcn.004755e0
mov ecx, esi
test al, al
je 0x47ef5d
push dword [ebp - 0xc4]
call fcn.00474020
test eax, eax
je 0x47ef95
push eax
mov ecx, edi
call fcn.0044b9c0
jmp 0x47ef95
lea eax, [ebp - 0x1c]
push eax
call fcn.00475620
test al, al
je 0x47ef77
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0044b9e0
jmp 0x47ef95
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xbd]
call fcn.0047d190
push dword [ebp - 0xd0]
push eax
call fcn.00505960
add esp, 8
mov eax, dword [ebp - 0xc8]
push ecx
mov ecx, dword [ebp - 0xb8]
movss xmm0, dword [esi + eax*8 + 0xefa8]
movss dword [esp], xmm0
call fcn.00486b20
push dword [ebp - 0xb8]
mov ecx, esi
mov dword [ebp - 0xd4], eax
call fcn.0047e4e0
cmp dword [ebp - 0xd4], 0
mov dword [ebp - 0xc4], eax
jbe 0x47f38d
cmp dword [ebp - 0xbc], 0
je 0x47f38d
mov dword [ebp - 0xcc], 1
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 4], 0
call fcn.00486cd0
test eax, eax
je 0x47f1e4
lea eax, [ebp - 0xec]
push eax
mov eax, dword [ebp - 0xc4]
push dword [ebp - 0xbc]
push ecx
movd xmm0, eax
mov ecx, edi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6b3600]
cvtpd2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.004463d0
test al, al
je 0x47f2ed
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xb8]
push dword [esi + eax*8 + 0xefa0]
call fcn.004869a0
mov edi, eax
mov eax, dword [ebp - 0xc8]
push ecx
mov ecx, dword [ebp - 0xb8]
movss xmm0, dword [esi + eax*8 + 0xefa8]
movss dword [esp], xmm0
call fcn.004864e0
mov ecx, dword [ebp - 0xb8]
mov esi, eax
call fcn.00486cf0
test eax, eax
mov eax, dword [ebp - 0xdc]
setne cl
push ecx
mov ecx, dword [ebp - 0xc8]
push esi
push edi
mov edi, dword [ebp - 0xe0]
push dword [eax + ecx*8 + 0xef98]
mov ecx, edi
call fcn.00446a20
test al, al
jne 0x47f125
mov edx, dword [ebp - 0xec]
test edx, edx
je 0x47e9e7
mov ecx, dword [ebp - 0xe4]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x47f114
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f57b
push ecx
push edx
call fcn.005c8a85
add esp, 8
xor al, al
jmp 0x47f554
mov esi, dword [ebp - 0xec]
mov dword [ebp - 0xd8], esi
cmp esi, dword [ebp - 0xe8]
je 0x47f2ed
mov eax, 1
cmp eax, dword [ebp - 0xd4]
jae 0x47f343
mov ecx, dword [esi]
mov dword [ebp - 0xc4], ecx
cmp dword [ebp - 0xbc], ecx
je 0x47f1ca
call fcn.00441290
test eax, eax
jne 0x47f1c4
mov esi, dword [ebp - 0xc4]
mov ecx, edi
push esi
call fcn.004453d0
mov edi, dword [0x74ab70]
mov ecx, esi
call fcn.00440d20
lea edx, [ebp - 0x1c]
push edx
lea ecx, [eax + 0x1dc]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0xc4]
mov esi, eax
call fcn.00440e90
push esi
push eax
mov ecx, edi
call fcn.004dd3c0
mov eax, dword [ebp - 0xcc]
mov esi, dword [ebp - 0xd8]
inc eax
mov edi, dword [ebp - 0xe0]
mov dword [ebp - 0xcc], eax
jmp 0x47f1ca
mov eax, dword [ebp - 0xcc]
add esi, 4
mov dword [ebp - 0xd8], esi
cmp esi, dword [ebp - 0xe8]
jne 0x47f142
jmp 0x47f2ed
mov ecx, dword [ebp - 0xb8]
call fcn.00486cc0
test eax, eax
je 0x47f2ed
lea eax, [ebp - 0xec]
push eax
mov eax, dword [ebp - 0xc4]
push ecx
mov ecx, edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6b3600]
cvtpd2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.004461a0
test al, al
je 0x47f2ed
mov esi, dword [ebp - 0xec]
mov dword [ebp - 0xd8], esi
cmp esi, dword [ebp - 0xe8]
je 0x47f2ed
mov eax, 1
nop
cmp eax, dword [ebp - 0xd4]
jae 0x47f343
mov ecx, dword [esi]
mov dword [ebp - 0xc4], ecx
cmp dword [ebp - 0xbc], ecx
je 0x47f2d8
call fcn.00441290
test eax, eax
jne 0x47f2d2
mov esi, dword [ebp - 0xc4]
mov ecx, edi
push esi
call fcn.004453d0
mov edi, dword [0x74ab70]
mov ecx, esi
call fcn.00440d20
lea edx, [ebp - 0x1c]
push edx
lea ecx, [eax + 0x1dc]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0xc4]
mov esi, eax
call fcn.00440e90
push esi
push eax
mov ecx, edi
call fcn.004dd3c0
mov eax, dword [ebp - 0xcc]
mov esi, dword [ebp - 0xd8]
inc eax
mov edi, dword [ebp - 0xe0]
mov dword [ebp - 0xcc], eax
jmp 0x47f2d8
mov eax, dword [ebp - 0xcc]
add esi, 4
mov dword [ebp - 0xd8], esi
cmp esi, dword [ebp - 0xe8]
jne 0x47f250
mov eax, dword [ebp - 0xcc]
mov esi, dword [ebp - 0xd4]
cmp eax, esi
jae 0x47f343
sub esi, eax
nop
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
push dword [ebp - 0xbc]
call fcn.00446670
movss xmm0, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
xorps xmm0, xmmword [0x6b3610]
mov ecx, edi
push eax
movss dword [ebp - 0x18], xmm0
call fcn.00445460
mov ecx, dword [0x74ab70]
lea eax, [ebp - 0x1c]
push eax
push 0
call fcn.004dd3c0
sub esi, 1
jne 0x47f300
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x47f387
mov edx, dword [ebp - 0xe4]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x47f37d
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f57b
push edx
push ecx
call fcn.005c8a85
add esp, 8
mov esi, dword [ebp - 0xdc]
mov ecx, esi
call fcn.00477000
mov ecx, dword [ebp - 0xb8]
call fcn.00453330
test eax, eax
jne 0x47f531
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xb8]
push dword [esi + eax*8 + 0xefa0]
call fcn.004869a0
mov edi, eax
mov eax, dword [ebp - 0xc8]
push ecx
mov ecx, dword [ebp - 0xb8]
movss xmm0, dword [esi + eax*8 + 0xefa8]
movss dword [esp], xmm0
call fcn.004864e0
mov ecx, dword [ebp - 0xb8]
mov esi, eax
call fcn.00486cf0
test eax, eax
mov eax, dword [ebp - 0xc8]
setne cl
push ecx
mov ecx, dword [ebp - 0xe0]
push esi
mov esi, dword [ebp - 0xdc]
push edi
push dword [esi + eax*8 + 0xef98]
call fcn.00446a20
test al, al
jne 0x47f531
movaps xmm0, xmmword [0x6b3390]
lea eax, [ebp - 0x1f0]
movups xmmword [ebp - 0x1f0], xmm0
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xf0], 0
movaps xmm0, xmmword [0x6bb2f0]
movups xmmword [ebp - 0x1e0], xmm0
push eax
movaps xmm0, xmmword [0x6bb3f0]
movups xmmword [ebp - 0x1d0], xmm0
movaps xmm0, xmmword [0x6bda10]
movups xmmword [ebp - 0x1c0], xmm0
movaps xmm0, xmmword [0x6bdc30]
movups xmmword [ebp - 0x1b0], xmm0
movaps xmm0, xmmword [0x6bb360]
movups xmmword [ebp - 0x1a0], xmm0
movaps xmm0, xmmword [0x6bd8d0]
movups xmmword [ebp - 0x190], xmm0
movaps xmm0, xmmword [0x6ba140]
movups xmmword [ebp - 0x180], xmm0
movaps xmm0, xmmword [0x6bdad0]
movups xmmword [ebp - 0x170], xmm0
movaps xmm0, xmmword [0x6bd9b0]
movups xmmword [ebp - 0x160], xmm0
movaps xmm0, xmmword [0x6bd960]
movups xmmword [ebp - 0x150], xmm0
movaps xmm0, xmmword [0x6bda00]
movups xmmword [ebp - 0x140], xmm0
movaps xmm0, xmmword [0x6bd920]
movups xmmword [ebp - 0x130], xmm0
movaps xmm0, xmmword [0x6bb370]
movups xmmword [ebp - 0x120], xmm0
movaps xmm0, xmmword [0x6b39e0]
movups xmmword [ebp - 0x110], xmm0
movaps xmm0, xmmword [0x6bdbc0]
movups xmmword [ebp - 0x100], xmm0
call fcn.0047cbc0
push dword [ebp - 0xd0]
lea eax, [ebp - 0xb4]
push eax
call fcn.00505960
add esp, 8
xor al, al
jmp 0x47f554
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
je 0x47f542
call fcn.00440e90
jmp 0x47f544
xor eax, eax
push eax
push dword [ebp - 0xd0]
mov ecx, esi
call fcn.0047e930
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.005c8a4d
mov esp, ebp
pop ebp
ret 4
push str.CANNOT_ATTACK
jmp 0x47ed7a
call fcn.0064e36a
int3