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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [edi + 0x6c], eax
mov eax, 0x28
mov dword [edi + 0x1c], esi
call fcn.005af400
add eax, 0x30c
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
push esi
mov eax, edi
fstp dword [edi + 0x2c]
call fcn.00531880
mov ecx, dword [ebp + 0xc]
fstp dword [edi + 0x30]
fldz
mov dl, byte [ebp + 0x10]
xor ebx, ebx
fst dword [edi + 0x34]
mov eax, 0x78
fst dword [edi + 0x120]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebx + 0x65]
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x24], ecx
mov byte [edi + 0x50], dl
mov byte [edi + 0x51], bl
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
mov dword [edi + 0x5c], ebx
mov dword [edi + 0xac], ebx
mov dword [edi + 0xb4], ebx
mov dword [edi + 0xb0], ebx
mov byte [edi + 0xb8], bl
mov byte [edi + 0xb9], bl
mov byte [edi + 0xba], 1
mov byte [edi + 0xbb], 1
mov byte [edi + 0xbc], bl
mov byte [edi + 0xbd], bl
mov byte [edi + 0xbe], bl
mov dword [edi + 0xc4], ebx
mov dword [edi + 0xd8], ebx
mov byte [edi + 0xbf], bl
mov dword [edi + 0xc0], ebx
mov dword [edi + 0x38], ebx
call fcn.005af400
add eax, 0x190
mov dword [edi + 0x3c], eax
mov eax, 0xc
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov eax, 0x24
mov dword [edi + 0x8c], eax
mov eax, 0x2a
mov dword [edi + 0x90], ebx
mov dword [edi + 0x94], eax
mov eax, 0x32
mov dword [edi + 0x9c], eax
or esi, 0xffffffff
lea ecx, [ebx + 0x73]
mov dword [edi + 0xa0], ebx
mov eax, 0x14
mov dword [edi + 0xa4], eax
mov dword [edi + 0x60], ebx
mov dword [edi + 0x80], esi
mov dword [edi + 0x28], ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x68], ebx
mov byte [edi + 0x88], bl
mov byte [edi + 0x70], bl
mov dword [edi + 0xf0], ebx
mov dword [edi + 0x98], ecx
mov dword [edi + 0xa8], ecx
mov byte [edi + 0x104], bl
mov dword [edi + 0x74], esi
fld1
mov byte [edi + 0x78], bl
fstp dword [edi + 0x11c]
mov dword [edi + 0x7c], esi
mov dword [edi + 0xdc], ebx
mov dword [edi + 0xd0], ebx
fst dword [edi + 0x84]
mov dword [edi + 0xe4], ebx
fstp dword [edi + 0x124]
mov dword [edi + 0x110], ebx
mov dword [edi + 0x114], ebx
mov dword [edi + 0x138], esi
mov dword [edi + 0x134], esi
mov dword [edi + 0x13c], esi
mov dword [edi + 0x118], ebx
mov dword [edi + 0x128], ebx
mov dword [edi + 0x12c], ebx
mov dword [edi + 0x140], ebx
mov dword [edi + 0x144], ebx
mov dword [edi + 0x130], esi
mov dword [edi + 0x148], esi
mov byte [edi + 0x14c], bl
mov dword [edi + 0x150], ebx
mov dword [edi + 0x154], esi
mov dword [edi + 0xf4], ebx
mov dword [edi + 0xf8], ebx
mov dword [edi + 0xfc], ebx
mov dword [edi + 0x100], ebx
mov edx, dword [edi + 4]
cmp edx, ebx
je 0x52279b
mov eax, dword [edi + 0x6c]
push eax
call fcn.00409080
test al, al
je 0x52279b
fld dword [edi + 0x2c]
fadd qword [0x6794c8]
fstp dword [edi + 0x2c]
mov eax, edi
call fcn.00524a70
mov eax, dword [edi + 0x24]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [ecx*4 + 0x7a6000]
mov dword [edi + 0xc8], 0x10e
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [esp + 0x14], 0x49f98
mov dword [esp + 0x10], 4
je 0x5227e2
push eax
mov eax, edi
call fcn.00524470
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
jne 0x5227f3
call fcn.00524370
jmp 0x523e4e
cmp ecx, 0xa
jne 0x522802
call fcn.00524370
jmp 0x523e4e
cmp ecx, 2
jne 0x52289b
call fcn.00524370
mov edx, dword [edi]
mov ecx, dword [edi + 0x118]
cmp ecx, ebx
mov eax, dword [edx + 0x820]
mov edx, dword [eax + 8]
je 0x522849
movzx eax, cx
cmp eax, dword [edx + 8]
jae 0x522849
lea eax, [eax + eax*4]
shl eax, 5
add eax, dword [edx]
cmp dword [eax + 0x9c], ecx
jne 0x522849
push ebx
push str.anim_cone
push eax
call fcn.00473a40
mov edx, dword [edi]
mov ecx, dword [edi + 0x118]
cmp ecx, ebx
mov eax, dword [edx + 0x820]
mov edx, dword [eax + 8]
je 0x522882
movzx eax, cx
cmp eax, dword [edx + 8]
jae 0x522882
lea eax, [eax + eax*4]
shl eax, 5
add eax, dword [edx]
cmp dword [eax + 0x9c], ecx
jne 0x522882
push esi
push str.anim_hair
push eax
call fcn.00473a40
mov dword [edi + 0xc4], 1
mov dword [edi + 0xd0], 0x172
jmp 0x523e4e
jmp 0x8443d0
jmp 0x85a000