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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [0x493014]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov edi, dword [0x4941c0]
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 0x28]
mov ebx, dword [edi + 0x24]
lea eax, [eax + eax*2]
shl eax, 7
add eax, ebx
cmp ebx, eax
jae 0x414655
add ebx, 0x20
mov dword [esp + 0x14], ebx
cmp dword [ebx + 4], 5
jne 0x414630
mov eax, dword [ebx]
mov edx, dword [ecx + 0x20]
cmp dword [eax + 0x164], 0x10
lea esi, [eax + 0x150]
jb 0x413d48
mov esi, dword [eax + 0x150]
cmp dword [edx + 0x164], 0x10
lea ecx, [edx + 0x150]
jb 0x413d5d
mov ecx, dword [edx + 0x150]
push dword [eax + 0x160]
mov edx, dword [edx + 0x160]
push esi
call fcn.0045db10
add esp, 8
test al, al
je 0x414630
lea eax, [esp + 0xa8]
push eax
call fcn.0040c520
sub esp, 0x14
mov ecx, esp
movq xmm0, qword [eax]
mov esi, dword [eax + 8]
movq qword [esp + 0x110], xmm0
xorps xmm0, xmm0
push 0xd
movups xmmword [ecx], xmm0
push str.OnSetClothing
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.004569a0
movq xmm0, qword [esp + 0x110]
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], esi
lea eax, [esp + 0xdc]
push eax
call fcn.0040c420
movq xmm0, qword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 0x38]
movq qword [esp + 0x40], xmm0
mov edi, dword [esp + 0x44]
mov dword [esp + 0x34], ebx
mov eax, dword [eax + 0x20]
mov dword [esp + 0x48], ebx
movd xmm0, dword [eax + 0x354]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x114], xmm0
movd xmm0, dword [eax + 0x358]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x11c], xmm0
movd xmm0, dword [eax + 0x35c]
lea eax, [edi + 0xe]
cvtdq2ps xmm0, xmm0
push eax
mov dword [esp + 0x11c], eax
movss dword [esp + 0x124], xmm0
call fcn.004649c1
mov esi, dword [esp + 0x44]
add esp, 0x2c
mov ebx, eax
push edi
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 1
push esi
call fcn.0046470a
mov al, byte [esp + 0x28]
mov byte [edi + ebx], al
mov eax, dword [esp + 0xf4]
mov byte [edi + ebx + 1], 4
mov dword [edi + ebx + 2], eax
mov eax, dword [esp + 0xfc]
mov dword [edi + ebx + 6], eax
mov eax, dword [esp + 0x100]
mov dword [edi + ebx + 0xa], eax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xf8]
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
movq xmm0, qword [esp + 0x20]
mov eax, dword [eax + 0x20]
movq qword [esp + 0x38], xmm0
movd xmm0, dword [eax + 0x360]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xf8], xmm0
movd xmm0, dword [eax + 0x364]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x100], xmm0
movd xmm0, dword [eax + 0x368]
lea eax, [edi + 0xe]
cvtdq2ps xmm0, xmm0
push eax
movss dword [esp + 0x100], xmm0
call fcn.004649c1
add esp, 0xc
mov esi, eax
mov dword [esp + 0xec], esi
push edi
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 1
push ebx
call fcn.0046470a
mov al, byte [esp + 0x40]
mov byte [esi + edi], al
mov eax, dword [esp + 0xf8]
mov byte [esi + edi + 1], 4
mov dword [esi + edi + 2], eax
mov eax, dword [esp + 0x100]
mov dword [esi + edi + 6], eax
mov eax, dword [esp + 0xfc]
mov dword [esi + edi + 0xa], eax
add edi, 0xe
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x38], esi
inc ebx
mov dword [esp + 0x3c], edi
mov eax, dword [eax + 0x20]
movq xmm0, qword [esp + 0x38]
movq qword [esp + 0x44], xmm0
mov dword [esp + 0x4c], ebx
movd xmm0, dword [eax + 0x36c]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xf8], xmm0
movd xmm0, dword [eax + 0x370]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x100], xmm0
movd xmm0, dword [eax + 0x374]
lea eax, [edi + 0xe]
cvtdq2ps xmm0, xmm0
push eax
movss dword [esp + 0x100], xmm0
call fcn.004649c1
add esp, 0xc
mov esi, eax
mov dword [esp + 0xc], esi
push edi
push dword [esp + 0xf0]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 1
push dword [esp + 0xf0]
call fcn.0046470a
mov byte [edi + esi + 1], 4
mov al, bl
mov byte [edi + esi], al
inc ebx
mov eax, dword [esp + 0xf8]
mov dword [edi + esi + 2], eax
mov eax, dword [esp + 0x100]
mov dword [edi + esi + 6], eax
mov eax, dword [esp + 0xfc]
mov dword [edi + esi + 0xa], eax
add edi, 0xe
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
movq xmm0, qword [esp + 0x44]
mov eax, dword [eax + 0x20]
movq qword [esp + 0x50], xmm0
mov dword [esp + 0x58], ebx
mov esi, dword [eax + 0x4a4]
lea eax, [edi + 6]
push eax
call fcn.004649c1
add esp, 0xc
mov dword [esp + 0xec], eax
push edi
push dword [esp + 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 1
push dword [esp + 0x10]
call fcn.0046470a
mov ecx, dword [esp + 0xf4]
mov al, bl
mov dword [esp + 0x50], ecx
mov dword [esp + 0x100], 0
mov dword [esp + 0xfc], 0
mov byte [ecx + edi], al
mov eax, dword [esp + 0x18]
mov byte [ecx + edi + 1], 5
mov dword [ecx + edi + 2], esi
add edi, 6
mov dword [esp + 0x54], edi
lea esi, [ebx + 1]
mov eax, dword [eax + 0x20]
movq xmm0, qword [esp + 0x50]
movq qword [esp + 0x5c], xmm0
mov dword [esp + 0x64], esi
movd xmm0, dword [eax + 0x378]
lea eax, [edi + 0xe]
cvtdq2ps xmm0, xmm0
push eax
movss dword [esp + 0xfc], xmm0
call fcn.004649c1
mov ebx, dword [esp + 0xf8]
add esp, 0xc
mov dword [esp + 0xc], eax
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 1
push ebx
call fcn.0046470a
mov ecx, dword [esp + 0x14]
lea ebx, [edi + 0xe]
mov al, byte [esp + 0x64]
inc esi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ebx
movq xmm0, qword [esp + 0x5c]
mov byte [ecx + edi], al
mov eax, dword [esp + 0xf8]
mov byte [ecx + edi + 1], 4
mov dword [ecx + edi + 2], eax
mov eax, dword [esp + 0x100]
mov dword [ecx + edi + 6], eax
mov eax, dword [esp + 0xfc]
mov dword [ecx + edi + 0xa], eax
lea edi, [ebx + 1]
push edi
movq qword [esp + 0x9c], xmm0
mov dword [esp + 0xa4], esi
call fcn.004649c1
add esp, 0xc
mov dword [esp + 0xec], eax
push ebx
push dword [esp + 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 1
push dword [esp + 0x10]
call fcn.0046470a
mov ecx, dword [esp + 0xf4]
mov al, byte [esp + 0xa0]
mov byte [ebx + ecx], 0
mov byte [ecx + 0x3c], al
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x38], esi
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 4]
push 1
push edi
push ecx
mov dword [ecx + 8], eax
call fcn.00401000
mov edi, dword [esp + 0x28]
add esp, 0x14
push eax
lea eax, [edi - 0x20]
push 0
push eax
call fcn.004021c0
mov eax, dword [esp + 0xf8]
add esp, 0xc
push 1
push eax
call fcn.0046470a
lea eax, [esp + 0xd0]
push eax
call fcn.0040c520
sub esp, 0xc
mov ecx, esp
movq xmm0, qword [eax]
mov esi, dword [eax + 8]
movq qword [esp + 0x110], xmm0
xorps xmm0, xmm0
push 0xd
movups xmmword [ecx], xmm0
push str.OnSetClothing
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.004569a0
movq xmm0, qword [esp + 0x110]
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], esi
lea eax, [esp + 0xfc]
push eax
call fcn.0040c420
movq xmm0, qword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [edi]
movq qword [esp + 0x4c], xmm0
mov edi, dword [esp + 0x50]
mov dword [esp + 0x34], ebx
movd xmm0, dword [eax + 0x354]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x54], ebx
movss dword [esp + 0x118], xmm0
movd xmm0, dword [eax + 0x358]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x120], xmm0
movd xmm0, dword [eax + 0x35c]
lea eax, [edi + 0xe]
cvtdq2ps xmm0, xmm0
push eax
mov dword [esp + 0x118], eax
movss dword [esp + 0x120], xmm0
call fcn.004649c1
mov esi, dword [esp + 0x50]
add esp, 0x2c
mov ebx, eax
push edi
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 1
push esi
call fcn.0046470a
mov al, byte [esp + 0x34]
mov byte [edi + ebx], al
mov eax, dword [esp + 0xf8]
mov byte [edi + ebx + 1], 4
mov dword [edi + ebx + 2], eax
mov eax, dword [esp + 0x100]
mov dword [edi + ebx + 6], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x2c], ebx
mov dword [edi + ebx + 0xa], eax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xf4]
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], edi
movq xmm0, qword [esp + 0x2c]
movq qword [esp + 0x68], xmm0
mov eax, dword [eax]
movd xmm0, dword [eax + 0x360]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xf8], xmm0
movd xmm0, dword [eax + 0x364]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x100], xmm0
movd xmm0, dword [eax + 0x368]
lea eax, [edi + 0xe]
cvtdq2ps xmm0, xmm0
push eax
movss dword [esp + 0x100], xmm0
call fcn.004649c1
add esp, 0xc
mov esi, eax
mov dword [esp + 0xec], esi
push edi
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 1
push ebx
call fcn.0046470a
mov al, byte [esp + 0x70]
mov byte [esi + edi], al
mov eax, dword [esp + 0xf8]
mov byte [esi + edi + 1], 4
mov dword [esi + edi + 2], eax
mov eax, dword [esp + 0x100]
mov dword [esi + edi + 6], eax
mov eax, dword [esp + 0xfc]
mov dword [esi + edi + 0xa], eax
add edi, 0xe
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x68], esi
inc ebx
mov dword [esp + 0x6c], edi
mov eax, dword [eax]
movq xmm0, qword [esp + 0x68]
movq qword [esp + 0x74], xmm0
mov dword [esp + 0x7c], ebx
movd xmm0, dword [eax + 0x36c]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xf8], xmm0
movd xmm0, dword [eax + 0x370]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x100], xmm0
movd xmm0, dword [eax + 0x374]
lea eax, [edi + 0xe]
cvtdq2ps xmm0, xmm0
push eax
movss dword [esp + 0x100], xmm0
call fcn.004649c1
add esp, 0xc
mov esi, eax
mov dword [esp + 0xc], esi
push edi
push dword [esp + 0xf0]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 1
push dword [esp + 0xf0]
call fcn.0046470a
mov al, bl
mov byte [esi + edi + 1], 4
mov byte [esi + edi], al
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x74], esi
mov dword [esi + edi + 2], eax
mov eax, dword [esp + 0x100]
inc ebx
mov dword [esi + edi + 6], eax
mov eax, dword [esp + 0xfc]
mov dword [esi + edi + 0xa], eax
add edi, 0xe
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], edi
movq xmm0, qword [esp + 0x74]
movq qword [esp + 0x80], xmm0
mov eax, dword [eax]
mov dword [esp + 0x88], ebx
mov esi, dword [eax + 0x4a4]
lea eax, [edi + 6]
push eax
call fcn.004649c1
add esp, 0xc
mov dword [esp + 0xec], eax
push edi
push dword [esp + 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 1
push dword [esp + 0x10]
call fcn.0046470a
mov ecx, dword [esp + 0xf4]
mov al, bl
mov dword [esp + 0x80], ecx
mov dword [esp + 0x100], 0
mov dword [esp + 0xfc], 0
mov byte [ecx + edi], al
mov eax, dword [esp + 0x1c]
mov byte [ecx + edi + 1], 5
mov dword [ecx + edi + 2], esi
add edi, 6
mov dword [esp + 0x84], edi
lea esi, [ebx + 1]
mov eax, dword [eax]
movq xmm0, qword [esp + 0x80]
movq qword [esp + 0x8c], xmm0
mov dword [esp + 0x94], esi
movd xmm0, dword [eax + 0x378]
lea eax, [edi + 0xe]
cvtdq2ps xmm0, xmm0
push eax
movss dword [esp + 0xfc], xmm0
call fcn.004649c1
mov ebx, dword [esp + 0xf8]
add esp, 0xc
mov dword [esp + 0xc], eax
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 1
push ebx
call fcn.0046470a
mov ecx, dword [esp + 0x14]
lea ebx, [edi + 0xe]
mov al, byte [esp + 0x94]
inc esi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ebx
movq xmm0, qword [esp + 0x8c]
mov byte [ecx + edi], al
mov eax, dword [esp + 0xf8]
mov byte [ecx + edi + 1], 4
mov dword [ecx + edi + 2], eax
mov eax, dword [esp + 0x100]
mov dword [ecx + edi + 6], eax
mov eax, dword [esp + 0xfc]
mov dword [ecx + edi + 0xa], eax
lea edi, [ebx + 1]
push edi
movq qword [esp + 0xa8], xmm0
mov dword [esp + 0xb0], esi
call fcn.004649c1
add esp, 0xc
mov dword [esp + 0xec], eax
push ebx
push dword [esp + 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 1
push dword [esp + 0x10]
call fcn.0046470a
mov ecx, dword [esp + 0xf4]
mov al, byte [esp + 0xac]
push 1
push edi
mov byte [ebx + ecx], 0
mov ebx, dword [esp + 0x24]
mov dword [ecx + 0x38], esi
mov byte [ecx + 0x3c], al
push ecx
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ecx + 8], eax
call fcn.00401000
add esp, 0x14
push eax
push 0
push dword [esp + 0x18]
call fcn.004021c0
mov eax, dword [esp + 0xf8]
add esp, 0xc
push 1
push eax
call fcn.0046470a
mov edi, dword [0x4941c0]
add esp, 8
mov eax, dword [edi + 0x28]
add ebx, 0x180
mov dword [esp + 0x14], ebx
lea ecx, [eax + eax*2]
shl ecx, 7
lea eax, [ebx - 0x20]
add ecx, dword [edi + 0x24]
cmp eax, ecx
mov ecx, dword [esp + 0x10]
jb 0x413d24
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004646fc
mov esp, ebp
pop ebp
ret