Function at 0x517090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0xc]
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ecx*4 + 0x20a514c]
push edi
test ecx, ecx
js 0x517472
cmp ecx, 0x1194
jge 0x517472
cmp dword [esi + 4], 3
jne 0x517472
movzx eax, word [esi + 0x78]
cmp eax, 1
je 0x5170d6
cmp eax, 6
jne 0x517472
cmp byte [esi + 0xa], 0
jg 0x517472
cmp byte [esi + 0x9c0], 0
jne 0x517472
mov edi, dword [ebp + 8]
mov eax, 0x1194
movzx edx, word [edi + 3]
cmp dx, ax
jae 0x517472
mov ebx, dword [edx*4 + 0x20a514c]
cmp dword [ebx + 4], 3
jne 0x517117
cmp byte [ebx + 0xa], 0
mov eax, edx
jle 0x51711e
movzx eax, cx
mov word [edi + 3], ax
mov ecx, dword [esi + 0x284]
movzx eax, ax
mov dword [esp + 0x10], eax
mov eax, dword [eax*4 + 0x20a514c]
test ecx, ecx
js 0x517472
cmp ecx, 0x1194
jge 0x517472
mov eax, dword [eax + 0x284]
test eax, eax
js 0x517472
cmp eax, 0x1194
jge 0x517472
cmp ecx, eax
jne 0x517472
push esi
call fcn.00478780
test al, al
jne 0x517472
mov ecx, dword [esp + 0x10]
mov bh, byte [esi + 0x149]
mov eax, dword [ecx*4 + 0x20a514c]
cmp bh, byte [eax + 0x149]
jne 0x517472
movzx eax, byte [edi + 6]
mov bl, byte [edi + 5]
push eax
movzx edx, bl
mov dword [esp + 0x18], eax
call fcn.0051fb10
add esp, 4
test al, al
je 0x517472
cmp bh, 0x1e
jne 0x5171f6
movsx eax, word [esi + 0x146]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, str.q
nop word [eax + eax]
mov ecx, dword [eax]
cmp ecx, dword [esp + 0x18]
jl 0x5171e1
cmp ecx, edx
jg 0x5171e1
cmp bl, 0x90
jb 0x5171ed
add eax, 4
cmp eax, 0x553f00
jl 0x5171d0
jmp 0x5171f6
mov al, byte [esi + 0x146]
mov byte [edi + 6], al
cmp byte [esi + 0x149], 0x1e
jne 0x51728b
movzx eax, word [esi + 0x144]
mov ecx, eax
add eax, 0xffffffc9
cmp ax, 0x47
ja 0x517226
mov ax, word [esi + 0x146]
sub ax, 0x70
cmp ax, 5
jbe 0x517262
lea eax, [ecx - 0x44]
cmp ax, 0x31
ja 0x517244
mov ax, word [esi + 0x146]
mov edx, 0x9f
sub ax, dx
cmp ax, 4
jbe 0x517262
lea eax, [ecx - 0x50]
cmp ax, 0x18
ja 0x51728b
mov ax, word [esi + 0x146]
mov ecx, 0xca
sub ax, cx
cmp ax, 4
ja 0x51728b
push str.You_cannot_use_this_skill_near_this_location.
push 0
push 0
push 0
push 0
push 0
push 1
push dword [esi]
push 0xb90558
call fcn.004cdc70
add esp, 0x24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x324]
xor ecx, ecx
add eax, 6
mov dword [esp + 0x18], 0xffff
nop
movzx edx, word [eax + 2]
lea ebx, [eax - 6]
cmp dx, word [esp + 0x18]
je 0x5172b9
cmp edx, 0xf
je 0x5172cb
cmp word [eax], 0xf
je 0x5172cb
inc ecx
add eax, 0x14
cmp ecx, 0x3c
jl 0x5172a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x517472
mov al, byte [esi + 0x149]
cmp al, 0x2d
jb 0x517315
cmp al, 0x32
ja 0x517315
movzx eax, al
lea ecx, [eax - 0x2d]
cmp eax, 0x2d
jl 0x517303
cmp ecx, 6
jge 0x517303
add eax, 0xffffffd3
imul eax, eax, 0x2ac
cmp dword [eax + 0x9d2b70], 3
je 0x517315
mov al, byte [esi + 0x144]
mov byte [edi + 5], al
mov al, byte [esi + 0x146]
mov byte [edi + 6], al
mov al, byte [esi + 0x149]
cmp al, 0x41
jb 0x51733e
cmp al, 0x44
ja 0x51733e
cmp dword [0x64376c], 2
je 0x51733e
mov al, byte [esi + 0x144]
mov byte [edi + 5], al
mov al, byte [esi + 0x146]
mov byte [edi + 6], al
movzx eax, word [ebx + 8]
push eax
push esi
call fcn.00507eb0
test al, al
je 0x517472
movzx eax, word [ebx + 8]
push eax
push esi
call fcn.00507f40
test al, al
je 0x517472
movzx eax, word [ebx + 8]
push 1
push dword [esp + 0x14]
push eax
push esi
call fcn.00517480
movzx eax, byte [edi + 6]
movzx edx, byte [edi + 5]
movzx ecx, word [edi + 3]
push eax
call fcn.00521330
movzx edi, word [ebx + 8]
lea eax, [esp + 0x1c]
add esp, 4
mov dword [esp + 0x18], edi
mov ecx, 0xbf0bd4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00405650
mov eax, dword [esp + 0x24]
mov ecx, dword [0xbf0bd4]
cmp byte [eax + 0xd], 0
jne 0x5173bb
cmp edi, dword [eax + 0x10]
jge 0x5173bd
mov eax, ecx
cmp eax, ecx
jne 0x5173c6
or eax, 0xffffffff
jmp 0x5173c9
mov eax, dword [eax + 0x3c]
mov ecx, dword [esi + 0x90c]
imul ecx, eax
mov eax, 0x51eb851f
movss xmm1, dword [esi + 0x108]
imul ecx
mov ecx, 0xbf0bd4
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm0, eax
lea eax, [esp + 0x18]
cvtdq2ps xmm0, xmm0
push eax
lea eax, [esp + 0x20]
push eax
subss xmm1, xmm0
movss dword [esi + 0x108], xmm1
movzx edi, word [ebx + 8]
mov dword [esp + 0x20], edi
call fcn.00405650
mov eax, dword [esp + 0x24]
mov ecx, dword [0xbf0bd4]
cmp byte [eax + 0xd], 0
jne 0x51742f
cmp edi, dword [eax + 0x10]
jge 0x517431
mov eax, ecx
cmp eax, ecx
jne 0x51743a
or eax, 0xffffffff
jmp 0x51743d
mov eax, dword [eax + 0x40]
mov ecx, dword [esi + 0x910]
imul ecx, eax
mov eax, 0xae147ae1
imul ecx
mov ecx, dword [esi]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esi + 0x128], eax
push dword [esi + 0x128]
cvttss2si eax, xmm1
push eax
call fcn.004e9750
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8